Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 36
  1. #16
    mseeker22 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    35

    Yes. . . .

  2. #17
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Press the JoinType button and tell me what you have.

  3. #18
    mseeker22 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    35
    3. Include ALL records from 'Restaurant Bookings' and only those records from 'Important Dates' where the joined fields are equal.

  4. #19
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Great! Can you now create a query with both tables in it that has the extra fields from the [Important Dates] table?

  5. #20
    mseeker22 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    35
    Can you just verify for me how I should tell the textbox to display the important date message . . is it simply =[ImportantDates]![ImportantDateName] in the tbo control source . . . I'm thinking not as it's still showing #Name? ha!

  6. #21
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    You've got to create the query that joijns the two tables first so you can use it as the RecordSource of your form.

  7. #22
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I'll check back when I get back from my appointment. I'll be gone for several hours, sorry.

  8. #23
    mseeker22 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    35
    When the query has just the 'Important Dates' table in and has =[Forms]![RestaurantBookingsDiary].[DiaryDateEntry] as the criteria, the query works exactly as planned and shows the correct 'Important Dates' . . . but when the query is linked to the tbo it still shows up as name.
    When I add the 'Restaurant Bookings' table to the query and include 'Booking Date' into the fields the query no longer returns any records.

    I then added the 'Important Dates' table into the 'Restaurant Bookings Query' it still doesn't seem to be working.

    Sorry to be a pain!

  9. #24
    mseeker22 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    35
    I've just noticed you last message r.e. appointment. I also have to go out and won't be back online until tomorrow morning, GMT.

  10. #25
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Are both date fields set to midnight? http://support.microsoft.com/kb/q130514/en-us

  11. #26
    mseeker22 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    35
    I'm not sure I fully understand? I realise how access works out date but I don't understand how to set the dates like you suggest?

    When the query is run independently of the form it returns the correct date.

  12. #27
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    When the date is stored, do you use Date() or Now()?

  13. #28
    mseeker22 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    35
    Its currently Date()

  14. #29
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    That will store Midnight which is good. If I understand you correctly, when you look at the Datasheet view of the query with both tables in it you don't get the proper fields from the ImportantDates table, is that correct?

  15. #30
    mseeker22 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    35
    I've tried two types of queries. One has just the Important Dates table in and this query works fine on its own. The second had both Important Dates and Restaurant Bookings tables in it and no matter what date is entered into the parameter criteria the result is blank. See both attached.

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

Similar Threads

  1. How to display a Message
    By seb in forum Queries
    Replies: 7
    Last Post: 05-27-2011, 11:33 AM
  2. Important queiry for the inventory
    By nardionline in forum Queries
    Replies: 4
    Last Post: 12-11-2010, 05:45 AM
  3. Display a message for some time
    By wasim_sono in forum Programming
    Replies: 2
    Last Post: 03-05-2010, 11:11 AM
  4. Replies: 3
    Last Post: 11-22-2009, 07:46 AM
  5. Replies: 1
    Last Post: 10-20-2009, 02:05 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