I'm still a little confused on my delete button. Instead of it deleting the current record, it deletes all the records in the table. Can you review my code and tell me what I need to change? thanks in advance.
lcchoice = ""
lcchoice = MESSAGEBOX("Are you sure you want to delete this record?",4,"Warning"
IF lcchoice = 6 then
SET DELETED ON
USE oms_requests
DELETE FOR request_no = ALLTRIM(thisform.txtrequest_num.Value)
PACK
MESSAGEBOX("Record Deleted",0,"FYI"
GO bottom
ELSE
ENDIF
lcchoice = ""
lcchoice = MESSAGEBOX("Are you sure you want to delete this record?",4,"Warning"
IF lcchoice = 6 then
SET DELETED ON
USE oms_requests
DELETE FOR request_no = ALLTRIM(thisform.txtrequest_num.Value)
PACK
MESSAGEBOX("Record Deleted",0,"FYI"
GO bottom
ELSE
ENDIF