Results 1 to 4 of 4
  1. #1
    gerdagan is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Manchester, England.
    Posts
    1

    Question Search form

    Hi all,

    I'm sure this is a simple fix, but I am going out of my mind trying to figure this out.



    What I am trying to do is open the Form 'F-Booking' to the matching record as stated in the Form 'F-Date' when the date is selected using the combo boxes.

    I hope someone can help, because this simple little thing is just wracking my brains . All of the data for the lookup is in the Table 'T-Dates'.

    I've attached the test DB I am working on.

    Thanks all,
    Ged.

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    What happens when you click 'Continue'?
    Is clicking Continue what is supposed to open the other form?
    Last edited by Robeen; 10-20-2011 at 09:26 AM. Reason: Incomplete . . .

  3. #3
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I just looked at your forms & tables.
    I can't figure out what you're trying to do.

    Can you be a little more explicit?

    1. What date do you enter in Form 'F-Date' ?
    2. What record do you want to see Form 'F-Booking' opened to?
    3. What is the matching field in Form 'F-Booking' that you will use to match to the date you entered in Form 'F-Date'?

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    There may be a problem with the fact that the field you're trying to match on F-Booking' is not bound to a single field in your T-Dates table - but rather to a composite of three fields in the table.

    Access works really well when you keep it simple.
    If you get tircksy like that . . . the coding you have to do to get things to work becomes a little more involved.

    Is it possible for you to just have a regular date field on both Forms to match?
    If it is, then you can put something like this:
    DoCmd.OpenForm "F-Booking", , , "DateFieldOnF-Booking = #" & Me.DateFieldOnF-Date & "#"

    Hope this helps.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. form search
    By ashwin09 in forum Code Repository
    Replies: 2
    Last Post: 10-13-2013, 08:47 AM
  2. Search Form Help
    By carguy37757 in forum Forms
    Replies: 4
    Last Post: 09-16-2011, 11:23 AM
  3. Search Form
    By j2curtis64 in forum Forms
    Replies: 1
    Last Post: 07-19-2011, 11:18 AM
  4. Replies: 9
    Last Post: 02-15-2011, 03:05 PM
  5. Search Form VBA
    By rcdugge in forum Programming
    Replies: 2
    Last Post: 07-20-2010, 02:57 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