Fordraiders
asked on
Is there a better why to quickly add a new record ?
Access 2010 vba
sql server linked tables
Trying to add a new record...taking a very long time to with code
Is there a better why to quickly add a new record ?
Thanks fordraiders
sql server linked tables
Trying to add a new record...taking a very long time to with code
Set R = CurrentDb.OpenRecordset("dbo_t_nsc_trackcode_trans_time_entry", dbOpenDynaset, dbSeeChanges) ''' CLOCKED HERE FOR 15 SECS 03/06/2018
' Set R = CurrentDb.OpenRecordset("SELECT * FROM [dbo_t_nsc_trackcode_trans_time_entry]", dbOpenDynaset, dbSeeChanges)
R.AddNew
R![NSC_ID_Ref] = Me.NSC_Id
R![InProgress_or_Closed_at] = Now()
R.Update
R.Close
Set R = Nothing
Is there a better why to quickly add a new record ?
Thanks fordraiders
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks all,
The insert statement was 15 secs...faster..
fordraiders
The insert statement was 15 secs...faster..
fordraiders
ASKER
I forgot to add one more field that may be a problem ? getting a value from main form
'R![opened_at] = Forms!nsc_dataentry.txtReO
I cant get the syntax to take
errors below
Open in new window
Thanks !
and error message