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 / Macros / March 2007

Tip: Looking for answers? Try searching our database.

running a query via a macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
coalchamber@gmail.com - 22 Mar 2007 11:30 GMT
Hello all,

alright, hopefully this will be easy to explain.

I have a combo box which is base don a query. The query basically
compares 2 table and whatever ones which are in one but not the other
are put in the combo box. Now, the user picks something from the combo
box, and presses that little next arrow down the bottom, writing it to
the table.

Now, i have to create a macro which will only run the query. I know
openquery will run it, but i don't want it visisble at all. I tried
requery but seeing as i have to place this macro in on of the form
events (on current) rather then the combo box, it gets screwed up.

Any suggestions?

Thanks
coalchamber@gmail.com - 22 Mar 2007 11:53 GMT
On Mar 22, 3:30 am, coalcham...@gmail.com wrote:
> Hello all,
>
[quoted text clipped - 14 lines]
>
> Thanks

Or, is there anyway to refresh the combo box?
Steve Schapel - 24 Mar 2007 20:29 GMT
Coalchamber,

If I understand you correctly (which I am not sure of), I think you need
to use a Requery of the combobox.  I am not sure what you mean by
"screwed up".  One option would be to use the Enter event of the combobox.

Signature

Steve Schapel, Microsoft Access MVP

> On Mar 22, 3:30 am, coalcham...@gmail.com wrote:
>> Hello all,
[quoted text clipped - 17 lines]
>
> Or, is there anyway to refresh the combo box?
 
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.