was using if/then behind a button to switch from a 'current' to an 'archived' table on a ticket search form. Has worked perfectly since 1997. All of a sudden, will not let me add the record sources upon reprogramming this year (I reprogram every December & upgrade). can email full code if needed. Would love some suggestions..but am wondering if since have renamed some fields to comply with naming conventions and also to make easier to work with, if now too long.
actual code is:
If Me.cmdSwitch.Caption = "Active" Then
Me.RecordSource = "SELECT tblDataCustomer.strCustNa>>"
Me.cmdSwitch.Caption = "Archive"
Else
Me.RecordSource = "SELECT tblDataCustomer.strCustNa>>"
Me.cmdSwitch.Caption = "Active"
End If
Note: record Sources truncated for convenience
& error codes removed
btw, I'm actually a bookkeeper & personnel manager who programs on the side with no 'official' training, just what I could teach myself :/
actual code is:
If Me.cmdSwitch.Caption = "Active" Then
Me.RecordSource = "SELECT tblDataCustomer.strCustNa>>"
Me.cmdSwitch.Caption = "Archive"
Else
Me.RecordSource = "SELECT tblDataCustomer.strCustNa>>"
Me.cmdSwitch.Caption = "Active"
End If
Note: record Sources truncated for convenience
btw, I'm actually a bookkeeper & personnel manager who programs on the side with no 'official' training, just what I could teach myself :/