Sizemore5000
Registered User.
- Local time
- Today, 07:05
- Joined
- Jul 3, 2007
- Messages
- 18
Firstly, I know I'm going to sound like a complete idiot, but here goes.
OK, so I have an employee database that I'm working on. A form opens to view employee details, and I have buttons to perform different actions on the employee, like "change supervisor", which opens another form.
This form collects certain information for the action (stored in fields in the same table), and then users click a button to "Go on", opening another form (this one is always 8.5" x 11", in print preview view).
Here's where I get stuck. I want 2 things from these forms.
1. The form doesn't have to open in preview, but I want the user to see the page as it will be printed, and also to have a button to print page at the same time.
2. On Close, I want the old information to save to other fields, the new information to overwrite the old, then the new info fields to be erased.
I had this in the Event Procedure, but it's doen't work:
(NewSupervisor & EffectiveDate are the info collected in the second form)
Private Sub Form_Close()
Me!OldSupervisor = Me!Supervisor
Me!Supervisor = Me!NewSupervisor
Me!NewSupervisor = " "
Me!SupDate = Me!EffectiveDate
Me!EffectiveDate = " "
End Sub
Any help is very appreciated.
OK, so I have an employee database that I'm working on. A form opens to view employee details, and I have buttons to perform different actions on the employee, like "change supervisor", which opens another form.
This form collects certain information for the action (stored in fields in the same table), and then users click a button to "Go on", opening another form (this one is always 8.5" x 11", in print preview view).
Here's where I get stuck. I want 2 things from these forms.
1. The form doesn't have to open in preview, but I want the user to see the page as it will be printed, and also to have a button to print page at the same time.
2. On Close, I want the old information to save to other fields, the new information to overwrite the old, then the new info fields to be erased.
I had this in the Event Procedure, but it's doen't work:
(NewSupervisor & EffectiveDate are the info collected in the second form)
Private Sub Form_Close()
Me!OldSupervisor = Me!Supervisor
Me!Supervisor = Me!NewSupervisor
Me!NewSupervisor = " "
Me!SupDate = Me!EffectiveDate
Me!EffectiveDate = " "
End Sub
Any help is very appreciated.