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

Query missing data from select fields for only 2 records
Microsoft Access - Search Query
Like with IIF and date range not returning results
OPening multiple copies of ACCESS app
Access New ID Field YYYYMMNN [duplicate]
Sequential Number Column with YYYYMM
I am trying to get the correct font size for my subform in Access
Start and stop MS Access VBA code on a specific time
Table Joining (ms Access, sql)
Howto write DDL ALTER TABLE Modify statement using string variable for TABLE name
Filter combobox: how to add “NOT filtered” option?
access 2010 form new record pre filled button
Azure SQL authentication with Office 365 Account
Microsoft Access displays both months and years differences
Combine several records with 1 id into 1 record in Access
Using form combo box to change server name of connection string

Categories

HOME
testing
testng
image-processing
spring-jdbc
packages
jgroups
dxl
ip
directx
volttron
row
static-libraries
hapi
dosgi
opentracing
transformation
footer
solaris-10
undefined
alpine
kryo
mps
sox
format-specifiers
semantic-analysis
django-storage
bootstrap-duallistbox
entitlements
greendao
gitignore
libssl
binary-data
stringtemplate
hybridauth
android-nestedscrollview
hot-module-replacement
hockeyapp
bootstrapper
tasker
trim
avro4s
revapi
multipeer-connectivity
hendrix
knockout-components
kbuild
boost-preprocessor
sqldf
chord-diagram
or-tools
pintos
time-and-attendance
jwplayer7
connect-by
qcustomplot
dlna
rhino-servicebus
kendonumerictextbox
cyclomatic-complexity
simple-framework
rgeo
mmc
iiviewdeckcontroller
e10s
npapi
operator-precedence
android-nested-fragment
gulp-less
internet-connection
onactivityresult
contenttype
jquery-layout
dealloc
intentservice
quantlib-swig
commoncrypto
tidy
blending
django-nonrel
gdata-api
spyware
appendto
xfbml
zend-tool
mtj
defensive-programming





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