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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete a reord 1

Status
Not open for further replies.

canett

Technical User
Jan 22, 2006
18
BG
I tried to build a code for deleting a record in my subform and i get the run time error 3075 missing ,] or item.Could you help me find the error in the folloiwng :

Private Sub cartons_DblClick(Cancel As Integer)
Dim strDelete As String
strDelete = "DELETE [order details].OrderID, [order details].ProductID FROM [order details] " & _
" WHERE ([order details].OrderID = Parent!OrderID AND [order details]!ProductID= Me!ProductID"
DoCmd.RunSQL strDelete
End Sub
 
i dont see a closing parenthesis in your where clause...

???
 
and this:
Code:
[blue]   Dim strDelete As String
   
   strDelete = "DELETE OrderID " & _
               "FROM [order details] " & _
               "WHERE ([OrderID] = Parent!OrderID AND " & _
                      "[ProductID]= Me!ProductID[purple][b]);[/b][/purple]"
   DoCmd.RunSQL strDelete[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top