Solved #NAME? (1 Viewer)

ClaraBarton

Registered User.
Local time
Today, 10:11
Joined
Oct 14, 2019
Messages
479
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
Today, 10:11
Joined
Oct 29, 2018
Messages
21,494
Why is the record source blank? Try using an empty record source instead.
 

ClaraBarton

Registered User.
Local time
Today, 10:11
Joined
Oct 14, 2019
Messages
479
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
Today, 09:11
Joined
Mar 9, 2014
Messages
5,488
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:

ClaraBarton

Registered User.
Local time
Today, 10:11
Joined
Oct 14, 2019
Messages
479
Works Great! So simple! how come I couldn't figure that?
 

Users who are viewing this thread

Top Bottom