Dear Readers,
I'm working on a staff attendance database where it should
Date on main form then staffname, login time, logout time, leaveID and total hours
comboboxes: Staffname list from Staff Table and cmbleaveID - LeaveID (LeaveID primary table is Leave Table)
textboxes: Login, logout and leaveID from ATtendance table
madeup txtbox: total hours (named txtTotalHoursMins)
Everyone who comes to work logins and logs out - total hours worked is automatically generated in txtTotalHoursMins textbox.
NOW, what I want is that; if i choose a particular LeaveID from the dropdownbox, i want txtTotalHoursMins textbox to automatically generate assigned hours to that particular LeaveID. Can this happen? Otherwise, suggest better ideas
In addition, COMBOBOX AUTOMATICALLY GENERATE VALUE ON TEXTBOX ON CONTINUOUS FORM. I've worked around combobox that automatically generates value in another textbox, BUT when i view the form in Form View and choose a value from the dropdown box, the OTHER RECORDS' TEXTBOXES automatically generate the same value assignedd to the chosen combobox value. How can I make sure that the combobox value can only apply to the particular staff member? I used this code:
Private Sub cmStaffName_AfterUpdate()
Me.txtLocation = Me.cmbStaffName.Column(1)
End Sub
Thank you so much in advance,
Teresa
I'm working on a staff attendance database where it should
- generate total hours worked per staff
- generate report with staff total hours and leave (if there any)
Date on main form then staffname, login time, logout time, leaveID and total hours
comboboxes: Staffname list from Staff Table and cmbleaveID - LeaveID (LeaveID primary table is Leave Table)
textboxes: Login, logout and leaveID from ATtendance table
madeup txtbox: total hours (named txtTotalHoursMins)
Everyone who comes to work logins and logs out - total hours worked is automatically generated in txtTotalHoursMins textbox.
NOW, what I want is that; if i choose a particular LeaveID from the dropdownbox, i want txtTotalHoursMins textbox to automatically generate assigned hours to that particular LeaveID. Can this happen? Otherwise, suggest better ideas
In addition, COMBOBOX AUTOMATICALLY GENERATE VALUE ON TEXTBOX ON CONTINUOUS FORM. I've worked around combobox that automatically generates value in another textbox, BUT when i view the form in Form View and choose a value from the dropdown box, the OTHER RECORDS' TEXTBOXES automatically generate the same value assignedd to the chosen combobox value. How can I make sure that the combobox value can only apply to the particular staff member? I used this code:
Private Sub cmStaffName_AfterUpdate()
Me.txtLocation = Me.cmbStaffName.Column(1)
End Sub
Thank you so much in advance,
Teresa