N
neshev
Hi,
I am trying to update a record in a different database to the current one
that I am using. I wish to update the Job status field to INSPECTION COMPLETE
in the other database. The problem that I have is that I only know how to
update information in my current database. code below, the update line is
suited here for current database, i do not know how to modify this to work
with the other database (LFilename). any help will be great
Neil
lfilename = "C:\MasterDB.mdb"
Set db = ws.OpenDatabase(lfilename)
Set rs = db.OpenRecordset(strSQL, dbOpenSnapshot)
If Not rs.EOF Then
strSQL = "UPDATE [Tbl_Inspection Schedule]"
strSQL = strSQL & " Set Job_Status= ' " & '"INSPECTION COMPLETE"
& "', "
strSQL = strSQL & " WHERE [Job ID]='" & Me.Job_ID.Text & "' "
End If
I am trying to update a record in a different database to the current one
that I am using. I wish to update the Job status field to INSPECTION COMPLETE
in the other database. The problem that I have is that I only know how to
update information in my current database. code below, the update line is
suited here for current database, i do not know how to modify this to work
with the other database (LFilename). any help will be great
Neil
lfilename = "C:\MasterDB.mdb"
Set db = ws.OpenDatabase(lfilename)
Set rs = db.OpenRecordset(strSQL, dbOpenSnapshot)
If Not rs.EOF Then
strSQL = "UPDATE [Tbl_Inspection Schedule]"
strSQL = strSQL & " Set Job_Status= ' " & '"INSPECTION COMPLETE"
& "', "
strSQL = strSQL & " WHERE [Job ID]='" & Me.Job_ID.Text & "' "
End If