Solved subform recordsource

ClaraBarton

Registered User.
Local time
Today, 06:51
Joined
Oct 14, 2019
Messages
758
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:
I get this error opening the form

aaaaaaaaa.png

I dont see that the form or subform have record sources.
 
I apologize. I created a new file.
 

Attachments

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:
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/
 
is this what you meant.
see the After update event of the combobox.
 

Attachments

the point is to be able to edit the fields. Can you do that in a list box?
 
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

Back
Top Bottom