J
JG
I am converting an Access Database to an SQL Server
database
I have the connection working and am able to delete and
loop through and read records correctly using Set
Rst_Labels
Set RST_LABELS = dbs.OpenRecordset("SELECT * FROM
dbo_labels;", dbOpenDynaset, dbSQLPassThrough)
With RST_LABELS
Loop etc.
..movefirst
..movenext etc
However I now wish to add records to this SQL table(
importing data from a Text file and saving to an SQL Table)
Code is as below which worked for an Access Table. How or
Can I get this to work with an SQL Table or do I have to
rewrite completely..
Set RST_Labels = db.OpenRecordset("dbo.LABELS",
DBOPENTABLE)
This command produces an error message.
With RST_Labels
.AddNew
![HO] = HO
etc.
.Update
End With
TIA
JG
database
I have the connection working and am able to delete and
loop through and read records correctly using Set
Rst_Labels
Set RST_LABELS = dbs.OpenRecordset("SELECT * FROM
dbo_labels;", dbOpenDynaset, dbSQLPassThrough)
With RST_LABELS
Loop etc.
..movefirst
..movenext etc
However I now wish to add records to this SQL table(
importing data from a Text file and saving to an SQL Table)
Code is as below which worked for an Access Table. How or
Can I get this to work with an SQL Table or do I have to
rewrite completely..
Set RST_Labels = db.OpenRecordset("dbo.LABELS",
DBOPENTABLE)
This command produces an error message.
With RST_Labels
.AddNew
![HO] = HO
etc.
.Update
End With
TIA
JG