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

Using function from form in Access SQL statement?
How to update an access field w/the date everytime a change is made to its row?
Is Access's AutoNumber (Increment) guaranteed to increment?
VBA Code to Count all Columns that are numeric in ListBox containing SQL Query Results
How to requery a subform from another form?
Is it possible to create a recursive query in Access?
MS Access 2000 Report needs to be PDF format with URL hyperlinks
Deploying Access as a client-server application
Resize form based on if subform visible
MS Access search for record by textbox instead of dropdown
Uniqueness Constraints in MS Access
Application Icon path in MS Access
Microsoft access is a mere file or data-base server
Is ACE/Jet's IN operator or CHECK constraint 'broken'?
Form.CurrentRecord=1 and Form.RecordSet.Absoluteposition=-1
email using Access and VBA without MAPI

Categories

HOME
cakephp
blogger
urbancode
isabelle
tizen
pycharm
cakephp-2.5
dxl
disassembler
flyway4
azure-media-services
constraint-programming
qore
offline
size
messages
circuit
serverless-framework
telephony
progressive-web-apps
google-static-maps
evopdf
nodatime
autocad-plugin
sylius
tapestry
core-text
pass-by-reference
tdd
web-api-testing
maquette
typo3-6.2.x
buck
windows-server-2000
subdomains
javascriptcore
iframe-resizer
yadcf
contact-form
noraui
asset-pipeline
catalog
android-ble
http-digest
jquery-bootgrid
unspecified
sqlite2
temporary-files
preconditions
turbogears
checkboxlist
thin
babel-core
chain-builder
filepicker
qsslsocket
worksheet
clean-architecture
ionicons
typed-lambda-calculus
migradoc
yt-project
spring-android
log4c
database-optimization
login-control
xml-attribute
plottable.js
lua-5.1
pagedlist
pagerank
execute
wordml
embedded-code
composite
dundas
offloading
oxwall
camanjs
codeigniter-routing
navigationservice
elliptic-curve
yorick
expected-exception
picturefill
didselectrowatindexpath
resty-gwt
pyhdf
page-layout
c18
quantlib-swig
ms-project-server-2010
spring-io
dice
hgsubversion
adk
mod-auth
horizontal-accordion
invite
audio-capture
iweb
exchange-server-2003
adrotator
ctp4
swing-app-framework
mediarss

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