Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Field name/column name - Access DB
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Field name/column name - Access DB

 Post Reply Post Reply
Author
webpromo View Drop Down
Groupie
Groupie


Joined: 25 February 2002
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote webpromo Quote  Post ReplyReply Direct Link To This Post Topic: Field name/column name - Access DB
    Posted: 26 October 2007 at 2:53pm
Is there a way to display the field name/column names from an Access database using ASP?
Back to Top
shakir View Drop Down
Groupie
Groupie


Joined: 08 November 2007
Location: Saudi Arabia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote shakir Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2007 at 4:30pm
For Each Item in Request.Form
Response.Write Request.Form.Key(Item) & ": " & Response.Write Request.Form.Item(Item) Next
Back to Top
Jono View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 18 September 2006
Location: United Kingdom
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jono Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2007 at 8:19pm
shakir's almost right, but he's given you the code to iterate through variables passed to a web page via the GET or POST method - a useful piece of code, nonetheless.
This web page should provide you with a snipet of code that should help: http://www.w3schools.com/ado/ado_display.asp
As you can see, you have to specify the table you want to display from the database. If you want to get more adventurous, you could combine this with code obtaining a list of table from the acess database, so you just link to the database and it will return all tables, with field names from each table.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.