Gudday
I am calling a form from another form in Access and trying to populate a couple of fields on the second form from the first.
The problem is, the second field doesn't get populated except when stepping through the code!?!?
viz:
stDocName = "Actions"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToRecord , stDocName, acNewRec
Forms("Actions"
.Cams_ID = Forms("faults"
.[CamsNumberText]
Forms("Actions"
.old_sts_id = Forms("faults"
.[Status_id]
4th line (Cams_ID) works, 5th line doesn't when run through.
BUT Both lines work fine when stepped through.
Any ideas?
Kenton
I am calling a form from another form in Access and trying to populate a couple of fields on the second form from the first.
The problem is, the second field doesn't get populated except when stepping through the code!?!?
viz:
stDocName = "Actions"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToRecord , stDocName, acNewRec
Forms("Actions"
Forms("Actions"
4th line (Cams_ID) works, 5th line doesn't when run through.
BUT Both lines work fine when stepped through.
Any ideas?
Kenton