Re: If Statement Referencing Sub-Forms
From: Dave Elliott (dave_at_dontgetshocked.com)
Date: 02/16/05
- Next message: Warrio: "Import an Office Outlook calendar into Access"
- Previous message: BruceM: "Re: Text length in combo box"
- In reply to: Wayne Morgan: "Re: If Statement Referencing Sub-Forms"
- Next in thread: Wayne Morgan: "Re: If Statement Referencing Sub-Forms"
- Reply: Wayne Morgan: "Re: If Statement Referencing Sub-Forms"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Feb 2005 13:44:21 GMT
This code still does not work???
TimeCards is the main form and code is being run from a sub-form named
Vendor_List
If Forms!frmTimeCards.Text414 >0 and Forms!frmTimeCards.Text416 =0 Then
MsgBox "Why is more material being put on this job"
End If
"Wayne Morgan" <comprev_gothroughthenewsgroup@hotmail.com> wrote in message
news:eJZwpo9EFHA.3404@TK2MSFTNGP10.phx.gbl...
> "Me." is shorthand for the form that the code is running on. From the
> Immediate Window you would have to specify the full path to the Parent
> form instead of Me, then give the path from there if you are referring to
> a subform.
>
> Example:
> Forms!frmParentForm.ControlName
> or
> Forms!frmParentForm.SubformControlName.Form.ControlName
>
> Also, you need to specify the full path to both textboxes.
>
> --
> Wayne Morgan
> MS Access MVP
>
>
> "Dave Elliott" <dontgetshocked@sbcglobal.net> wrote in message
> news:GPyQd.10430$D34.2498@newssvr12.news.prodigy.com...
>> Error says Variable not yet created in this context in immediate window
>>
>> If Me.Parent.[Text412] > 0 And [Text414] = 0 Then
>> MsgBox "Why is there more material on this job?"
>> End If
>
>
- Next message: Warrio: "Import an Office Outlook calendar into Access"
- Previous message: BruceM: "Re: Text length in combo box"
- In reply to: Wayne Morgan: "Re: If Statement Referencing Sub-Forms"
- Next in thread: Wayne Morgan: "Re: If Statement Referencing Sub-Forms"
- Reply: Wayne Morgan: "Re: If Statement Referencing Sub-Forms"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|