Adrianna
Registered User.
- Local time
- Today, 06:34
- Joined
- Oct 16, 2000
- Messages
- 254
Yeah...I always have questions as deadlines approach!
I have an archive form that allows the manager to archive records and recover them in the future. At the moment, the records are archive to an archive table within the same database that the current records are held in. I was going to just mark them ARCHIVED so that they would now show in current data calls, but I figured that moving them would be just as easy.
So the user enters a record number and the department name. The department name comes from a drop down list if all of the departments in the system. The record number is an unbound text box (there would be to may to list).
Then the user can select either the Archive or Recover command button. The problem is that not all of the users remember the record number completely and I want to be able to check the [RecNo2Process] against the [RecNo] in both tables. Possibly using something like :
If ([RecNo2Process] = [Tables].[MasterSystemsTbl].[RecNo]) Then
MsgBox "TheRecord Number you entered is a current system. Press the Archive button to archive the data for this system."
Else
If ([RecNo2Process] = [Tables].[MasterSysArchTbl].[RecNo]) Then
MsgBox "TheRecord Number you entered is an archived system. Press the Recovery button to recover the system data."
Else
MsgBox "TheRecord Number that you have entered is not a validRecord Number, or does not belong to the Department that you've selected."
End If
End If
I need to be able to check both tables from the same unbound text boxes to prevent the users from getting confused when they successfully archive or recover 0 records.
I have an archive form that allows the manager to archive records and recover them in the future. At the moment, the records are archive to an archive table within the same database that the current records are held in. I was going to just mark them ARCHIVED so that they would now show in current data calls, but I figured that moving them would be just as easy.
So the user enters a record number and the department name. The department name comes from a drop down list if all of the departments in the system. The record number is an unbound text box (there would be to may to list).
Then the user can select either the Archive or Recover command button. The problem is that not all of the users remember the record number completely and I want to be able to check the [RecNo2Process] against the [RecNo] in both tables. Possibly using something like :
If ([RecNo2Process] = [Tables].[MasterSystemsTbl].[RecNo]) Then
MsgBox "TheRecord Number you entered is a current system. Press the Archive button to archive the data for this system."
Else
If ([RecNo2Process] = [Tables].[MasterSysArchTbl].[RecNo]) Then
MsgBox "TheRecord Number you entered is an archived system. Press the Recovery button to recover the system data."
Else
MsgBox "TheRecord Number that you have entered is not a validRecord Number, or does not belong to the Department that you've selected."
End If
End If
I need to be able to check both tables from the same unbound text boxes to prevent the users from getting confused when they successfully archive or recover 0 records.