IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Where is the declaration exactly? And a few more q's.
1) I assume the declaration is in a bas module (not Form module), yes?

2) Is the same rst object used to hold different recordsets across multiple forms?

3) Could you post the Form_Load and Form_Activate code?

4) If you write an error handler in the form_load that looks something like this, what is written to your c:\\myerrors.log file?

Form_Load()

On error goto Load_Err

...

Load_Exit:
Exit Sub

Load_Err:
' I don't remember if DAO has an errors collection or not, but I think it does.
' If it doesn't, strike out the errX stuff below
Dim hFile as long
Dim errX as Error

hFile = Freefile()
Open "C:\\MyErrors.log" for Append as #hFile
Print #hFile, Err.Description
For Each errX in DAO.Errors
Print #hFile, errX.Description
Next errX
close #hFile
Resume Load_Exit
bcnu,
Mikem

Eine Leute. Eine Welt. Ein F\ufffdhrer.
(Just trying to be accepted in the New America)
Collapse Edited by mmoffitt Dec. 30, 2004, 12:40:15 PM EST
Where is the declaration exactly? And a few more q's.
1) I assume the declaration is in a bas module (not Form module), yes?

2) Is the same rst object used to hold different recordsets across multiple forms?

3) Could you post the Form_Load and Form_Activate code?

4) If you write an error handler in the form_load that looks something like this, what is written to your c:\myerrors.log file?

Form_Load()

On error goto Load_Err

...

Load_Exit:
Exit Sub

Load_Err:
' I don't remember if DAO has an errors collection or not, but I think it does.
' If it doesn't, strike out the errX stuff below
Dim hFile as long
Dim errX as Error

hFile = Freefile()
Open "C:\MyErrors.log" for Append as #hFile
Print #hFile, Err.Description
For Each errX in DAO.Errors
Print #hFile, errX.Description
Next errX
close #hFile
Resume Load_Err


bcnu,
Mikem

Eine Leute. Eine Welt. Ein Führer.
(Just trying to be accepted in the New America)
     Access: Runtime error 91. - (acagle) - (22)
         I think that one means... - (pwhysall) - (10)
             Re: I think that one means... - (acagle) - (9)
                 From the 10 Commandments of C Programming: - (inthane-chan) - (8)
                     So. - (acagle) - (7)
                         In VB? - (JayMehaffey) - (5)
                             Re: In VB? - (acagle) - (4)
                                 You can use On Error GoTo - (ben_tilly) - (1)
                                     That's still the way - (Steven A S)
                                 That was a joke - (JayMehaffey) - (1)
                                     For certain techniques, it works. - (static)
                         Opinions vary on "Global" error checking in VB. - (mmoffitt)
         That's the technical term "set" - (FuManChu) - (4)
             Re: That's the technical term "set" - (acagle) - (3)
                 Yes, unfortunately. - (FuManChu)
                 Putting it in every procedure is good practice for VB. - (mmoffitt) - (1)
                     Dangitall. - (acagle)
         Update: (+edit) - (acagle) - (5)
             You're probably all over this, but... - (Steven A S) - (1)
                 Re: You're probably all over this, but... - (acagle)
             Where is the declaration exactly? And a few more q's. - (mmoffitt)
             Did you get this fixed? -NT - (mmoffitt) - (1)
                 Re: Did you get this fixed? - (acagle)

But he doesn't look quite skeletal enough for both to be true, does he?
64 ms