Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If Database Login Error - try again? Exit app? 1

Status
Not open for further replies.

lespaul

Programmer
Feb 4, 2002
7,083
US
In my MainForm FormCreate procedure I have a query that I activate at which point the database login appears. The user logs in and the query runs (if the query returns a date that was 15 days ago do something). If however, the user puts in an invalid username or password, the query doesn't run, but the application still opens (without doing the date check query). How can I verify that the user has successfully logged in to the database and present the log-in again or just exit the program? I tried Application.Terminate but it still continues to open the application!! Thanks for all assistance! Leslie
landrews@metrocourt.state.nm.us

SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned
 
You are welcome, I liked the KeepTrying construction Steven van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top