Traditional Culture Encyclopedia - Hotel reservation - I want to make a hotel management system, and I have many questions. Ask me something, ask two first.

I want to make a hotel management system, and I have many questions. Ask me something, ask two first.

The first question: If you want to verify the account, you must have a USERNAME table, which stores the user code (USERID), user name (username), user password, authority and other information. It is suggested to replace the control of TEXT 1 with the control of COMBO 1, and the data source of COMBO 1 should be bound with the user name or user code information of the user name table. In this way, when the user is selected, the record pointer cursor will automatically move in the data table. As long as the characters of TEXT2 control completely match the user password string in the user name table ("= ="), subsequent operations are allowed; If they do not match, subsequent operations are not allowed.

The second question: from the description of your question, it is not very clear. If form2 is another form file, then your code is wrong. The correct code should be "DO FORM form2.scx". Of course, the file extension can still be omitted. If form 1 and form2 belong to the same form set, you cannot execute the DO FORM command to display form2. The correct way is to hide form2 at design time, and write code on the "Enter" button to activate the display of form2 forms, such as "thisform.parent.form2.show".