•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 397,752 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,548 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser:
Views: 6044 | Replies: 0
![]() |
•
•
Join Date: Mar 2005
Location: Israel
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I change query parameters in my code.
i want the query to change her Sql property to new sql with new parameters.
Set QueryDef = CurrentDb.QueryDefs("q_QueryName")
QueryDef.Parameters("[Param_1]") = stringvalue_1
QueryDef.Parameters("[Param_2]") = stringvalue_2
QueryDef.Parameters("[Param_3]") = stringvalue_3
QueryDef.Parameters("[Param_4]") = "#" & Format(timevalue_1, "HH:mm") & "#"
QueryDef.Parameters("[Param_5]") = "#" & Format(timevalue_1, "HH:mm") & "#"
QueryDef.Parameters.Refresh
'QueryDef.Sql
DoCmd.OpenReport "r_ReportName", acViewPreview
The report "r_ReportName" need to run with new Query and new parameters.
But, actually the Query.Sql didn't change at all.
and microsoft JET still ask me for enter parameters ??
i want the query to change her Sql property to new sql with new parameters.
Set QueryDef = CurrentDb.QueryDefs("q_QueryName")
QueryDef.Parameters("[Param_1]") = stringvalue_1
QueryDef.Parameters("[Param_2]") = stringvalue_2
QueryDef.Parameters("[Param_3]") = stringvalue_3
QueryDef.Parameters("[Param_4]") = "#" & Format(timevalue_1, "HH:mm") & "#"
QueryDef.Parameters("[Param_5]") = "#" & Format(timevalue_1, "HH:mm") & "#"
QueryDef.Parameters.Refresh
'QueryDef.Sql
DoCmd.OpenReport "r_ReportName", acViewPreview
The report "r_ReportName" need to run with new Query and new parameters.
But, actually the Query.Sql didn't change at all.
and microsoft JET still ask me for enter parameters ??
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MS Access and FileMaker Pro Marketplace
- C# VS 2005 - SQL Query Parameters to an ODBC DataSource (C#)
- passing parameters to a page (JavaScript / DHTML / AJAX)
- Accessing Online (remote) MySQL DB to modify it (MySQL)
- Stored Procedures in Oracle (Visual Basic 4 / 5 / 6)
- Urgent.....Dynamic Changes.... (JavaScript / DHTML / AJAX)
- need help with the login (PHP)
- This ought to be simple - extra spaces (PHP)
- MySQL Maestro (Computer Science and Software Design)
Other Threads in the MS Access and FileMaker Pro Forum
- Previous Thread: create a forum ?
- Next Thread: DBMS Questionnaire


Linear Mode