ms-access


I need to replace the value for a running variable


Need help with this code...looking to append four records with a running variable
For sec_ref = 1 To 4
qrysecscr = "v_secscr_" & sec_ref
qrysecscr_val = Eval(qrysecscr)
inssql1 = " Insert into sur_sec_score (Survey_ID, Section_ID, Section_Score) values "
inssql1 = inssql1 & "(""" & v_survey_id & """, " & sec_ref & ", " & qrysecscr_val & ")"
'CurrentDb().Execute inssql1, dbFailOnError
MsgBox inssql1
Next

Related Links

how to autoincrement the default value in texbox
Adding logic to a sub form in Access?
how to display specific records for editing in MS Access
creating more forms after exporting MS Access database
ms access - return records from sql Stored procedure
How to check if .Attachment.Add “filename” is successful before send
Access 2003 Select records with null time
Access: Shell cmd Open MDB
Append Records From Passthrough Query to Local Table
MS-Access library for performing many kinds of DDL operations on a database (to facilitate application version upgrades)?
How to Remove Stop Words from a string using Visual Basic?
Microsoft Access runtime error 2455 when trying to access grandchildren forms from child form
Microsoft Access - stored procedure with cursor
MS Access - Write to Table Immediately After Changing Value in Form
Unbind Access Project from source control
DAO access recordset not updating

Categories

HOME
ms-access
gitlab
onedrive
fft
vmware
cplex
cvs
jira
fingerprint
wamp
dacpac
tomcat6
node-pdfkit
collectd
serverless-framework
after-effects
graphlab
pythonanywhere
oracle-coherence
wkwebview
extjs5
telerik-reporting
firebase-crash-reporting
sparse-matrix
traffic
procdump
nouislider
directx-10
phpfreechat
accelerate-framework
force-layout
overriding
http-digest
az-application-insights
graphenedb
hp-ux
jvm-languages
fakeiteasy
keydown
vao
netcdf4
galleria
hibernate-tools
jquery-validate
python-webbrowser
setter
libusb-win32
spring-mongodb
mediaelement
nested-sets
thrust
simplewebrtc
pickadate
livequery
goose
historian
execute
angular-leaflet-directive
sysinternals
sonarqube5.1.2
sorl-thumbnail
offloading
cctv
applescript-objc
internet-connection
prettify
terminal-services
page-layout
gwt-rpc
padarn
eventlistener
smtp-auth
free-variable
runas
ocx
enter
dotnethighcharts
mercurial-server
pydot
coercion
recent-documents
file-comparison
yslow
sudzc
.nettiers
jquery-ui-droppable
brewmp
photoshop-cs4
ti-dsp
data-driven
putchar
post-build

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App