Ask a Question related to ASP Database, Design and Development.
-
Matt #1
RE: adding multiple records
Thanks Perry,
I am not sure what :
(" & (nBsae £« 1£ > © & " )")
is as the characters are not normal?
could you please repost, thank you very much
your database:>-----Original Message-----
>You can use code as follows to add multiple records intovalues (" & (nBsae £« 1£>
>szSQL="SELECT * FROM tblTickets ORDER BY nID DESC"
>set rsTemp2= objConn.Execute (szSQL)
>dim nBase
>nBsae = rsTemp2("nticket")
>
>objConn.Execute ("insert into tblTickets (nticket)values (" & (nBsae £« 2£>©& " )")
>objConn.Execute ("insert into tblTickets (nticket)values (" & (nBsae £« 3£>©& ")")
>objConn.Execute ("insert into tblTickets (nticket)confers no rights.>©& ")")
>objConn.close
>set objConn = nothing
>
>Best regards,
>Perry Deng
>Microsoft
>
>This posting is provided "AS IS" with no warranties, and>
>.
>Matt Guest
-
CF Multiple Queries, Multiple Records
All, I've got three queries all passing variables from previous queries. The issues? The second query returns 4 records. I want to use IDs for... -
update multiple records in multiple tables from one form
hello I have been trying to run multiple update queries based on the data entered by user. Brief background: I am fetching data from various... -
adding multiple child records
i have an access database set up with 2 tables: tblContacts, and tblNotes tblNotes is related to tblContacts by a field caled ContactID i have... -
adding records
I have a particular form with a combo box on listing a set of data. I have created an add record button which when clicked clears all the othewr... -
Adding images to records
How can we add images to records by programmaing? Assuming images are named sequentially. Babar -
Perry Deng #2
RE: adding multiple records
Hi Matt,
Sorry, some characters become messy, so I paste it again:
szSQL="SELECT * FROM tblTickets ORDER BY nID DESC"
set rsTemp2= objConn.Execute (szSQL)
dim nBase
nBsae = rsTemp2("nticket")
objConn.Execute ("insert into tblTickets (nticket) values (" & (nBsae £« 1)
& " )")
objConn.Execute ("insert into tblTickets (nticket) values (" & (nBsae £« 2)
& ")")
objConn.Execute ("insert into tblTickets (nticket) values (" & (nBsae £« 3)
& ")")
objConn.close
set objConn = nothing
Best regards,
Perry Deng
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
Perry Deng Guest



Reply With Quote

