If you want to provide db with attempted code, follow instructions at bottom of my post.
If you want to provide db with attempted code, follow instructions at bottom of my post.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
This is the final code I used to get it to work:
Dim stDocName As String
Dim lngSelRecord As Long
lngSelRecord = [Forms]![Customers]![Invoices Subform]![InvoiceID]
stDocName = "Invoices"
DoCmd.OpenForm stDocName, , , "[InvoiceID] = " & lngSelRecord
Thanks for bearing with me through this.