Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Feb 2001
    Location
    Escondido, California, USA
    Posts
    1,458
    Thanks
    0
    Thanked 1 Time in 1 Post

    Changing Data Source Property (Access 2002)

    Is there a way to use code to change the Data Source for a form before opening the form? I have a form that is used to edit data in two tables, and I need a way to select the table and then open the form with that Data Source. I'm sure there's a simple answer.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Changing Data Source Property (Access 2002)

    You cannot change the record source before opening the form, but you can it do when opening it: you can set it in the On Load or On Open event of the form, or after opening the form. See <post#=132267>post 132267</post#> for an example of changing the record source of a form using a combo box.

  3. #3
    Bronze Lounger
    Join Date
    Feb 2001
    Location
    Escondido, California, USA
    Posts
    1,458
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Changing Data Source Property (Access 2002)

    Thanks Hans, That works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •