Hello, I had a problem with an earlier post that I couldnt get resolved....anyway. I'm toggling between two databases on my mainform, I have a text box that I double click and it opens a subform, where users can read comments. I want the users to able to update comments (using cmdAddNextStep)when the "Live" database is open, but when I'm in the "Archive" database I want the cmdAddNextStep button to be disabled, so the user cant update anything...just read comments.
Here is what I have so far, but I can't seem to get it working...
If strDatabase = "M:\Data\PD4CRF.mdb" Then
Me!fdlgTitleCommentHistory.Form!cmdAddNextStep.Enabled = False
Me.Requery
Else
If strDatabase = "C:\PD4 ARCHIVE.mdb" Then
Me!fdlgTitleCommentHistory.Form!cmdAddNextStep.Enabled = True
' Me.Requery
End If
End If
Any help would be appreciated....
Clark
Here is what I have so far, but I can't seem to get it working...
If strDatabase = "M:\Data\PD4CRF.mdb" Then
Me!fdlgTitleCommentHistory.Form!cmdAddNextStep.Enabled = False
Me.Requery
Else
If strDatabase = "C:\PD4 ARCHIVE.mdb" Then
Me!fdlgTitleCommentHistory.Form!cmdAddNextStep.Enabled = True
' Me.Requery
End If
End If
Any help would be appreciated....
Clark