Run MySQL stored procedure from VBA in Access

This is a discussion on Run MySQL stored procedure from VBA in Access within the MySQL Database forums, part of the Database Forums category; In MySQL I have a stored procedure which uses one integer parameter - stored_proc(n). In Access I have a form ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008
Gary
 
Posts: n/a
Default Run MySQL stored procedure from VBA in Access


In MySQL I have a stored procedure which uses one integer parameter -
stored_proc(n).
In Access I have a form which sets the parameter "n", either in a variable
named varN, or a textbox named txtN..
In Access VBA I can compose the concatenated query string as "call
stored_proc(" & varN & ");"
..... BUT I can't get the weird syntax of Access VBA to deliver it to MySQL.

An alternate solution attempted is an Access pass-through query - "call
stored_proc([varN]);" - and run it as an event from a command button on the
Acess form
..... BUT it doesn't pick up the variable parameter.


Any hints would be greatly appreciated, especially those which work and
don't twist up my poor convoluted VBA brain too much. I've spent a few hours
searching web sites but haven't found this combination.


Gary


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:45 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0