luka
Sep 1st, 1999, 06:16 AM
Hi, (using VB6)
I'm creating a simple employee payroll program that gives you a list
of employee information (Name, Address, etc.) and compiles their
wages on a monthly bassis.
I've created two tables in Access (payroll.mbd). The Employee Table
stores all the personal data and the Expenses Table compiles their
monthly income. All of this information is displayed in Text Boxes
and MaskedEdit Boxes.
The form also has only one ADO Control and this brings me to this:
In the ADO control Property Pages, RecordSource tab I choose the
Command Type as "1 -adCmdText" and in the Command Text(SQL) box I
entered "SELECT * FROM Employees,Expenses;".
Now all of the Data Fields are displayed in the Text Boxes Properties Window.
In a command button (Private Sub cmdAdd_Click) I added the command:
"adcPayroll.Recordset.AddNew" so that I could compile a new monthly income and the problem is that all of the information is removed
including the Employee Info.
How can I keep the Employee Info and just get rid of the old monthly
income? Do I need to add another ADO Control to the form?
I hope this is clear enough and I really appreciate all of the
assistance I have received so far.
Thanks..Ron Lukawitski
I'm creating a simple employee payroll program that gives you a list
of employee information (Name, Address, etc.) and compiles their
wages on a monthly bassis.
I've created two tables in Access (payroll.mbd). The Employee Table
stores all the personal data and the Expenses Table compiles their
monthly income. All of this information is displayed in Text Boxes
and MaskedEdit Boxes.
The form also has only one ADO Control and this brings me to this:
In the ADO control Property Pages, RecordSource tab I choose the
Command Type as "1 -adCmdText" and in the Command Text(SQL) box I
entered "SELECT * FROM Employees,Expenses;".
Now all of the Data Fields are displayed in the Text Boxes Properties Window.
In a command button (Private Sub cmdAdd_Click) I added the command:
"adcPayroll.Recordset.AddNew" so that I could compile a new monthly income and the problem is that all of the information is removed
including the Employee Info.
How can I keep the Employee Info and just get rid of the old monthly
income? Do I need to add another ADO Control to the form?
I hope this is clear enough and I really appreciate all of the
assistance I have received so far.
Thanks..Ron Lukawitski