I want to let a variable = the contents of a record, in a table.
My table is called "Table2".
I think I am getting confused between recordsets and records.
So far I have:
Dim bd as Database
Dim rec as Recordset
Set db =CurrentDB
Set rec = OpenRecordset("Table2"
Msgbox rec
When I run it it fails at "Set rec" with Type mismatch.
My table is called "Table2".
I think I am getting confused between recordsets and records.
So far I have:
Dim bd as Database
Dim rec as Recordset
Set db =CurrentDB
Set rec = OpenRecordset("Table2"
Msgbox rec
When I run it it fails at "Set rec" with Type mismatch.