Whenever an application requires summing or averaging across fields rather than across records, it hints at un-normalized table structures. For instance if your table fields were grades for four different tests for one student. These grades should each be contained in their own record rather than 4 fields in a single record.
You didn't provide any clues as to the values you are storing so my comments are only guesses.
Hi,
I was wondering if I could force a field in a report.
Let me explain, I have a report that is based off a query( Product survey letter). The query is set to ask me which sales order number, it then inserts the the relevant information into the letter for the customers (like there name, the sales order # , todays date).
There is a form that allows me to update and search through the list of Sales orders. I added a command button on the form that allows me to preview the Survey letter. But when i press the button it asks me to for the sales order number. I was wondering if I could force the report to use the sales order number that is already displayed on that form.
Hi,
Thank for the help. But when Remove the parameter query and insert what the new code in the expression build. I still get "mismatched in criteria expression" for an error.
Private Sub Command55_Click()
On Error GoTo Err_Command55_Click
Dim strWHere As String
strWHere = "[SO NO]=" & Me.txtSalesOrderNumber
DoCmd.OpenReport "Product Quality Survey", acViewPreview, , strWHere
You are definitely on the right track. I assumed your SO NO was numeric. If it is a text field, try:
strWHere = "[SO NO]=""" & Me.txtSalesOrderNumber & """"
Duane
MS Access MVP
Find out how to get great answers faq219-2884.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.