C
Chris O''Neill
I'm not sure what I've done, but I've messed something up big time.
I have a number of subs (mostly command buttons) where I open another form
filtering on a control in the current form. My syntax is like this:
strCriteria = "[GLID] = " & Me.txtGLPostingID
DoCmd.OpenForm "frmGeneralLedger", , , strCriteria
In the above case, GLID and Me.txtGLPostingID are both numbers. When the
fields/controls I'm working with are strings, I use this syntax:
strCriteria = "[Company] = " & Chr(34) & Me.txtCompany & Chr(34)
DoCmd.OpenForm "frmCompanyInfo",,, strCriteria
All of this worked up until today. Today, none of these "WHERE" clauses
work. So, I'm sure it's not a syntax problem with one subroutine but,
rather, something I've done application-wide. When I print out any of the
strCriteria lines in the Immediate Window, everything appears as it should
but they still don't work.
Thoughts, suggestions, hints/tips on what I might have messed up to cause
this problem? Any help offered is greatly appreciated!
Regards, Chris
I have a number of subs (mostly command buttons) where I open another form
filtering on a control in the current form. My syntax is like this:
strCriteria = "[GLID] = " & Me.txtGLPostingID
DoCmd.OpenForm "frmGeneralLedger", , , strCriteria
In the above case, GLID and Me.txtGLPostingID are both numbers. When the
fields/controls I'm working with are strings, I use this syntax:
strCriteria = "[Company] = " & Chr(34) & Me.txtCompany & Chr(34)
DoCmd.OpenForm "frmCompanyInfo",,, strCriteria
All of this worked up until today. Today, none of these "WHERE" clauses
work. So, I'm sure it's not a syntax problem with one subroutine but,
rather, something I've done application-wide. When I print out any of the
strCriteria lines in the Immediate Window, everything appears as it should
but they still don't work.
Thoughts, suggestions, hints/tips on what I might have messed up to cause
this problem? Any help offered is greatly appreciated!
Regards, Chris