ms-access


MS access : how to add 1 row between 2 rows?


I have an access database with these tables:
- sequences: it describes the sequences of a movie : ex: boy kicking ball (1) , boy hitting ball(2), boy speaking(3) etc..
movie: it is composed of sequences above.
ex: 3 - 2 - 1 - 2
My problem is : how can I insert a new sequence because access always inserts it to the end.
ex: I would like to get (I would like to insert sequence 3 between 2 and 1)
3 - 2 - 3 - 1 - 2
and Access will give me
3 - 2 - 1 - 2 - 3 (added to end)
Any clue ?
The order of inserting data in a database is inconsequential, what is important is the order of retrieval which you manipulate by the ORDER BY substatement you provide your SELECT statement with.
So you'll need to identify the field by which you can order things, e.g. a sequence id and then order on that field. like thus
SELECT * FROM movie_sequences ORDER BY movie_sequence_id ASC;

Related Links

Where can I give permission to read MSysObjects in ACCESS 2007? (not 2003)
How to use Controls collection in Access 2003 and VBA
Events in MS Access 2007
MS-ACCESS: displaying the results of a query in a message box
MS Access 2003 - Opening a report without it printing
Create a field name from a recordset
How run an Access 2007 module in VB6?
MS Access 2003 - Auto assigning an Identification Number
Ms access: Autocomplete field with values from another table
MS-Access: hotkey to display a message box
.mdb - Access - database appending # on image file
MS-Access 2007 - 255 character limit for exports and field concatenation
Avoiding MaxLocksPerFile via odbc connection to MS Access
Access MDB: do access MDB files have an upper size limit?
Problem evaluating NULL in an IIF statement (Access)
WM_SETFOCUS Event not fired Microsoft Access 2000

Categories

HOME
debugging
mediawiki
view
iot
vmware
bpmn
webstorm
rsyslog
adb
cvs
setup-deployment
yahoo-oauth
uber-api
qore
paradox
medical
spring-tool-suite
msp430
carthage
try-catch
autoconf
clickonce
microsoft-r
lcd
angular2-aot
opennlp
rst2pdf
applozic
elasticsearch-ruby
windows-server-2000
webkitspeechrecognition
madlib
junit5
binary-data
iframe-resizer
preg-match-all
lxd
openoffice.org
environment-modules
fusionpbx
theano.scan
impersonation
temporary-files
node-gyp
node-sass
slick-3.0
jsch
multipeer-connectivity
celery-task
typescript1.8
togetherjs
media-player
sybase-asa
zendesk-app
topbeat
objective-c-swift-bridge
color-picker
libpng
radtreelist
savon
skobbler-maps
etsy
mongocsharpdriver
player
qpid
essence
revolution-r
xna-4.0
intellij-14
ruby-2.2
wyam
service-accounts
interrupted-exception
javax.mail
jscript.net
relocation
fpml
cctv
client-side-templating
has-many-through
tld
navigationservice
balanced-payments
mylyn
django-nonrel
jquery-mobile-dialog
factory-method
mhtml
trusted
runas
dsn
uiviewanimation-curve
mercurial-server
gnustep
yui-datatable
actionview
modelstate
privilege
noscript
aquaticprime
thread-local-storage
procedural-music
mediarss
msdev

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