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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box not passing on Parameter Value

Status
Not open for further replies.

KiraMcD

Technical User
Mar 30, 2004
22
US
I have a subform with three combo boxes. After the user populates the boxes, they click a SAVE button. The first two combo boxes properly pass on their values. The third causes a MsgBox to popup asking ENTER PARAMETER VALUE - First (or Second or Third or Fourth depending on which value I've selected).

The third combo is populated from a simple table called tblChoice. (I originally used a value list, as there are only four choices, but I changed it to a Table thinking that was the problem. Needless to say it didn't fix the problem.) When you tab into that box you can see the four choices and select one of them. The MsgBox changes to reflect the option that's chosen.

I'm sure it's something very basic and I'm just not seeing it. TIA~
 
Check which column of your combo box is the BoundColumn

Is the data in that column consistent with the data type of the field you want to store the data in?

Is the combo box Bound or are you storeing the data some other way ?


It sounds very much like you have some sort of UnBound setup and you are storing the data using a recordset or ADO approach, but you have an unwanted set of braces in the code so it is trying to use the data it gets from the combo box as the name of a variable rather than the data itself.


If the above don't give you enough clues to fix it - post back the combo's RowSource SQL string and any code that you use to save the data.

That might give us a clue to the cause of the problem.




G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
RESOLVED

Seems I was missing a couple of single quote marks around my Choice combo box. Silly me.

Thanks everyone for your help.

KM :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top