Main Form: FrmEmployeeReimb1 - single form - based on TblEmployeelist
- has unbound textbox "linkfield1" to link to 2nd subform
1st Subform :subexpenseReimb
- continuousform: (linked to Main form by EmplID)- With the event: Private
subform on current event: me.parent.linkfield1 = me.reimbID I place the
ReimbID onto the main form for the second subform to use - that works
2nd SubForm: subexpenseReimbJob
- continuousform: (linked to main form by ReimbID to linkfield1)
Trying to jump from subexpenseReimb field: ExpAmount to subexpenseReimbJob
field: JobID
I like the continuous forms, because of the ease of input and getting a
total for each employee, where on the second form job numbers are entered,
which could be quite a few or sometimes just one. Later a calculation
distributes the expamount equally to all job numbers entered.
The way I have it working right now, is very nice, I can click on any row in
the 1st subform and it shows the jobs the amount is being distributed to.
I just need to make it easier to get to the jobs field.
Perhaps there is a better way of doing it.
Anne
Ofer said:
Can you post the code you wrote.
The name of the main form-
The name of the second sub form , in the main form
The name of the field
--
In God We Trust - Everything Else We Test
Anne said:
I tried all different variations of the below code, but none of them
worked.
On the below code I get" Run-time error 438, Object doesn't support this
property or method.
Any other suggestions?
Anne
Try and set the focus to the field in the second subform.
On the on after update event, or then on exit event of the last field
in
the first sub form, you can enter the code
Forms![MainFormName]![SecondSubFromName].Form![job number].setfocus
--
In God We Trust - Everything Else We Test
:
I have a subform, where the user enters the account and the amount.
The
amount can be distributed the several jobs. So with the third tab I
want
the
move the the job number field on the second subform..
How can I do that?
Tanks,
Anne