User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 426,465 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,258 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser: Programming Forums
Views: 1201 | Replies: 0
Reply
Join Date: Jun 2006
Posts: 20
Reputation: brale is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
brale brale is offline Offline
Newbie Poster

Help Need help in MS ACCESS VBA

  #1  
Aug 8th, 2007
I have stored procedure in MS SQL and I want to deliver value from form
(value of textbox) in MS ACCESS.

CREATE PROCEDURE sp_DeleteOwing
@OwingID int
AS
INSERT INTO Arhive
SELECT MemberID, ArticalID, OwingDate, GETDATE()
FROM Owings
WHERE OwingsID = @OwingID
DELETE Owings
WHERE OwingsID = @OwingID
GO

I tryed whith this code in VBA but it doesn't works:

DoCmd.RunSQL("EXEC sp_DeleteOwing FORMS!DeleteOwing.TEXT0")

Can someone tell me how I can do it on some other way?
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS Access and FileMaker Pro Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 3:47 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC