Updating table from form...

Ade

New Member
Joined
Apr 28, 2003
Messages
17
Hi folks,

Probably a very simple question, but it's got me baffled (doesn't take much! :biggrin: )

Imagine this...

Asset list in a list box consisting of 1. Asset number 2. Description 3. Serial number 4. Employee name

Combo drop down box with employee names

I want to be able to "book out" multiple selected assets (selected in the asset list) to a particular employee (selected from the combo box).

I can get the list box & combo box populated but I'm struggling with how to update the table behind the list box.

Any ideas? Or do you need more info?

Cheers[/code]
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Think I might be getting somewhere, but stuck with the following line of code, can't see what's wrong with it...

Code:
Set rs1 = dbs.OpenRecordset("SELECT * FROM tbl_data WHERE ([Asset Number]=[FORMS]![frm_booking].[List0]);")

1. rs1 has been declared as a recordset
2. dbs declared as dao.database and set to currentdb
3. tbl_data is the table where the list box (list0) is sourced
4. frm_booking is the form containing the listbox etc

Help!

Cheers
 
Upvote 0

Forum statistics

Threads
1,221,575
Messages
6,160,603
Members
451,657
Latest member
Ang24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top