Hello arimakid,
Although the syntax for your delete statement will work, a properly formatted delete statement will look like this:
DELETE FROM service WHERE OrderNumber = 123
If you wish to use the Recordset.Delete method you would use a regular Select statement rather than a delete statement:
strSql = "Select * FROM service WHERE OrderNumber=" & edRec
...
Then open the connection as a dynamic cursor with an optimistic lock type.
Then call the Delete method of the recordset. This deletes the record currently pointed to by the cursor, which in this case will be the first (and only) record in your recordset if it is not EOF. The record is immediately deleted. If you use a lock type of Batch Optimistic you can mark a number of records for deletion and then call UpdateBatch to actually delete them all.
However, using the Execute method of the Connection object is the way I would typically delete a record as shown by Chris...
Woody Z
http://www.learntoprogramnow.com