I am very new to VBA and need to use an event to establish a database connection. But it's throwing an error when I add in this code:
Dim Myconnection As Connection
Dim Myrecordset As Recordset
Dim MyWorkbook As String
Why? These are just variable definitions. RIght?