Heidestrand
Registered User.
- Local time
- Today, 09:27
- Joined
- Apr 21, 2015
- Messages
- 73
Hello,
I have a small problem that I can't solve and I'd ask you for your help. My problem is that I want to copy the value of a text-field of form frmSnippet into another text field of form frmChange. But this is not possible, Access tells me that it can't find the form frmChange. But it's there, I checked the name.
My code looks like this:
Any idea why I get the runtime error 2450?
I have a small problem that I can't solve and I'd ask you for your help. My problem is that I want to copy the value of a text-field of form frmSnippet into another text field of form frmChange. But this is not possible, Access tells me that it can't find the form frmChange. But it's there, I checked the name.
My code looks like this:
Code:
Const cstrForm As String = "frmChange"
Dim strNr As String
If CurrentProject.AllForms(cstrForm).IsLoaded Then
DoCmd.Close acForm, cstrForm
End If
DoCmd.OpenForm cstrForm, WindowMode:=acDialog
txtSAPNr.SetFocus
Forms!frmChange![txtSAPNr] = Me![txtSAPNr]
Any idea why I get the runtime error 2450?