Hi all,
I have a parameter value opening up when i click on a button to load the form.
Code:
Private Sub CmdPurchase_Click()
DoCmd.OpenForm "frmTransPurchase"
DoCmd.GoToRecord , , acNewRec
Forms!frmTransPurchase!CboFromAccount = Me.AccountID
Forms!frmTransPurchase!TransAmount.SetFocus
End Sub
When I click the button to open this form with code above, it does not go to new record, it goes to first record with this parameter and when i click OK or cancel, then
it goes to new record? Not sure at all why this is happening but very annoying to say the least. I can see it opens to first record but doesnt load the sub form data but gives a parameter
box instead. Is there some reason why this would happen or a way to make it go away?
Thanks
Dave