G
Guest
I am receiving a runtime error code 3075 - missing operator when attempting
to execute the following OpenReport statement
Private Sub QueryResults_Click()
Dim rptName As String
Dim strWhere As String
Dim AggregateNumber As Single
Dim AggregateSpread As Single
rptName = "rptVariableResults"
AggregateNumber = InputBox("Aggregate Number Maximum ")
AggregateSpread = InputBox("Aggregate Spread Minimum ")
strWhere = "1agg <= " & AggregateNumber & " AND AggSpread => " &
AggregateSpread
DoCmd.OpenReport rptName, acViewPreview, , strWhere
End Sub
What I am trying to do is to allow a customized report based on user entered
values on two criteria 1agg and AggSpread. Your ideas on how I can get this
to work will be most appreciative. As always, I thank you for looking at this
scenario for me.
to execute the following OpenReport statement
Private Sub QueryResults_Click()
Dim rptName As String
Dim strWhere As String
Dim AggregateNumber As Single
Dim AggregateSpread As Single
rptName = "rptVariableResults"
AggregateNumber = InputBox("Aggregate Number Maximum ")
AggregateSpread = InputBox("Aggregate Spread Minimum ")
strWhere = "1agg <= " & AggregateNumber & " AND AggSpread => " &
AggregateSpread
DoCmd.OpenReport rptName, acViewPreview, , strWhere
End Sub
What I am trying to do is to allow a customized report based on user entered
values on two criteria 1agg and AggSpread. Your ideas on how I can get this
to work will be most appreciative. As always, I thank you for looking at this
scenario for me.