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
odds of drawing certain cards in a regular deck of playing cards.
Colours on my websites seem to be different
AVG Removal
Group by year AND date.
ISAPI Filter 'C:\Windows\Microsoft.NET\
Framework\
v4.0.30319
\aspnet_fi
lter.dll' could not be loaded due to a configuration problem
Workbook Optimization utilities: FastExcel or others
Tilt phone does not synch all folders with Exchange
APC Smart-up 1500 XLM
How do i plan our network between main office & site office?
Can you subnet 1 public address or only a Class A, B or C network?