Re: 2 sql command
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Thu, 5 Feb 2009 13:47:30 +0900
You will have to write the SQL statements. Use query design to mock them up, and then switch to SQL View to see an exmaple of the string you need to create.
Then code like this:
Dim db As DAO.Database
Dim strSql As String
strSql = "INSERT ...
db.Execute strSql, dbFailOnError
strSql = "INSERT ...
db.Execute strSql, dbFailOnError
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"enrico via AccessMonster.com" <u41845@uwe> wrote in message
news:913b3be91de17@xxxxxx
its an INSERT query. my save button is coded and not wizard created. i'm
using two insert queries because there are two tables to where i'm saving,
their link is the "ClientID".
e.g.
tblclient
ClientID - primary key
Lastname
Firstname
MI
tblanswer
AnswerID - primary
ClientID
A1
A2
A3
how do i code it that all data of tblAnswer is linked to tblclient through
ClientID?
.
- Follow-Ups:
- Re: 2 sql command
- From: enrico via AccessMonster.com
- Re: 2 sql command
- References:
- 2 sql command
- From: enrico via AccessMonster.com
- Re: 2 sql command
- From: Allen Browne
- Re: 2 sql command
- From: enrico via AccessMonster.com
- 2 sql command
- Prev by Date: Re: Recordset update query
- Next by Date: Re: Error on displaying query design
- Previous by thread: Re: 2 sql command
- Next by thread: Re: 2 sql command
- Index(es):
Relevant Pages
|