Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - show field description
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

show field description

 Post Reply Post Reply
Author
regevli View Drop Down
Newbie
Newbie
Avatar

Joined: 29 October 2003
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote regevli Quote  Post ReplyReply Direct Link To This Post Topic: show field description
    Posted: 31 October 2003 at 6:33am

hi

is there an option to view the description of a field ?

im using access as my db.

thanks

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2003 at 10:51am

there is no provisions in ADO (what asp uses to talk to DB) to get that from the table

Contribute to the working anarchy we fondly call the Internet
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2003 at 12:43pm

Not in ADO but in ADOX


<% 
    Set c = Server.CreateObject("ADOX.Catalog")
    c.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\db1.mdb"
    d = c.Tables("table1").Columns("Field1").Properties("Description ").Value
    Response.Write "Description = " & d  
    Set c = nothing
%>

You can of course loop through every field to get them all.



Edited by michael
Back to Top
amirahmed View Drop Down
Newbie
Newbie


Joined: 08 December 2003
Location: Bangladesh
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote amirahmed Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2003 at 5:21pm

correction.. the code should be:

<% 
    Set c = Server.CreateObject("ADOX.Catalog")
    c.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\db1.mdb"
    d = c.Tables("table1").Columns("Field1").Properties("Description ").Value
    Response.Write "Description= " & d  
    Set c = nothing
%>

the space after description will stop it from working...

there is something wrong with this forums text box, it adds a space to the end of Description.. real weird.. sorry guys just remember to remove it after you copy the code.

 

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2003 at 11:13pm
those spaces are made by the function that cuts long strings on the forum to prevent the layout from being broken or by one of the thousands of security checks a post has to go thru before being posted.

<edit> or maybe that's borg playing with our minds


Edited by fernan82
FeRnAN
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 11 December 2003 at 7:32pm
damn security
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.