Re: Get Data Type
- From: John Nurick <j.mapSoN.nurick@xxxxxxxxxxxxxx>
- Date: Wed, 22 Mar 2006 07:04:26 +0000
PMFJI,
To the extent that it's not insoluble in the ways already pointed out in
this thread, it sounds like a pattern matching problem - but ISTM the
way to approach might be to start by transposing the columns in the
input file into rows.
This would give a file with one record for each field in the original,
each record consisting of a delimited string containing all the values
in the corresponding field in the original. Each of these strings could
then be tested against a series of regular expressions - each aimed at
_excluding_ a given field type.
On Tue, 21 Mar 2006 11:22:44 GMT, "IanOxon via AccessMonster.com"
<u18965@uwe> wrote:
Hi All,
I'm looking for a way to evaluate a string and return a possible data type in
.NET, Classic VB, or VBScript (I'm not fussed which). For example:
String Passed ADO DataTypeEnum DAO DataTypeEnum
"12/12/2004" adDate dbDate
"True" adBoolean dbBoolean
"G12" adVarChar dbText
Are there are existing functions/methods that handle this?
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
.
- References:
- Get Data Type
- From: IanOxon via AccessMonster.com
- Get Data Type
- Prev by Date: Mailmerge and Word Viewer
- Next by Date: Re: UPDATE TABLE FROM UNBOUND QUERY
- Previous by thread: Re: Get Data Type
- Next by thread: Re: Access module does not continue past the Filter Method
- Index(es):
Relevant Pages
|
|