In the code section of the form that I am working on:
I am trying to obtain records from another table other than the one I
am using as the recordsource for the current form.
In other words, I am attempting to open and access records from the
Beverages table from the code of the "customer service form".
Code used below
---------------
Dim dbs As database, rstItems As Recordset
Set dbs = CurrentDb
Set rstItems = dbs.openrecordset("Beverages")
-------------------
End of code segment
However I am getting the following message
------------------------------------------
Compile Error:
User-defined type not defined
I have also noticed that the 'd' in database and the 'o' in
openrecordset are not automatically capitolizing.
Could someone please inform me of how I can successfully open a
recordset? Thanks in advance.