When you have a form with a combo box on it that selects records how do you make all of the fields on the form display no data until a record is selected?
You can set the [blue]RecordSource[/blue] for the form to nothing. Then on selection fron the [blue]Combobox[/blue] [purple]set the Recordsource proper.[/purple]
When I clear the record source for the form and load it I get a #Name? error on all fields. Obviously because the control source for all fields are set it is trying to resolve the table name.
In form design view, set the [blue]Data Entry[/blue] property of the form to [purple]True[/purple]. This causes the form to open with a single blank record for data entry.
Then, in your code for the combobox, at the beginning of the code, set the property back to false:
Code:
[blue] Me.DataEntry = False
[green]'
Your Code
'[/green][/blue]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.