Home > Back-end >  Hurry and run time login box out of the question
Hurry and run time login box out of the question

Time:10-07



Part of the code:
Procedure TForm1. Button1Click (Sender: TObject);
The begin
The begin
If edit1. Text=datamodule1. ADsid. Lookup (' name 'combobox1. Text, "password") then
The begin
The main. The Show;
Form1. Visible:=false;
End
The else
Showmessage (' sorry, you input the wrong password! ');
end;

CodePudding user response:

To create datamodule1 first

CodePudding user response:

Single step debugging, see which objects are not created

CodePudding user response:


Why does it have to be like this login form? Why is not in the main program file make a change? Displays login forms in according to the main form first and I'll see you this should be the first display main form the landing (form) and then display other forms (main interface),

CodePudding user response:

Datamodule1. ADsid. Lookup (' name 'combobox1. Text, "password") has a problem

The correct database may have no link, of course
  • Related