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

Creating a table from a listbox value

Status
Not open for further replies.

oldmate

Technical User
Jun 1, 2003
1
AU
Hey, basically what i have got here is a list box with a single number in it which changes depending on the value of several combo boxes. I want to create a table which inserts this number, when i click a submit button. Now everything works fine here like the list box updating depending on the combo boxes, however when i click the submit button it says that is can not convert the value from the list box.

The way i have tried to implement this is by using RunSql
on the button_clicked and using:
insert into table values(listbox,idno);

The idno is trivial and inserts into the table fine as it is from a textbox, however access doesnt seem to be able to convert the value in the list box to a text value in a field.????
 
Try using "listbox.Value" instead.


Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top