I have a database that has been working fine, now it starts asking for
parameter.
I created a switchboard that opens to screen where user selects name from a
combo box and then a list is populated with a list of his jobs. User then
clicks on job number to go to form to enter time started / completed work on
job. This is the code behind job number click:
Private Sub JobNumber_Click()
On Error GoTo JobNumber_Click_Error
If IsNull(Forms!fWorkLogHiddenOpen!StopTime) Then
DoCmd.OpenForm "fWorkLogReminder"
End If
JobNumber_Click_Exit:
Exit Sub
JobNumber_Click_Error:
If Err.Number = 2501 Then
DoCmd.OpenForm "fGeneralInfo", , , "JobNumber=" & Me!JobNumber
Else
MsgBox "Error " & Err.Number & " - " & Err.Description
End If
GoTo JobNumber_Click_Exit
End Sub
Now, it is prompting for tWorkLog.StartTime and I have no idea why. I know
if anyone can help, more info will probably be needed but I'll wait to find
out exactly what that will be. Any help is greatly appreciated as I've
already spent considerable amount of time searching tables, queries, etc. and
know I'm overlooking something probably very simple.
Thanks in advance,
Pam
nomadk - 19 May 2008 20:55 GMT
Pam,
Just to rule out the most obvious:
Is fWorkLogHiddenOpen actually open and displaying a record?
Can you manually open fWorkLogReminder without the prompt?
> I have a database that has been working fine, now it starts asking for
> parameter.
[quoted text clipped - 32 lines]
> Thanks in advance,
> Pam
PHisaw - 19 May 2008 21:27 GMT
Thanks nomadk for replying. If I enter someone who is currently working on a
job (start time is entered but stop time is null), then yes a record is
displayed and I can manually open fWorkLogReminder without any prompts.
Friday I noticed there was a corrupt record in the work log table, but I
deleted it everything seemed to be working fine. I can't figure out why it
is asking for starttime.
Thanks,
Pam
> Pam,
>
[quoted text clipped - 39 lines]
> > Thanks in advance,
> > Pam
nomadk - 19 May 2008 21:48 GMT
Did this parameter prompt appear after the corrupt data was noticed? Did you
run Compact & Repair? Can you open fWorkLogReminder manually?
> Thanks nomadk for replying. If I enter someone who is currently working on a
> job (start time is entered but stop time is null), then yes a record is
[quoted text clipped - 50 lines]
> > > Thanks in advance,
> > > Pam
PHisaw - 19 May 2008 22:01 GMT
It did appear after the corrupt data record was deleted and I did run compact
and repair and I can open fWorkLogReminder manually with no parameter prompts.
Pam
> Did this parameter prompt appear after the corrupt data was noticed? Did you
> run Compact & Repair? Can you open fWorkLogReminder manually?
[quoted text clipped - 53 lines]
> > > > Thanks in advance,
> > > > Pam
nomadk - 20 May 2008 15:53 GMT
Sorry, I'm not being much help, am I?
You might want to ask this question again.
> It did appear after the corrupt data record was deleted and I did run compact
> and repair and I can open fWorkLogReminder manually with no parameter prompts.
[quoted text clipped - 58 lines]
> > > > > Thanks in advance,
> > > > > Pam
PHisaw - 20 May 2008 19:54 GMT
That's okay - I appreciate your time and help anyway. I'll repost the
question and maybe someone will point out something we both are overlooking.
Thanks,
Pam
> Sorry, I'm not being much help, am I?
>
[quoted text clipped - 62 lines]
> > > > > > Thanks in advance,
> > > > > > Pam