Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772

    That is an option. I normally (I do have couple of exceptions) do not modify RecordSource property of forms and reports. I set Filter property or pass the criteria to form with DoCmd.OpenForm.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  2. #17
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    That is an option. I normally (I do have couple of exceptions) do not modify RecordSource property of forms and reports. I set Filter property or pass the criteria to form with DoCmd.OpenForm.
    That's what I hoped to do, pass the criteria with docmd.openform but since I can't pass the criteria to a table that won't be there - the performers table - I thought running some vba to form a background query, get the results and then pass on the criteria for the bookings id that match.

  3. #18
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    I am guessing I have to loop through a vba sql (can you give me the correct term I should be using to explain this to you?) and then collect BookingsID?

    I suppose it collects them 156, 684, 489, 687 as one but with commas correct?

    then remove the commas in the next bit of code used in the example?

  4. #19
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Update - sorry the second form is a continuous form. There won't be a step through each record.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-21-2013, 07:11 AM
  2. Locking a record
    By aytee111 in forum Access
    Replies: 3
    Last Post: 04-24-2012, 05:31 PM
  3. Locking down the ribbon
    By whiteheadw in forum Security
    Replies: 2
    Last Post: 12-28-2011, 12:48 PM
  4. locking it down
    By BAX5127 in forum Access
    Replies: 0
    Last Post: 03-22-2011, 06:51 PM
  5. Locking fields
    By Icewolf0927 in forum Forms
    Replies: 3
    Last Post: 09-23-2010, 12:01 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