J
Jack Peyton
I use Access 2000. I have a Form-FparkSpacAssignD with a recordsource that
is not updateable. On the form is a Frame that has two buttons. The Frame
values are 1 and 2. There is also a textbox [TotChkPrkSpc] that sums one of
the fields of the recordsource. There are three possible conditions for
[TotChkPrkSpc], IsNull, =0, >0. However, I cannot get Frame54=1 to work with
all of them. The IsNull(Me.[TotChkPrkSpc]) does not appear to be compatible
with Me.[TotChkPrkSpc] = 0 or Me.[TotChkPrkSpc] > 0. Is there a way that
Null works with 0 and >0? Any help will be appreciated.
Jack Peyton
Private Sub Frame54_Click()
If Me.Frame54 = 2 Then
DoCmd.Close acForm, "FParkSpacAssignD"
End If
If Me.Frame54 = 1 And Me.[TotChkPrkSpc] = 0 Then
DoCmd.GoToRecord , , acNewRec
ElseIf Me.Frame54 = 1 And Me.[TotChkPrkSpc] > 0 Then
MsgBox "Already Assigned."
ElseIf Me.Frame54 = 1 And IsNull(Me.[TotChkPrkSpc]) Then
MsgBox "Needs to be assigned"
End If
End If
is not updateable. On the form is a Frame that has two buttons. The Frame
values are 1 and 2. There is also a textbox [TotChkPrkSpc] that sums one of
the fields of the recordsource. There are three possible conditions for
[TotChkPrkSpc], IsNull, =0, >0. However, I cannot get Frame54=1 to work with
all of them. The IsNull(Me.[TotChkPrkSpc]) does not appear to be compatible
with Me.[TotChkPrkSpc] = 0 or Me.[TotChkPrkSpc] > 0. Is there a way that
Null works with 0 and >0? Any help will be appreciated.
Jack Peyton
Private Sub Frame54_Click()
If Me.Frame54 = 2 Then
DoCmd.Close acForm, "FParkSpacAssignD"
End If
If Me.Frame54 = 1 And Me.[TotChkPrkSpc] = 0 Then
DoCmd.GoToRecord , , acNewRec
ElseIf Me.Frame54 = 1 And Me.[TotChkPrkSpc] > 0 Then
MsgBox "Already Assigned."
ElseIf Me.Frame54 = 1 And IsNull(Me.[TotChkPrkSpc]) Then
MsgBox "Needs to be assigned"
End If
End If