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 / Modules / DAO / VBA / March 2007

Tip: Looking for answers? Try searching our database.

Is there a VB Parameter Function?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AndrewB - 07 Mar 2007 21:06 GMT
Hi,

Below is a short VB function that will delete the query named "TEST 1" from
my database window and pop up a message box saying "Complete!" when done.  

I need a paramater VB function like this that can prompt me in a pop-up box
for the query name I wish to delete (in case I wish to delte a different
query or table without creating multiple functions like this for each
database object).  Can anyone help?

Function TEST()
On Error GoTo TEST_Err

   DoCmd.DeleteObject acQuery, "TEST 1"
   MsgBox "Complete!", vbInformation, ""
   Exit Function

TEST_Exit:
   Exit Function

TEST_Err:
   MsgBox Error$
   Resume TEST_Exit

End Function
Signature

AndrewB.

SteveS - 08 Mar 2007 00:07 GMT
Check out this page at  "The Access Web ".

You should be able to modify it to do what you want:

http://www.mvps.org/access/modules/mdl0014.htm

HTH
Signature

Steve S
--------------------------------
"Veni, Vidi, Velcro"
(I came; I saw; I stuck around.)

> Hi,
>
[quoted text clipped - 21 lines]
>
> End Function
 
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.