T
TheSingingCat
Good day,
I am evaluating sql server 2000 and debating moving our companies main
database over. I see though that connecting to an SQL server via access and
odbc changes a few things as far as code goes.
Oh, also this access db was originally done in Access97' using DAO 3.5
What I have done so far is imported all our data to the sql server and now
basically reworking a front end client on Access 2002. I was trying to do a
basic little update to the SQL database but of course much of the coding in
dao 3.5 doesn't work with sql it would seem. Sadly, most of my experience
with access has been on 97 and dao35.
This is what I tried to do:
--------------------
Dim DB As Database
Dim RS As Recordset
Dim X, Y As Long
Set DB = DBEngine.Workspaces(0).Databases(0)
Set RS = DB.OpenRecordset("dbo_table1", dbOpenDynaset) 'this dbo_table1 is
on sqlserver now
X = Me![start]
Y = Me![stop]
Do While X <= Y
RS.AddNew
RS![OrderNum] = X
RS.Update
X = X + 1
Loop
--------------------
So as you can probably see I am grasping at straws to update the table on
the backend. While the odbc connection works out fine as I can link the
tables into my access front end, I lack the knowledge to reference the
tables on the back end.
Could anyone possibly point out how this could should be altered to tie in
with SQL? Secondly, while I consider my Access knowledge intermediate, I
obviously need some training on working with access 2002 and sql server,
could anyone suggestion a good book to at least get my feet wet?
Thank you.
I am evaluating sql server 2000 and debating moving our companies main
database over. I see though that connecting to an SQL server via access and
odbc changes a few things as far as code goes.
Oh, also this access db was originally done in Access97' using DAO 3.5
What I have done so far is imported all our data to the sql server and now
basically reworking a front end client on Access 2002. I was trying to do a
basic little update to the SQL database but of course much of the coding in
dao 3.5 doesn't work with sql it would seem. Sadly, most of my experience
with access has been on 97 and dao35.
This is what I tried to do:
--------------------
Dim DB As Database
Dim RS As Recordset
Dim X, Y As Long
Set DB = DBEngine.Workspaces(0).Databases(0)
Set RS = DB.OpenRecordset("dbo_table1", dbOpenDynaset) 'this dbo_table1 is
on sqlserver now
X = Me![start]
Y = Me![stop]
Do While X <= Y
RS.AddNew
RS![OrderNum] = X
RS.Update
X = X + 1
Loop
--------------------
So as you can probably see I am grasping at straws to update the table on
the backend. While the odbc connection works out fine as I can link the
tables into my access front end, I lack the knowledge to reference the
tables on the back end.
Could anyone possibly point out how this could should be altered to tie in
with SQL? Secondly, while I consider my Access knowledge intermediate, I
obviously need some training on working with access 2002 and sql server,
could anyone suggestion a good book to at least get my feet wet?
Thank you.