Re: Need help with query linked to form.
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Fri, 11 Jul 2008 00:29:35 +0800
Format() is guaranteed to create a Text field.
CVDate() might work (or even CDate() if there are no nulls.)
You generally do need to parse the dates so Access knows how to interpret them.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Dan" <Dan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:94F3C121-A369-45B7-BC98-B3D2DFCD9B0C@xxxxxxxxxxxxxxxx
I am doing a link table than doing a make table query to create the table
that I am querying off of for my form. So I could try to parse them out and
than re-parse them back together but was hoping there was an easier way with
fewer steps. I did try in my query to use the Format(date, yyyy-mm-dd") but
it didn't seem to make a differnce it still looked at it as a text line. I
also tried to just input Short Date under the qeury format and that didn't
work either. I have never used the CVDate() function though. What would you
suggest?
"Allen Browne" wrote:
How are you, 'pulling the table'?
Is it linked or imported?
If imported, do you use a Make Table query? An Append query? Or
TransferDatabase? Or ...?
The data type is the problem: Access is not making sense of applying the
date/time parameter to the Text field.
If you can't import it propertly, it may be possible to use a query to
generate a date/time field, using CVDate(), or Left(), Mid(), and Right() to
parse the values and DateSerial() to make a true date. Getting the data type
right in the table would be preferable though.
.
- References:
- Re: Need help with query linked to form.
- From: Allen Browne
- Re: Need help with query linked to form.
- From: Allen Browne
- Re: Need help with query linked to form.
- From: Dan
- Re: Need help with query linked to form.
- From: Allen Browne
- Re: Need help with query linked to form.
- From: Dan
- Re: Need help with query linked to form.
- From: Allen Browne
- Re: Need help with query linked to form.
- From: Dan
- Re: Need help with query linked to form.
- Prev by Date: Re: Delete query
- Next by Date: Re: Delete query
- Previous by thread: Re: Need help with query linked to form.
- Next by thread: Re: Conditional IIF question/null value
- Index(es):
Relevant Pages
|