Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / October 2004

Tip: Looking for answers? Try searching our database.

PARAMETERIZED PASS-THROUGH QUERY using textbox on form.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CT - 08 Oct 2004 00:33 GMT
SUBJECT:  PARAMETERIZED PASS-THROUGH QUERY using textbox
on form.

Can this be done? If so what is the SQL code for Access
2000 (and 2003)?  I have tried SQL logic from other
applications but have struck out.

Some trys:  
like [Forms]![frmNAME].[TextboxNAME]
= [Forms]![frmNAME].[TextboxNAME]
like :[Forms]![frmNAME].[TextboxNAME]
=?

CT
Duane Hookom - 08 Oct 2004 02:48 GMT
You can use DAO code to change the SQL of a saved query such as a p-t.
Currentdb.QueryDef("qsptMyPassthrough").SQL = "Select...Where fName ='" &
Forms!frmName.txtFName & "'"

Signature

Duane Hookom
MS Access MVP

> SUBJECT:  PARAMETERIZED PASS-THROUGH QUERY using textbox
> on form.
[quoted text clipped - 10 lines]
>
> CT
CT - 08 Oct 2004 18:04 GMT
Thank you for the help.  

>-----Original Message-----
>You can use DAO code to change the SQL of a saved query such as a p-t.
[quoted text clipped - 17 lines]
>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.