G
Guest
I've been using code suggested on this board on how to hide a button based on
certain criteria. However, not sure if my problem lies with another issues.
My criteria is based on a field [TotalRecords] which is actually residing in
the forms footer. The control for that field is a Sum([Records]), so it's
not actually calculated until the form is opened and populated. The Button I
want hdden is not hidden and the msg box I placed to check the TotalRecords
value comes back "Count = "
Here's the code, any help is appreciated.
If Me.TotalRecords < 16000 Then
MsgBox "Count = " & (Me![TotalRecords])
Me.Command14.Visible = True
Else
MsgBox "Count = " & (Me.TotalRecords)
Me.Command14.Visible = False
End If
certain criteria. However, not sure if my problem lies with another issues.
My criteria is based on a field [TotalRecords] which is actually residing in
the forms footer. The control for that field is a Sum([Records]), so it's
not actually calculated until the form is opened and populated. The Button I
want hdden is not hidden and the msg box I placed to check the TotalRecords
value comes back "Count = "
Here's the code, any help is appreciated.
If Me.TotalRecords < 16000 Then
MsgBox "Count = " & (Me![TotalRecords])
Me.Command14.Visible = True
Else
MsgBox "Count = " & (Me.TotalRecords)
Me.Command14.Visible = False
End If