username and password prompt when trying to do SQL queries when connecting Microsoft Access to Delphi 7

calendar_today Asked Apr 23, 2009
thumb_up 11 upvotes
history Updated April 16, 2026

Question posted 2009 · +1 upvotes

As part of my university coursework, I was asked to design and create an HCI for a shop. Part of it is to connect Delphi 7 to MS Access and run SQL queries. I have the database connected to Delphi, but when I run the program and enter the query it prompts me to enter a username and password to access the database. Does anyone have any ideas on what’s going on? I am stumped for ideas!

Any help is greatly appreciated!

Andy

Accepted answer +11 upvotes

Simple solution, the LoginPrompt to FALSE on your TAdoDatabase component. Make sure that your query object then is linked to the database component.

Top ms-access Q&A (6)

+11 upvotes ranks this answer #16 out of 55 ms-access solutions on this site .