On 12 Dec 2004 07:57:08 -0800,
tomblower@tiscali.co.uk (tom blower)
wrote:
[color=blue]
>Access 2k (10.6501.6714) SP3
>
>For YEARS the code line "On Error Resume Next" has worked without any
>problems. It is an essential tool. A couple of days ago, I put in
>another hard drive, mentioned because the problems have arisen since
>then, and transferred a lot of files, mainly MDB files, to the new
>drive. This line of code now fails to work in all the databases I have
>tried. I get error messages where none appeared before. I tried to
>following code as a test.
>
>Dim test As String
>On Error Resume Next
>test = DLookup("AppNameDac", "tblFirm")
>
>The lookup field is a null. Without the offending line I get an error
>and exactly the same result when the line is inserted. I have
>decompiled. I have put the mdb file back where it was originally.
>
>Has anyone any idea why this should suddenly plague me? What have I
>done?
>
>Thanks[/color]
What error message do you get?
Did you compile the mdb?
Did you check the references?
HTH
Matthias Kläy
--
www.kcc.ch