Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    Join Date
    May 2019
    Posts
    65
    I will give it a try. Thanks again for all your help.
    Jeff

  2. #17
    Join Date
    May 2019
    Posts
    65
    Hi,
    I'm still trying to get this to work. When the Query is run (outside of the form) it works and the field data is correct, Contacts.Full Name, Contacts_1.Full Name etc.
    It's just that when the form fields are entered then saved, it doesn't save the Record Source info and reverts to whatever the first Contacts field in the query is.
    Were you able to see that the Query worked when you got the DB?

    I'm just trying to see if that provides any additional clues.
    Jeff

  3. #18
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Yes, query works.

    I am at a loss as to why the form fails.

    So did you go with alternate suggestion to use comboboxes? Just reference Shelter table in form RecordSource and use comboboxes to select contacts. This is my preference anyway.
    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.

  4. #19
    Join Date
    May 2019
    Posts
    65
    Hi
    Thanks again,
    I did try the combo boxes and they worked the same way. Maybe I have too much in the record source. I will try again. You've been most helpful.
    Jeff

  5. #20
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    The form RecordSource should just be ShelterTable.

    Then instead of 8 textboxes for contacts, have 4 comboboxes. Combobox ControlSource will be field from ShelterTable.

    RowSource: SELECT ID, [Last Name] & ", " & [First Name] AS FullName, Phone FROM Contacts;
    ColumnCount: 3
    ColumnWidths: 0";1";1"
    BoundColumn: 1

    Include Phone column if you want and then textbox can reference that column by index, index begins with 0: =[comboboxname].Column(2)

    Advise not to use spaces nor punctuation/special characters in naming convention.
    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.

  6. #21
    Join Date
    May 2019
    Posts
    65
    I'd like to thank you for all your help. I finally figured out that I needed to define my fields different that the expression building was doing. With the new syntax I could use the multiple instances of a table in my query builder for the form.

    [So before the control source generated by the expression builder or me was Contact_1.FullName or [Contact_1]![FullName]. Neither of these worked and i kept getting errors.
    By chance I stumbled on a video and saw that if you bracket the entire text then it works. So, [Contact_1.FullName] worked and it worked with _2 & _3.

    Again, thanks for your help.

  7. #22
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Ah, thank you for followup. I don't have any db with this sort of requirement, so did not catch that. Odd that Access does not recognize and properly bracket.

    I still prefer the combobox approach.
    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.

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

Similar Threads

  1. run multiple instances of the same database
    By chriswrcg in forum Access
    Replies: 1
    Last Post: 05-08-2019, 07:03 AM
  2. Replies: 7
    Last Post: 06-16-2016, 03:05 PM
  3. Changes to table layout by multiple users or instances
    By Jennifer Murphy in forum Access
    Replies: 5
    Last Post: 05-01-2014, 09:18 AM
  4. Counting instances across multiple tables
    By New_2_Access in forum Queries
    Replies: 1
    Last Post: 07-19-2012, 04:47 PM
  5. Multiple Payment Instances
    By luckysarea in forum Queries
    Replies: 3
    Last Post: 04-21-2011, 03:29 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