Hi,
I am new to visual basic and Ms Access but this is what I am trying to do. I have a Field called Act/Inact and in this field I have some records that say active and some records that say inactive. I would like a code that looks for active and assigns a 0 in that field and when it sees inactive, it assigns a 1.
So far this is what I have;
On Error Resume Next
Const adOpenStatic = 3
Const adLockOptimisti c = 3
Set objConnection = CreatObject("AD ODB.Connection" )
Set objRecordSet = CreatObject("AD ODB.Recordset")
objConnection.O pen _
"Provider=Micro soft.Jet.OLEDB. 4.0; " & _
"Data Source = C:\script\db1.m db"
objRecordSet.Op en "SELECT * FROM General" , _
objConnection, adOpenStatic, adLockOptimisti c
objRecordSet.Cl ose
Please help
objConnection.C lose
I am new to visual basic and Ms Access but this is what I am trying to do. I have a Field called Act/Inact and in this field I have some records that say active and some records that say inactive. I would like a code that looks for active and assigns a 0 in that field and when it sees inactive, it assigns a 1.
So far this is what I have;
On Error Resume Next
Const adOpenStatic = 3
Const adLockOptimisti c = 3
Set objConnection = CreatObject("AD ODB.Connection" )
Set objRecordSet = CreatObject("AD ODB.Recordset")
objConnection.O pen _
"Provider=Micro soft.Jet.OLEDB. 4.0; " & _
"Data Source = C:\script\db1.m db"
objRecordSet.Op en "SELECT * FROM General" , _
objConnection, adOpenStatic, adLockOptimisti c
objRecordSet.Cl ose
Please help
objConnection.C lose
Comment