Sign Up |  Live StatsLive Stats    Articles 37,470| Comments 178,713| Members 19,496, Newest harshith| Online 483
Home Contact
 (Forgotten?): 
    10 years of Excellence
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

set field description in VBA

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 0 USD (0%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Description of Singhanneea !! kaurs Gyani Jarnail Singh Sikh Sikhi Sikhism 7 17-Sep-2009 12:28 PM
Create a label that equals a table description Mattantaliss Information Technology 4 28-Jul-2006 08:25 AM
Table Description on Form Jenn Information Technology 1 28-Jul-2006 08:04 AM
Q: What does Sikhism tells about the image or description of God? panja Sikh Sikhi Sikhism 0 09-Jun-2004 21:52 PM


Tags
set, field, description, vba
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:17 AM
Kate's Avatar Kate
Guest
 
Posts: n/a
   
   
set field description in VBA

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi, I'm trying to update a tabledef programatically, using
field descriptions that exist as text in another table. I
can't find anyway to set or reference the field's
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/11046-set-field-description-in-vba.html
description property via VBA. Is this possible?

Thanks,
Kate

*







Do you agree or disagree with the writer above? Why not share your immediate thoughts with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:17 AM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: set field description in VBA

  Donate Today!  
The Description property doesn't actually exist until you add a description.
If you try to refer to the Description property before then, you'll get an
error 3270 (Property Not Found)

You can use the CreateProperty method to add it in the first place.

Here's some untested air-code that should create the description if it
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11046
doesn't exist, or change it if it does.

Sub SetDescription(WhatField As DAO.Field, NewDescription As String)
On Error GoTo Err_SetDescription

Dim prpDesc As DAO.Property

WhatField.Properties("Description") = NewDescription

End_SetDescription:
Exit Sub

Err_SetDescription:
If Err.Number = 3270 Then
Set prpDesc = WhatField.CreateProperties( _
"Description", _
dbText, _
NewDescription)
WhatField.Properties.Append prpDesc
Else
MsgBox "Error " & Err.Number & " (" & _
Err.Description & ") occurred."
End If
Resume End_SetDescription

End Sub


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Kate" wrote in message
news:u$h3Y$viGHA.4716@TK2MSFTNGP03.phx.gbl...
> Hi, I'm trying to update a tabledef programatically, using
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11046
> field descriptions that exist as text in another table. I
> can't find anyway to set or reference the field's
> description property via VBA. Is this possible?
>
> Thanks,
> Kate



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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

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

» Active Discussions
Would an Atheist Pray in...
Today 13:57 PM
63 Replies, 5,315 Views
Can Sikhs worship...
Today 12:52 PM
39 Replies, 415 Views
Nice Punjabi Songs with...
Today 08:50 AM
19 Replies, 531 Views
Sikh Philosophy Network...
Today 04:13 AM
18 Replies, 853 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:39 AM
410 Replies, 9,468 Views
Thought of the Moment!
Today 00:06 AM
116 Replies, 6,138 Views
English Sri Guru Granth Sahib Ji Translations
Yesterday 23:30 PM
6 Replies, 113 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Yesterday 21:25 PM
256 Replies, 6,080 Views
Difference in Bowing...
By Kamala
Yesterday 15:08 PM
11 Replies, 281 Views
What Really Happened on...
Yesterday 12:46 PM
13 Replies, 253 Views
Free Online Gurbani...
Yesterday 03:56 AM
13 Replies, 4,346 Views
English Sri Guru Granth...
Yesterday 03:51 AM
5 Replies, 183 Views
Edward Snowden: the...
Yesterday 03:34 AM
3 Replies, 197 Views
What Is Difference...
18-Jun-2013 09:18 AM
6 Replies, 185 Views
First There is Water by...
By Ishna
18-Jun-2013 05:03 AM
3 Replies, 194 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 14:14 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.34409 seconds with 32 queries