Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo box keeps giving me "Enter Parameter Value"

Status
Not open for further replies.

SeadnaS

Programmer
May 30, 2011
214
This is annoying as hell. Keep getting enter parameter value message. Don't understand why!

U have this in the after update event of typecombo:
Me!sizecombo.RowSource = "SELECT TP,Size_Type FROM " & Me!classcombo & " WHERE TP =" & Me!typecombo

When i open sizecombo it asks me to enter parameter value. What could be wrong. Everything looks fine to me.
 
classcombo is a combobox that lists tables. The tables are called LAC, LAH, DFX, VIV, LAO and LAX

TP is a text field that is in each table and so is Size_Type.

Hope you can help this is driving me nuts.
 
Me!sizecombo.RowSource = "SELECT TP FROM " & Me.RecordSource & " WHERE TP = " & typecombo

This is what i'm trying now but i'm getting the same error.
 
I got it to work!

Dim strSQL As String
strSQL = "SELECT DISTINCT Size_Type,TP FROM " & Me!classcombo & " WHERE TP = '" & Me!typecombo & "'"
Debug.Print strSQL
Me![sizecombo].RowSource = strSQL

Thats what i used, thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top