W
WilliamI
I cannot figure out why I keep getting an Error 13 Type Mismatch on "Set rst
= db.OpenRecordset("Purchases")". This code structure has always worked
before in programming datablases. I get this same error on other recordsets
that I have tried to create in this database. Is there a corruption or Access
options setting problem that could be occurring?
Dim db As Database, rst As Recordset, v As Long
Set db = CurrentDb
Set rst = db.OpenRecordset("Purchases")
rst.MoveLast
v = rst!VouchID 'VouchID data type is a Long Integer in the
Purchases table
rst.Close
Forms!frmPurchases!VouchID = v + 1
= db.OpenRecordset("Purchases")". This code structure has always worked
before in programming datablases. I get this same error on other recordsets
that I have tried to create in this database. Is there a corruption or Access
options setting problem that could be occurring?
Dim db As Database, rst As Recordset, v As Long
Set db = CurrentDb
Set rst = db.OpenRecordset("Purchases")
rst.MoveLast
v = rst!VouchID 'VouchID data type is a Long Integer in the
Purchases table
rst.Close
Forms!frmPurchases!VouchID = v + 1