|
-
vb and access using SHAPE command
i'm trying to use this shapy statement in my vb6 program which uses access, i don't know if i'm doing it right but when i try to execute the recordset with this shape statement it seems like it doesn't know what a shape statement is. it keeps telling me that a sql statemtn should start with select, delete, update.
how do i use a shape statement in vb with access, and how do i pass a parameter to the parent from a text box
here is my shape statement and the code i have
myShape = " SHAPE {select * from tblCustomer where intTicketNum=?} AS cmdJobs APPEND (( SHAPE {select * from tblVisit order by intVisitNum Desc} AS cmdJobVisit APPEND ({SELECT * FROM `tblJobOrder`} AS cmdJobOrder RELATE 'visitID' TO 'visitID') AS cmdJobOrder) AS cmdJobVisit RELATE 'intTicketNum' TO 'intTicketNumb') AS cmdJobVisit"
With myCmd
.CommandText = myShape
.Parameters.Append .CreateParameter("o", adVarChar, adParamInput, 10, txtTicketNum.Text)
.CommandType = adCmdText
Set .ActiveConnection = connShape
Set rs = .Execute
End With
Similar Threads
-
By Mike Mitchell in forum .NET
Replies: 60
Last Post: 09-13-2002, 05:41 PM
-
By Thomas Eyde in forum .NET
Replies: 290
Last Post: 12-22-2001, 02:13 PM
-
By David Jones in forum Database
Replies: 0
Last Post: 08-31-2001, 12:22 PM
-
By Todd B - Agendum Software in forum vb.announcements
Replies: 0
Last Post: 12-20-2000, 12:22 PM
-
By Greg Rothlander in forum VB Classic
Replies: 4
Last Post: 12-13-2000, 12:11 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks