RE: Prompt for Parameter Value Help

Tech-Archive recommends: Fix windows errors by optimizing your registry



Pam,

Just to rule out the most obvious:

Is fWorkLogHiddenOpen actually open and displaying a record?
Can you manually open fWorkLogReminder without the prompt?

"PHisaw" wrote:

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
.



Relevant Pages

  • Re: View Records for Editing Only
    ... Private Sub JobNumber_Click ... DoCmd.OpenForm "fWorkLogReminder" ... It seems if I open with JobNumber and then cancel from the Form_Open event, ... form still opens with a blank entry screen that says 1 of 1. ...
    (microsoft.public.access.forms)
  • Re: View Records for Editing Only
    ... Private Sub JobNumber_Click(This is on the subform from Switchboard main ... DoCmd.OpenForm "fWorkLogReminder" ... It seems if I open with JobNumber and then cancel from the Form_Open event, ... form still opens with a blank entry screen that says 1 of 1. ...
    (microsoft.public.access.forms)
  • Re: View Records for Editing Only
    ... DoCmd.OpenForm "fWorkLogReminder" ... Private Sub JobNumber_Click(This is on the subform from Switchboard main ... It seems if I open with JobNumber and then cancel from the Form_Open event, ... form still opens with a blank entry screen that says 1 of 1. ...
    (microsoft.public.access.forms)
  • Re: View Records for Editing Only
    ... Private Sub JobNumber_Click ... DoCmd.OpenForm "fWorkLogReminder" ... It seems if I open with JobNumber and then cancel from the Form_Open event, ... form still opens with a blank entry screen that says 1 of 1. ...
    (microsoft.public.access.forms)
  • Re: View Records for Editing Only
    ... Private Sub JobNumber_Click ... DoCmd.OpenForm "fWorkLogReminder" ... present a message box and cancel the open. ... form still opens with a blank entry screen that says 1 of 1. ...
    (microsoft.public.access.forms)