RuralGuy said:Thanks gh for the assistance in getting the secured mdb open. I would still be hacking around. I happen to have the runtime package for ac2003 on my system and the mdb opens just fine with your shortcut. Of course I can't exit to anything but Windows since it is a RunTime package. My full ac2002 does *not* like very well. It opens for a second and then wants to send Bill Gates a failure report. It probably has something to do with the fact that the mdb was secured with ac2003 and it throws ac2002 for a loop. I'm giving up for now. If I continue to assist on this thread it will have to be with my psychic ability to see the code.
Sorry Sara, but I'll keep watching and pitch when I can.
SELECT DISTINCT tVendors.VendorName, tVendors.VendorNumber
FROM tVendors
ORDER BY tVendors.VendorName;
Private Sub cbSearch_AfterUpdate()
On Error GoTo cbSearch_AfterUpdate_Err
Me.tbHidden.SetFocus
If Me.Dirty Then
Beep
MsgBox "Please Save This Record!" & vbCrLf & vbLf & "You can not advance to another record until you either 'Save' the changes made to this record or 'Undo' your changes.", vbExclamation, "Save Required"
Exit Sub
Else
'MsgBox "[VendorName] = " & "'" & Me![cbSearch] & "'" 'used just for testing
Me.RecordsetClone.FindFirst "[VendorName] = " & "'" & Me![cbSearch] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
Beep
End If
cbSearch_AfterUpdate_Exit:
Exit Sub
cbSearch_AfterUpdate_Err:
MsgBox Err.Number & " - " & Err.Description
Resume cbSearch_AfterUpdate_Exit
End Sub
RecordsetClone.MoveLast
RecordsetClone.MoveFirst
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open
RecordsetClone.MoveLast
RecordsetClone.MoveFirst
' MsgBox "InsideHeight = " & InsideHeight & vbCrLf & vbLf & "InsideWidth = " & InsideWidth
InsideHeight = 4000
InsideWidth = 5790
Exit_Form_Open:
Exit Sub
Err_Form_Open:
MsgBox Err.Number, Err.Description
Resume Exit_Form_Open
End Sub
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open
RecordsetClone.MoveLast
RecordsetClone.MoveFirst
Exit_Form_Open:
Exit Sub
Err_Form_Open:
MsgBox Err.Number, Err.Description
Resume Exit_Form_Open
End Sub