Subform

  • Thread starter Pass-the-reality
  • Start date
P

Pass-the-reality

on frmUpdateRecords, I have a Text0 field. Using the wizard, I added a
button to frmUpdateRecords that will open frmMainForm but ONLY show me the
records within frmMainForm where Text0 on frmUpdateRecords and CSR on
frmMainForm are equal. This code works great. (See below) However, I also
want to say that of those records, I only want to see the records where field
OrderBy on frmOrder is null. frmOrder is a subform on frmMainForms. What do
I need to add?


Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmMainForm"

stLinkCriteria = "[CSR]=" & "'" & Me![Text0] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

view specific forms 1
View Specific Records within a form 1
Command Button 0
Code to open a query 2
Open a form and close one 1
subform 1
search command 2
subform option group not working 5

Top