view specific forms

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

Pass-the-reality

Using the wizard, I created a button on a Form ( frmViewRecords) so that at a
click of the button, I could view only those records where Text0 on
frmViewRecords and CSR of frmMainForm are the same - see code below. I need
to take the code one step further. Within frmMainForm, there is a subform
called frmOrderNumber. How do I also say but show me records were OrderBy on
frmOrderNumber is null?


Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmMainForm"

stLinkCriteria = "[CSR]=" & "'" & Me![Text0] & "'" _


DoCmd.OpenForm stDocName, , , stLinkCriteria
 
C

Clifford Bass

Hi,

Quick questions: Is the OrderBy condition always to be that when you
open frmMainForm, regardless of how you open it? Or is it only to be used
when the button is clicked on frmViewRecords?

Clifford Bass
 

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

Top