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

MS Access Pop-up on table modification
Combining multiple queries in one in Access
Fill table with all month days
Form based on a one-to-many relationship - just show parent records with child actions
Select Max Date by Date Range
MS Access Implementing FULL OUTER JOIN via UNION operator with AGGREGATION
access DLookUp multiple criteria
Combining 3 strings in Access VBA
DoCmd.TransferSpreadsheet triggering Error 3275 “unexpected error from external database driver”
Hyperlink Field with # in File Name
Access 2007: Creating an auto-updating record history
How to get an AfterUpdate procedure to update other fields in the same form
automatic conversion of Text into Decimal number - Access
Add column to table form to show value from a query
How do I set a variable to one of my form's listboxes in vba(access)?
How do I delete items from one table using a join from another in Access?

Categories

HOME
google-play
react-virtualized
jsp-tags
gis
adb
react-redux
google-project-tango
retrofit
angular-ui-bootstrap
wamp
onelogin
append
dacpac
dax
etl
apache-cayenne
alignment
visual-studio-2005
serverless-framework
libtiff
after-effects
openrefine
ef-migrations
reactcsstransitiongroup
flux
django-cms
alpine
mustache.php
cultureinfo
crosstab
opennlp
vlsi
centos6.5
windows-error-reporting
subdomains
bluestacks
iframe-resizer
yadcf
oracle-fusion-middleware
catel
winrt-xaml-toolkit
caret
xmlreader
rotational-matrices
swisscomdev
vapor
document.write
ws-security
firebase-admin
thin
angular2-meteor
babel-core
jedis
datastax-startup
hls.js
elgg
composite-key
sybase-asa
namecoin
android-fonts
rotativa
dstu2-fhir
multi-level
gridview-sorting
rvest
dataview
bluegiga
php-internals
php-parse-error
asp.net5
independentsoft
historian
comobject
libressl
mmc
geonetwork
dd
relocation
asp.net-web-api-odata
ceil
starcluster
dml
hyprlinkr
didselectrowatindexpath
industrial
flexmojos
listings
ruby-datamapper
hungarian-algorithm
comaddin
selected
ohm
zpt
coredump
ecl
pyinotify
remember-me
sudzc
exchange-server-2003
ti-dsp
virtual-functions
.net-1.0
ntvdm.exe

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