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 / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

populate combo box through stored procedure with parameters.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 27 Apr 2005 23:59 GMT
Hi,
I am working on a data access project access 2000.

I have a combo box I want to populate using a stored procedure that accepts
parameters.

combo boxes have row sources but they don't have an input parameter property.
if it did it would be only 2 lines of code.
and since
         comboboxname.rowsource = recordset
does not work it looks like:

I have fill a fill a recordset and then loop through it and  do additem until
entire record set is finished.

is there an easier way to do this?

thanks
Chris
Ofer - 28 Apr 2005 13:28 GMT
You can use a pass through query, call the stored procedure with two
parameters.
change the SQL in your query dinamicaly, and then use that query as the
source to your combo.

> Hi,
> I am working on a data access project access 2000.
[quoted text clipped - 15 lines]
> thanks
> Chris
 
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.