Microsoft
Software
Hardware
Network
Question : db.Execute result
I'm using the following to insert a record in a table:
1: 2: 3:
sql="INSERT INTO table (Order,Quantity) VALUES ('test',10) db.execute (sql)
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
Answer : db.Execute result
Dim lRecs As Long
sql="INSERT INTO table (Order,Quantity) VALUES ('test',10)
With CurrentDb
.execute (sql)
lRecs = .RecordsAffected
End With
If lRecs>0 then ' it happened
mx
Random Solutions
How to upgrade CentOs Kernel to latest version?
Windows 2008 DNS Server Error 5504
Can Silver Thermo Paste Burn The Processor
SQL Server 2008
My computer will not boot. No Grub
Managed PC Boot Agent has taken over my WIndows XP Pro computer
install Microsoft Office 2010 Professional plus edition on Windows XP
Why isn't my external css background image displayed?
DNS not working and AD users can't login. Any DNS experts out there??
Is it possible to jump IP scope with Route Add command?