Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 05-09-2005, 09:02 PM   #1 (permalink)
Registered User
 
clark's Avatar
 
Join Date: Nov 2003
Location: gt. yarmouth, east anglia, UK
Posts: 10
OS: XP pro


Javascript & M$Access

HI,

I've been trying to figure out how to do something all night. Can someone please help?

Created a dynamic HTML page of a table (called 'systems') from an Access db. Two of the fields in this table are called 'system' and 'price'. In the page there is a combobox which was created in Access. The combos ListBoundField is 'price', but I have set its ListDisplayField to 'systems'. Therefore, in the webpage itself, the user will click the combobox to choose a system and its price will be used to add information to the shopping cart.

I'm trying to keep this question short so basically what I wish to do is display in another textbox the text which is displayed in the combobox. Unfortunately its value is 'price' and so that's what I keep getting displayed. Im using javascript and I want to keep with that. Did any of that make sense to anyone?

Last edited by clark : 05-09-2005 at 09:20 PM. Reason: make more sense
clark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-12-2005, 06:04 AM   #2 (permalink)
Registered User
 
Join Date: May 2005
Posts: 9
OS: XP


No didnt really make that much sense, but if the value is "price" then obviously thats what is going to be displayed as thats the set value
jackson17 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-13-2005, 05:57 PM   #3 (permalink)
Registered User
 
clark's Avatar
 
Join Date: Nov 2003
Location: gt. yarmouth, east anglia, UK
Posts: 10
OS: XP pro


In M$Access the user can set a fields value to one field in a table but set it to display a different field in the same table. Therefore, when displaying the data in a web page or on a form, a field can hold the value from the "price" field but display another field from the same table, for example "system".

example:

textbox2.value = textbox1.value

textbox1 may display "notebook 2.6ghz" whilst textbox2 will display £650.

Does anybody know how to display not the value of textbox1 but the text which is displayed in it?

thanks

Last edited by clark : 05-13-2005 at 06:27 PM.
clark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 04:25 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82