I have this problem here and there in my database, so I think something fundamental is wrong.
One example is my list box to show salesmans in [tblDetail Subform] on OnCurrent event.
Here's the code:
ListSalesMan.RowSource = "SELECT DISTINCT SalesMan FROM tblSalesMan WHERE DetID = " & Forms![tblDetail Subform].DetID
The form [tblDetail Subform] do exist in my database, so I really don't know what is wrong.
I have this the same problem in a search function in my db, so this is something fundamental such as reference or something.
Anybody has any ideas?
John
One example is my list box to show salesmans in [tblDetail Subform] on OnCurrent event.
Here's the code:
ListSalesMan.RowSource = "SELECT DISTINCT SalesMan FROM tblSalesMan WHERE DetID = " & Forms![tblDetail Subform].DetID
The form [tblDetail Subform] do exist in my database, so I really don't know what is wrong.
I have this the same problem in a search function in my db, so this is something fundamental such as reference or something.
Anybody has any ideas?
John