Re: Run Time error 2448, You cannot assign a value to this object !!
- From: "LJG" <lj_girvan@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 11 Sep 2005 18:34:35 +0100
Hi Douglas,
The line causing the problem is:
Forms!frmMainMenu.frmCustomers_edit!contactID = contactID 'value
When I debug and hover over the error the values are there?
will try your suggestion.
TIA
Les
"Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx> wrote in message
news:%23YCJvOvtFHA.2076@xxxxxxxxxxxxxxxxxxxxxxx
> Which line of code is causing the error?
>
> What is frmCustomers_edit: a subform on form frmMainMenu? If so, try
> Forms!frmMainMenu!frmCustomers_edit.Form!contactID
>
> See http://www.mvps.org/access/forms/frm0031.htm at "The Access Web" for
> more about how to refer to Form and Subform properties and controls.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
>
> "LJG" <lj_girvan@xxxxxxxxxxxxxxxxxxx> wrote in message
> news:OWEK8VutFHA.2912@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi Guys, any idea why this is not working, and giving me the error?
>>
>> contactID is a number field
>>
>> Dim stDocName As String
>> Dim stLinkCriteria As String
>>
>> stDocName = "frmAdditional_Contacts"
>>
>> stLinkCriteria = "[contactID]=" & Me![contactID]
>> DoCmd.OpenForm stDocName, , , stLinkCriteria
>> Forms!frmMainMenu.frmCustomers_edit!contactID = contactID 'value
>>
>>
>> Many thanks
>>
>> Les
>>
>>
>
>
.
- References:
- Run Time error 2448, You cannot assign a value to this object !!
- From: LJG
- Re: Run Time error 2448, You cannot assign a value to this object !!
- From: Douglas J. Steele
- Run Time error 2448, You cannot assign a value to this object !!
- Prev by Date: Re: Problem with a form data result
- Next by Date: RE: Problem with a form data result
- Previous by thread: Re: Run Time error 2448, You cannot assign a value to this object !!
- Next by thread: How to create a functio with a variable form name
- Index(es):
Relevant Pages
|