Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RE: Syntax Help for Stored Procedure

Status
Not open for further replies.

allyne

MIS
Joined
Feb 9, 2001
Messages
410
Location
US
Hi everyone,

I have an Access Database that I am Upgrading to SQL 7.0. In the Access Database There is a form that has a drop down box where the user can select a Switch Id. Once Selected the next step is to Select Bid from another drop down box. Once this is done the user then clicks on a button that updates the selected values from the drop down boxes and inserts it into a table. The Syntax used in the Access Database is:

INSERT INTO [tblSwitcId/Bid] ( SID_BID, SwitchId, BridgeText )
SELECT tblMasterInOut.SID_BID, tblNetworkElements.SwitchId, [Forms]![frmBridgeSelection]![cobBid] & "-" & [Forms]![frmBridgeSelection]![cobSwitchID] AS BridgeText
FROM tblMasterInOut, tblNetworkElements
WHERE (((tblMasterInOut.SID_BID)=[Forms]![frmBridgeSelection]![cobBid]) AND ((tblNetworkElements.SwitchId)=[Forms]![frmBridgeSelection]![cobSwitchID]));

The problem is this won't work in a stored procedure. Can someone tell me what the currect syntax is in SQL 7.0.

Thanks for all your help as I'm totally stumped!

Cathy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top