pranavrules2007
I Sell Brains,Any Buyers?
Hi there, I am a computer engineering student in 3rd year of my diploma. I am in great need of help in visual basic as it's the main base of my project work. I am working on an autobased company statistics program, which keeps all the records of the industry like employees, products made, etc. I am stuck on the very basic form of the project, that is, the login screen.
I created a basic login form with a username and password fields as text boxes. Here are the steps that i carried out.
Like, do i go to the command1_click() and type something there? how do i search for a string in the records of the database? see this for example..
text1.text = "admin" [that's the id in the form]
text2.text = "asd123" [that's the password in the form]
How do i search for these strings in the database?
is it like
ado1.recordset.find (text1.text) or something? please help me here.. tell me the exact queries that i should place inside the text1_click() event in order to connect to the database, look inside the login table and search for the records.. Thanks for helping me. I need this urgently.. Thanks again..
Please do reply someone.. I am need of serious help, my project is held up because of this database.. Please do reply ASAP.. thanks..
Pranav..
I created a basic login form with a username and password fields as text boxes. Here are the steps that i carried out.
- Created a New Form
- Added a Database via MS-Access 2003
- Created a table named login with fields "id" and "paswd"
- Using the Microsoft ADO Data Control 6.0 i added the data control on the form
- Used a connection string to connect to the database by simply right clicking on the data control on the form and selecting the connection string as the database file [login.mdb] which was on the desktop within a folder.
- Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\Desktop\pranav\login.mdb;Persist Security Info=False This was the basic connection string that was generated by the control.
- Then, i clicked on the RecordSet tab on the data control's properties and chose adCmdText under the command type drop down list and i used a SQL command select * from login; for the command text.
- Then, i went to the login text box and chose the datasource as ado1 [the name of my control for the database connection] and the data field as id and similarly for the password field as paswd for text2
Like, do i go to the command1_click() and type something there? how do i search for a string in the records of the database? see this for example..
text1.text = "admin" [that's the id in the form]
text2.text = "asd123" [that's the password in the form]
How do i search for these strings in the database?
is it like
ado1.recordset.find (text1.text) or something? please help me here.. tell me the exact queries that i should place inside the text1_click() event in order to connect to the database, look inside the login table and search for the records.. Thanks for helping me. I need this urgently.. Thanks again..
Please do reply someone.. I am need of serious help, my project is held up because of this database.. Please do reply ASAP.. thanks..
Pranav..
Last edited: