I am new to Access and am trying to understand the fundamentals of when to connect to a database. A lot of my confusion is because of my background in software development with much higher end languages. Here's my questions:
1. Since you create forms within an Access database, do you still need to connect to a database in the VBA scripting portion to do embedded SQL Select statements? I've tried my recordset code without a connection statement and I get an error. If I try to connect, it says that "; is already in use and won't recognize my full connection string.
2. If I am creating an Access application that needs security, it seems I need a login window that verifies username/password, make the database connection once, then use that connection throughout the app, and close the connection when the application closes. Is this correct? I can't get it to work.
Thank you!
Kim
1. Since you create forms within an Access database, do you still need to connect to a database in the VBA scripting portion to do embedded SQL Select statements? I've tried my recordset code without a connection statement and I get an error. If I try to connect, it says that "; is already in use and won't recognize my full connection string.
2. If I am creating an Access application that needs security, it seems I need a login window that verifies username/password, make the database connection once, then use that connection throughout the app, and close the connection when the application closes. Is this correct? I can't get it to work.
Thank you!
Kim