Jump to content

SQL filter for drop down list (lookup table)


M4A

Recommended Posts

Hi, i have 2 access tables orders & Items, both tables have a field OrderID, I sucessfully managed to create a drop down list of the items on the orders form but i need to fill in the filter field to filter the drop down to show only items where ordersID is equal iv tried and tried to no avail. The tables are in access. I use aspmaker to generate front end. I am trying to fill out the SQL filter field. the example in aspmaker shows:ew_IIf(AField.CurrentValue & "" <> "", "`ALookupTableField` = " & AField.CurrentValue, "") so i wrote:ew_IIf(OrderID.CurrentValue & "" <> "", "`OrderID` = " & OrderID.CurrentValue, "") The tables are in access. I use aspmaker to generate front end. I am trying to fill out the SQL filter field. The example i have to work on is ew_IIf(AField.CurrentValue & "" <> "", "`ALookupTableField` = " & AField.CurrentValue, "")both values are adInteger, where am i going wrong?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...