Criteria for combo box depends 'edit records or add new'

J

Joy

Hi,
Is it possible to have the source of a combo box show all records if user is
editing data and show specific records if adding new data?

I've come up with one way (like a lookup field in front of the combo box)
but that's really slow. There's got to be an easier solution.
Joy
 
A

Allen Browne

In the Enter event of the combo, you could set its RowSource to an SQL
string, depending on the value of Me.NewRecord.
 
J

Joy

Thank you Allen. I'll try that.
J
Allen Browne said:
In the Enter event of the combo, you could set its RowSource to an SQL
string, depending on the value of Me.NewRecord.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top