Solved subform recordsource (1 Viewer)

ClaraBarton

Registered User.
Local time
Today, 11:30
Joined
Oct 14, 2019
Messages
479
I'm back to this form: lstfrmEdit. I cannot get the recordsource to show up in the upper left subform (Lists). I notice the number of records showing is the same as the query but the fields don't show and can't be selected.

1673834890218.png
 
Last edited:

moke123

AWF VIP
Local time
Today, 14:30
Joined
Jan 11, 2013
Messages
3,927
I get this error opening the form

aaaaaaaaa.png

I dont see that the form or subform have record sources.
 

ClaraBarton

Registered User.
Local time
Today, 11:30
Joined
Oct 14, 2019
Messages
479
I apologize. I created a new file.
 

Attachments

  • CheckCopy.accdb
    2.5 MB · Views: 56

moke123

AWF VIP
Local time
Today, 14:30
Joined
Jan 11, 2013
Messages
3,927
I deleted the control causing that error.

It looks like you are setting the record source in the after update of cboLists. The problem is you don't have control sources set on the subform controls. (ie. ID, Display)
 
Last edited:

ClaraBarton

Registered User.
Local time
Today, 11:30
Joined
Oct 14, 2019
Messages
479
I did have different subforms. I was told that was way too much work and this is the proper way. I've done it this way and now I'm into this and I'd like to get it to work. You're right, the records are not available until selected from the cbo. The recordsource is then working because the record count is correct but I can't get the fields to show. I've used the same queries in the form outside the main form and it works fine.https://www.access-programmers.co.uk/forums/threads/subforms-not-updating-properly.326210/
 

moke123

AWF VIP
Local time
Today, 14:30
Joined
Jan 11, 2013
Messages
3,927
See copy of lstFrmEdit
 

Attachments

  • SampleCheckCopy.accdb
    3.1 MB · Views: 54

Pat Hartman

Super Moderator
Staff member
Local time
Today, 14:30
Joined
Feb 19, 2002
Messages
43,334
I'm back to this form: lstfrmEdit. I cannot get the recordsource to show up in the upper left subform (Lists). I notice the number of records showing is the same as the query but the fields don't show and can't be selected.
Did you download the version of the app where I fixed this form for you?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 02:30
Joined
May 7, 2009
Messages
19,247
is this what you meant.
see the After update event of the combobox.
 

Attachments

  • CheckCopy.accdb
    3.1 MB · Views: 73

ClaraBarton

Registered User.
Local time
Today, 11:30
Joined
Oct 14, 2019
Messages
479
the point is to be able to edit the fields. Can you do that in a list box?
 

ClaraBarton

Registered User.
Local time
Today, 11:30
Joined
Oct 14, 2019
Messages
479
YES! YES! Thank you so much! It Works!
 
Last edited:

Pat Hartman

Super Moderator
Staff member
Local time
Today, 14:30
Joined
Feb 19, 2002
Messages
43,334
YES! YES! Thank you so much! It Works!
I guess you didn't actually test the form. You can't add Authors and form 3 is not sync'd with form 2. The combos on form 4 don't work correctly. But aside from that, I guess it works.
 
Last edited:

ClaraBarton

Registered User.
Local time
Today, 11:30
Joined
Oct 14, 2019
Messages
479
It's a work in progress. One thing works.... I go to another. I had them all working till I changed all the subforms out and went to one at your suggestion.
 

Users who are viewing this thread

Top Bottom