help with project

gagulok
01-26-2002, 03:30 AM
i be greatful if someone can get me started. i need to do an application for an I.T hardware company . the application is use by sales person, it needs to ask for pass word (which i seem to be stuck on)
and
customers name
address
tel . no.
unit cost of the product
how many were sold and the
date the invoice had to be paid by
and theres others , but i think i know ,
please get me started , all this must be done using visual basic codes only , i have version 6
thanks ,

ChiefRedBull
01-26-2002, 03:46 AM
Get you started?

I suggest you have a go yourself, and ask a specific quextion to which we can provide answers. Theres no easy way to start something like what sounds like a customer database system...

ChiefRedBull
01-26-2002, 07:26 AM
Ok, to do a basic first form password system
First - create a form, call it frmPassword, and put two text boxes and a command button on it. Call the boxes txtUser and txtPass.
Call the command button cmdLogin and set its caption to something suitable.
Second -Under Project-->Properties, set the startup form to your frmPassword.
Third - in the _Click() event of the comand button, put this:
Dim strPass As String
Dim strLogin As String
strPass = "place your pass here"
strLogin = txtPass.Text
If strPass = strLogin Then
Msgbox "Well done, thats the right password"
Else
' do nothing
End If
End Sub

This will work fine, because the password form loads first, then nothing happens until they type in the right password.
You can extend it so that it checks the password against the username entered. The only problem with this is that if the EXE is opened in Notepad, the password will be visible in plain text... so you might have to connect to a database, or have some sort of algorithm to alter the username to create a password or something.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum