Link to home
Start Free TrialLog in
Avatar of MnInShdw
MnInShdwFlag for Japan

asked on

db.Execute result

I'm using the following to insert a record in a table:
sql="INSERT INTO table (Order,Quantity) VALUES ('test',10)
db.execute (sql)

Open in new window


How can I find out the db.execute actually added a new record or not.

If the order field's Index is set to Yes(No Duplicate)
it will fail to insert a new record if Order is duplicated




thanks for any kind of help
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MnInShdw

ASKER

Million thanks