G
Guest
Hello All,
I have two cascading Listboxes that return a numeric value from a field in a
table. The code is as follows:
strSQL = "SELECT numOccSecKeyPK, strSecondaryKey " _
& "FROM tblOccSecKeys " _
& "WHERE numPrimaryKeyFK = " & Me.lboPrimOccToInclude & _
" ORDER BY strSecondaryKey"
Me.lboSecOccToInclude.RowSourceType = "Table/Query"
Me.lboSecOccToInclude.RowSource = strSQL
The above code works great. However, I need to change the bound column of
the first list box (lboPrimOccToInclude) as I need to return a text value,
instead of a numeric one. When I change the bound column to 3, from 1, the
first lisbox returns the correct text value. However, I get an error (Enter
parameter value) from the second listbox (lboSecOccToInclude). Hopefully I
explained my problem correctly![Smile :) :)](/styles/default/custom/smilies/smile.gif)
Regards
I have two cascading Listboxes that return a numeric value from a field in a
table. The code is as follows:
strSQL = "SELECT numOccSecKeyPK, strSecondaryKey " _
& "FROM tblOccSecKeys " _
& "WHERE numPrimaryKeyFK = " & Me.lboPrimOccToInclude & _
" ORDER BY strSecondaryKey"
Me.lboSecOccToInclude.RowSourceType = "Table/Query"
Me.lboSecOccToInclude.RowSource = strSQL
The above code works great. However, I need to change the bound column of
the first list box (lboPrimOccToInclude) as I need to return a text value,
instead of a numeric one. When I change the bound column to 3, from 1, the
first lisbox returns the correct text value. However, I get an error (Enter
parameter value) from the second listbox (lboSecOccToInclude). Hopefully I
explained my problem correctly
![Smile :) :)](/styles/default/custom/smilies/smile.gif)
Regards