Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28
  1. #16
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The 1st form opens the second form in Dialog mode which stops the code in the 1st form at the OpenForm line. We also pass the name of the 1st form so the 2nd form can decide whether to close or just go invisible when you push the Command Button. just selecting a record on a Continuous form make that record the Current record. You didn't have the [ID] field displayed on the second form so I created a control for it [txtID] and hid it under one of your displayed controls. When the code get back to the 1st form we just do a .FindFirst on the [txtID] value from the 2nd form and then close the 2nd form moving the 1st form RecordSet to the correct record.

  2. #17
    jakeao is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2009
    Posts
    16
    Ok, I think I get it. Thanks again for all the help.

  3. #18
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're very welcome. There are other ways to do this. I just showed one of them.

  4. #19
    taylorosso is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    29
    hi,

    can this '2 step search' be done by firstly populating a list box. then from the results you select in your list box, opens up a record on your main form?

    Please see attachment for a diagram of what i mean.

    I am using access 2003, was unable to open your demo of the working search.

    cheers

  5. #20
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The simple answer to your question is Yes. The sample did not lend itself to convert to ac2K easily. If you want to put together a sample of what you want, I will be glad to assist in getting it to work properly.

  6. #21
    taylorosso is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    29
    ok thankyou, what would you need by way of a sample?

    constructed forms?

  7. #22
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Yes, constructed forms where you tried to accomplich what you want.

  8. #23
    taylorosso is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    29
    here is my sample,

    nice and simple, 3 forms, 1 table.

    The actual problem is trying to get the list box to populate properly based on the first search entry.

  9. #24
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    This should move your project along a bit.

  10. #25
    taylorosso is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    29
    thats great! thanks very much. What did you do as I now have to integrate that into my main project?

  11. #26
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Look at the OnLoad event of the ListBox form.

  12. #27
    taylorosso is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    29
    i see it. Thanks again!

  13. #28
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It is just one way to do it. I'll bet there are at least 3 other ways to do it.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. HELP, Access questions.
    By brown in forum Access
    Replies: 0
    Last Post: 04-21-2009, 03:31 PM
  2. Compatibility Questions
    By smschleidt in forum Access
    Replies: 0
    Last Post: 12-23-2008, 12:35 PM
  3. 3 questions about forms
    By surfer_rosa in forum Forms
    Replies: 0
    Last Post: 10-08-2008, 09:59 AM
  4. newbie questions
    By bigmac in forum Access
    Replies: 0
    Last Post: 10-07-2008, 12:53 AM
  5. New to this forum and have questions
    By Sinatra Fan in forum Access
    Replies: 4
    Last Post: 04-14-2006, 06:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums