G
Gord
Here is the portion of the code that is giving me grief. The query is
based on a single table.
If Me.chkRenter = -1 Then
Me.LineRenter.Visible = True
Me.lblRenter.Caption = "Renter:"
Me.chkRentSingle.Visible = True
Me.lblRentFname.Caption = RentFname '(field created before query
was built - works fine)
Me.lblRentPhone.Caption = "Phone Number:"
Me.lblRentPhoneNo.Caption = RentPhone '(field created after query
built - doesn't work)
If Me.chkRentSingle = 0 Then
Me.lblRentAnd.Caption = " and " & RSFname '(field
created after query was built - doesn't work)
Me.lblRentLname.Caption = RentLname '(field created before
query was built - works fine)
Else
Me.lblRentAnd.Caption = " " & RentLname
Me.lblRentLname.Caption = ""
End If
Else
Me.lblRenter.Caption = ""
Me.chkRentSingle.Visible = False
Me.lblRentFname.Caption = ""
Me.lblRentAnd.Caption = ""
Me.lblRentLname.Caption = ""
Me.LineRenter.Visible = False
Me.lblRentPhone.Caption = ""
Me.lblRentPhoneNo.Caption = ""
End If
I tried using the field in the form with a textbox as suggested and it works
fine. It looks like that is what I will end up doing, although I would
rather use a label because of the flexability in displaying text. Strange,
though, that the labels work for some fields and not for others.
Thanks again for your help
based on a single table.
If Me.chkRenter = -1 Then
Me.LineRenter.Visible = True
Me.lblRenter.Caption = "Renter:"
Me.chkRentSingle.Visible = True
Me.lblRentFname.Caption = RentFname '(field created before query
was built - works fine)
Me.lblRentPhone.Caption = "Phone Number:"
Me.lblRentPhoneNo.Caption = RentPhone '(field created after query
built - doesn't work)
If Me.chkRentSingle = 0 Then
Me.lblRentAnd.Caption = " and " & RSFname '(field
created after query was built - doesn't work)
Me.lblRentLname.Caption = RentLname '(field created before
query was built - works fine)
Else
Me.lblRentAnd.Caption = " " & RentLname
Me.lblRentLname.Caption = ""
End If
Else
Me.lblRenter.Caption = ""
Me.chkRentSingle.Visible = False
Me.lblRentFname.Caption = ""
Me.lblRentAnd.Caption = ""
Me.lblRentLname.Caption = ""
Me.LineRenter.Visible = False
Me.lblRentPhone.Caption = ""
Me.lblRentPhoneNo.Caption = ""
End If
I tried using the field in the form with a textbox as suggested and it works
fine. It looks like that is what I will end up doing, although I would
rather use a label because of the flexability in displaying text. Strange,
though, that the labels work for some fields and not for others.
Thanks again for your help