INSERT INTO "record single"

  • Thread starter Thread starter MS
  • Start date Start date
M

MS

Hi all,

I have the sequent Query:
INSERT INTO TbFornitoriProdotti ( IdProdotto, IdFornitore )
SELECT TbProdotti.IDProdotto, TbOrdini.IdFornitore
FROM TbProdotti, TbOrdini;

I must change it in line up to record single
and to Load with RunSQL.
Thanks.
Marcello
 
Dim strSQL As String

strSQL = "INSERT INTO MyTable ( Field1, Field2 ) " _
& "VALUES ( 2, 'CIRIO' )"

DoCmd.RunSQL strSQL

(or, better,

CurrentDB.Execute strSQL, dbFailOnError

)
 
Hi John
The routine don't work.
The problem is..........
Instruction SQL don't correct. To Use 'DELETE', 'INSERT', 'PROCEDURE',
'SELECT' or 'UPDATE'
Marcello
 
Hi John
INSERT INTO TbFornitoriProdotti ......
TbProdotti.IDProdotto, TbOrdini.IdFornitore FROM TbProdotti, TbOrdini
Marcello
 
Hi Marcello,

I still don't understand what record(s) you want to insert into
TbFornitoriProdotti. Please give examples.
 
Hi John
I Must insert into TbFornitoriProdotti the news products
by Form.
If you want i send you E-mail
Marcello
 

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

Back
Top