473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Storing Data

Hi All

I am writing an ASP application that deals with the TV tapes and two of the
fields is what I am having issues with

I need to store the duration of the program i.e. DURATION field only to
accept Numerical entries in the form 000:00:00 (min:secs:frames)

I also need to store the TIMECODE field only to accept Numerical entries in
the form 00:00:00:00 (hours:mins: secs:frames)

Does anyone know

1. What datatype should I be using in my Access 2000/ 2003 database.

2. How can I validate this field when allowing users to add the correct
data.

Thanks in advance for your help.

Sep 20 '05 #1
2 1342
JP SIngh wrote:
Hi All

I am writing an ASP application that deals with the TV tapes and two
of the fields is what I am having issues with

I need to store the duration of the program i.e. DURATION field only
to accept Numerical entries in the form 000:00:00 (min:secs:frames)
Duration is defined as a number of time units. It looks like you are trying
to store two separate things: duration and frames. Does "frames" refer to a
number of frames? Or the identity of the frames? In either case, it looks to
me as if two columns are needed, one for duration time, and the other for
duration frames, especially if any calculations need to be done with the
values.
I also need to store the TIMECODE field only to accept Numerical
entries in the form 00:00:00:00 (hours:mins: secs:frames)
Is this a duration? Or an identification of a certain point within the tape?

Does anyone know

1. What datatype should I be using in my Access 2000/ 2003 database.
It depends (see above). In any case, you need to stop confusing the data
storage (no format needed) with the data display/entry (formatting applied).
There is absolutely no need to store a duration in minutes and seconds. A
duration is a number of time units. Since you need to display minutes and
seconds, then the time unit you need to store is seconds. At display-time, a
function can be easily written to convert a number of seconds to a string
containing minutes:seconds.

If you decide that you absolutely need to store the data with the formatting
applied, then the only datatype that will work is Text (varchar if SQL
Server).
2. How can I validate this field when allowing users to add the
correct data.


What type of validation?

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 20 '05 #2
You might want to consider using more than one field...

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...

<<
I need to store the duration of the program i.e. DURATION field only to
accept Numerical entries in the form 000:00:00 (min:secs:frames)...

*** Sent via Developersdex http://www.developersdex.com ***
Sep 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Francisco | last post by:
I have this problem: I have a database with information about games, and users are able to vote for them. Everytime a user votes for a game I store the unique game name into a session variable (an...
1
by: Kay | last post by:
A linked list is storing several names. I want to make a queue if I input a name that is same as the linked list. How to make each node of a linked list storing a queue that are different with each...
7
by: Dave | last post by:
I have a system that basically stores a database within a database (I'm sure lots have you have done this before in some form or another). At the end of the day, I'm storing the actual data...
6
by: bissatch | last post by:
Hi, I am currently writing a news admin system. I would like to add the ability to add images to each article. What I have always done in the past is uploaded (using a form) the image to a...
1
by: VMI | last post by:
Is it possible to store the data in a datatable in the hard disk instead of the memory? By default, when a datatable's being filled, the table (and data) will remain in memory. Would it be possible...
6
by: Kyle Teague | last post by:
What would give better performance, serializing a multidimensional array and storing it in a single entry in a table or storing each element of the array in a separate table and associating the...
6
by: (PeteCresswell) | last post by:
User wants to go this route instead of storing pointers in the DB and the documents outside. Only time I tried it was with only MS Word docs - and that was a loooong time ago - and it seemed to...
20
by: Martin Jørgensen | last post by:
Hi, I'm reading a number of double values from a file. It's a 2D-array: 1 2 3 4 5 6 7 ------------- 1 3.2 2 0 2.1 3 9.3 4
7
by: Mike | last post by:
I have developed an application, for psyc patients.... they type in very personal information in a web form to help them work through problems in their lives. Once they enter the info, I encrypt...
4
by: Falcolas | last post by:
I personally feel that it's a bad idea. I've got to convince managerial types of this. Would some of you mind posting comments for and against the concept of storing data in XML attributes? If...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.