Solved #NAME? (1 Viewer)

ClaraBarton

Registered User.
Local time
, 23:28
Joined
Oct 14, 2019
Messages
469
Until I make a selection in a list box, the recordsource of a subform is blank. The fields say #NAME?. It all works properly so it's purely aesthetic, but I don't like the looks of the blank fields. How do you fix this?
 

theDBguy

I’m here to help
Staff member
Local time
, 23:28
Joined
Oct 29, 2018
Messages
21,485
Why is the record source blank? Try using an empty record source instead.
 

ClaraBarton

Registered User.
Local time
, 23:28
Joined
Oct 14, 2019
Messages
469
That's what it is. I Think? What's an empty record source? I'm setting the record source with VBA on the List after update
 

June7

AWF VIP
Local time
, 22:28
Joined
Mar 9, 2014
Messages
5,483
Empty recordsource is a valid SQL that does not return any records but the fields are there. One way is:

SELECT * FROM yourtable WHERE ID = 0;

Set that in form design and change with your procedure.
 
Last edited:

Users who are viewing this thread

Top Bottom