Re: Upgrade from Access 2000 to 2003, MsgBox Error$ not working
- From: "Brendan Reynolds" <brenreyn@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Jun 2005 20:19:43 +0100
Error$ is old Access 2 syntax, but it is still supported for backward
compatibility - it works fine for me in Access 2003. I suspect you have a
missing or mismatched reference. In the VBA editor, select 'References' from
the 'Tools' menu. Are any of the checked references marked 'MISSING'?
--
Brendan Reynolds (MVP)
"tthaav" <tthaav@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8E88ADBD-824B-4080-B3B2-209F8D442E45@xxxxxxxxxxxxxxxx
> Hi. I upgraded my Access 2000 to Access 2003 but my database is not
> working
> correctly anymore. When I try to use .mdb, Access throws Microsot Visual
> Basic errormessage stating: "Compile error: Can't find project or
> library".
> Debugger stops in line MsgBox Error$ two times in following form code:
>
> Sub Form_Load()
> On Error GoTo Form_Load_Err
>
> If ParentFormIsOpen() Then ......
>
>
> Form_Load_Exit:
> Exit Sub
>
> Form_Load_Err:
> MsgBox Error$ <--- Debugger stops 1st time here stating Error$ can't
> be found
> Resume Form_Load_Exit
>
> End Sub
> Sub Form_Unload(Cancel As Integer)
> On Error GoTo Form_Unload_Err
>
> If ParentFormIsOpen() Then .........
>
>
> Form_Unload_Exit:
> Exit Sub
>
> Form_Unload_Err:
> MsgBox Error$ <-------- 2nd time here
> Resume Form_Unload_Exit
>
> End Sub
>
> Please help with this! Should I replace Error$:s with something? I'm not
> experienced Access form coder so this might be easy problem for you...
>
> Thanks already
> - Timo
.
- References:
- Prev by Date: Re: Enable a save button when record is changed
- Next by Date: Formatting large numbers
- Previous by thread: Upgrade from Access 2000 to 2003, MsgBox Error$ not working
- Next by thread: Re: Upgrade from Access 2000 to 2003, MsgBox Error$ not working
- Index(es):
Relevant Pages
|