dcx693
Registered User.
- Local time
- Today, 09:46
- Joined
- Apr 30, 2003
- Messages
- 3,265
I posted this question about a week ago, but got no responses. Hopefully I can explain it more clearly and get some of your ideas.
I have two combo boxes on my form. In cboA you choose a field name. Based on that selection, I have code like this which assigns the row source of cboB:
"SELECT DISTINCT " & Me.cboA & " FROM tblInventory ORDER BY " & Me.cboA & ";".
The problem is that the items in cboB are sometimes treated as text, sometimes as numbers. It doesn't seem to matter what the underlying data type of the field in cboA actually is.
Anyone else ever run into this problem? Am I doing something wrong? I have attached a sample database with an example.
I have two combo boxes on my form. In cboA you choose a field name. Based on that selection, I have code like this which assigns the row source of cboB:
"SELECT DISTINCT " & Me.cboA & " FROM tblInventory ORDER BY " & Me.cboA & ";".
The problem is that the items in cboB are sometimes treated as text, sometimes as numbers. It doesn't seem to matter what the underlying data type of the field in cboA actually is.
Anyone else ever run into this problem? Am I doing something wrong? I have attached a sample database with an example.