Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Re: Learning a ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 9 Topic 30222 of 30910
Post > Topic >>

Re: Learning a Field's Properties Using SQL

by Tom van Stiphout <no.spam.tom7744@[EMAIL PROTECTED] > May 10, 2008 at 08:02 PM

On Sat, 10 May 2008 19:48:52 -0700 (PDT), stevew <mktg@[EMAIL PROTECTED]
>
wrote:

A table (better: tabledef) has a fields collection, and each field has
a Properties collection, and one of the properties is Size.
?Currentdb.Tabledefs("SomeTable").Fields("SomeField").Properties("Size")
-> 80

-Tom.


>I'm using SQL within Visual Basic in conjunction with Access
>databases. Say I am about to insert a record with a long string for a
>particlar field. It would be useful to prevent errors to first
>interrogate the DB to learn the maximum permissible length of that
>field, and only then proceed to write the record. I believe I've seen
>that done   -- i.e., get Access field properties -- but don't know the
>SQL syntax. Can anyone give me a sample?
>
>Thank you in advance.
>Steve
 




 9 Posts in Topic:
Learning a Field's Properties Using SQL
stevew <mktg@[EMAIL PR  2008-05-10 19:48:52 
Re: Learning a Field's Properties Using SQL
Tom van Stiphout <no.s  2008-05-10 20:02:46 
Re: Learning a Field's Properties Using SQL
stevew <mktg@[EMAIL PR  2008-05-11 07:16:40 
Re: Learning a Field's Properties Using SQL
lyle fairfield <lyle.f  2008-05-11 07:44:52 
Re: Learning a Field's Properties Using SQL
rkc <rkc@[EMAIL PROTEC  2008-05-11 11:27:41 
Re: Learning a Field's Properties Using SQL
lyle fairfield <lyle.f  2008-05-11 09:55:49 
Re: Learning a Field's Properties Using SQL
rkc <rkc@[EMAIL PROTEC  2008-05-11 14:06:37 
Re: Learning a Field's Properties Using SQL
"Larry Linson"   2008-05-11 21:56:19 
Re: Learning a Field's Properties Using SQL
stevew <mktg@[EMAIL PR  2008-05-11 12:53:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 20:47:26 CDT 2008.