473,385 Members | 1,478 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.

Access calculated field name?

I've got an asp page that creates fields on the page based on database
information, so I don't know which fields will be there, but I do know the
formula for devising the field names. I'd like to validate them using a
javascript function, but I'm not sure how to access their data. So, for
example, I would like to set a variable to: "form.myfield.value", and then
access the contents of that field using javascript. Can this be done, and if
so, how?

Thanks.

Joe

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Feb 20 '06 #1
2 1595
never mind -- just discovered "eval()"

Joe

"Joe Befumo" <jo*@befumo.com> wrote in message
news:43***********************@news.newsdemon.com. ..
I've got an asp page that creates fields on the page based on database
information, so I don't know which fields will be there, but I do know the
formula for devising the field names. I'd like to validate them using a
javascript function, but I'm not sure how to access their data. So, for
example, I would like to set a variable to: "form.myfield.value", and then
access the contents of that field using javascript. Can this be done, and
if so, how?

Thanks.

Joe

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access


--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Feb 20 '06 #2
Joe Befumo wrote:

[repaired quotation]
"Joe Befumo" [...] wrote [...]:
I've got an asp page that creates fields on the page based on database
information, so I don't know which fields will be there, but I do know
the formula for devising the field names. I'd like to validate them using
a javascript function, but I'm not sure how to access their data. So, for
example, I would like to set a variable to: "form.myfield.value", and
then access the contents of that field using javascript. Can this be
done, and if so, how?


never mind -- just discovered "eval()"


Undiscover it. At least for now.

form.elements[myfield].value

where `myfield' is a number value (0-based index of the form control) or a
string value (name of the form control).

And please do not top-post:

<URL:http://jibbering.com/faq/faq_notes/pots1.html#ps1Post>

You should also consider changing your NetNews provider, for they append
an ad signature to your postings that is not delimited according to best
common practice. Your postings may become subject to "advertising the
same service" cancels because of this.
PointedEars
Feb 20 '06 #3

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

Similar topics

5
by: MX1 | last post by:
I have query2 that sums a set of fields from query1. Works fine. However, when I try to add two of the calculated fields from query2, I get prompted for the label I gave the fields. I just hit...
1
by: Miguelito Bain | last post by:
hi everybody. i'm trying to find out what you can and can't do with/in calculated fields. any help, pointers, and/or advice would be greatly appreciated. i'm a newbie, but i want to learn, and...
15
by: Pres | last post by:
I am not an experienced programmer. I do have a question regarding workday calculations. I have 3 fields. CURDATE, NUMDAYS, CALCDATE After entering the first two fields, normally the current...
1
by: Mike | last post by:
Using Windows XP SP-1 with all security udpates installed MS Access version 10.2627.3501 SP-1 (all service packs to be installed over the weekend) MDAC 2.8 Jet 4.0 SP 8 When the database and...
2
by: hhathome | last post by:
In my report I have a calculated DateDiff Field, I also have a calculated count field. I'm trying to get a total of the DateDiff field and dividing it by the count field and I'm having problems --...
5
by: jillandgordon | last post by:
I hope this group does not mind the most basic questions. I am trying to teach myself Access in two different versions. My company now uses Access 97 but, in the next few months, will be...
7
by: manning_news | last post by:
I've got a report that's not sorting correctly. I build a SQL statement and assign it to the recordsource in the Open event, sorting the data the way the user chooses. The user can choose up to 3...
4
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database...
13
by: Ulv | last post by:
I have a table (TblItems) with fields Lenght, Width and Height as decimalfields. I also have the fields Desc, a text field. In a form I have created this line of code after updating: Desc =...
1
MMcCarthy
by: MMcCarthy | last post by:
Access has a number of built-in functions which can be generally used in queries or VBA code. Some of the more common ones are: Note: anything in square brackets is optional Date Functions ...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.