ASKER
ASKER
? Format(#12:10:30 AM#, "hh:nn:ss")
00:10:30
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
You could either use a long integer and store the # of seconds between the Scene Start and the Scene End. You could also use a long integer to store the Start and End times.
I'm assuming you are going something like clicking a "Movie Start" button when you start the movie, and then have buttons for Start Scene and End Scene.
Step #1. When you click Movie Start, I would set the value of dtMovieStart = Now()
Step #2. Then, when you click SceneStart I would:
a. Set the value of a new variable dtSceneStart = Now()
b. Compute the number of seconds between dtMovieStart and dtSceneStart using the DateDiff function
c. Store that value in a new recordd as either a long integer (seconds): dateDiff("s", dtMovieStart, dtSceneStart),
or as a single or double precision number: dateDiff("s", dtMovieStart, dtSceneStart)/(24*60*60)
Step #3. Then when you click SceneEnd, I would:
a. Set the value of a new variable dtSceneEnd = Now()
b. Store the number of second between the movie start and Scene End as scene end
c. Compute the duration of the scene: DateDiff("s", dtSceneStart, dtSceneEnd) and store that value. I'm not sure I would store this, as it is easily computed on the fly.
d. Set the new value of SceneStart as the SceneEnd value go back to Step #2
When you create the new record for the Scene in step 2, you could display this in a subform to allow you to enter the Scene description and any other Scene level data you want to store.