I've got this code
Sub AssignAtlas()
'Add incrementing Atlas numbers to those items without a number currently
Const CONNECT_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=g:\Inventory\InvHPD.mdb"
Dim Connection As New ADODB.Connection
Dim RS1 As New ADODB.Recordset
etc...
When I try to run the code, Connection As New ADODB.Connection gets highlighted and the message is
Compile Error
User-defined type not defined.
Any suggestions what I'm doing wrong?
Sub AssignAtlas()
'Add incrementing Atlas numbers to those items without a number currently
Const CONNECT_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=g:\Inventory\InvHPD.mdb"
Dim Connection As New ADODB.Connection
Dim RS1 As New ADODB.Recordset
etc...
When I try to run the code, Connection As New ADODB.Connection gets highlighted and the message is
Compile Error
User-defined type not defined.
Any suggestions what I'm doing wrong?