Populate Access table

F

Farley

I want to add information into another access table when a check mark is
placed in a box. I want to add the [custno] from the form into another
access table.

so far i can figure

if me![checkbox] = true then
(this is where i need help)
end if


Any thoughts??

Thanx
Tom
 
D

Dan

I want to add information into another access table when a check mark is
placed in a box. I want to add the [custno] from the form into another
access table.

so far i can figure

if me![checkbox] = true then
(this is where i need help)
end if


Any thoughts??

Thanx
Tom

Dim strSQL as String
Dim strCustNo as String

strCustNo = Me!txtCustNo
strSQL = "INSERT INTO tblMytable ([custno]) VALUES (" & strCustNo & ")"
DoCmd.RunSQL strSQL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top