Dear All,

I have a table field which type is date.
How can I insert an empty date to that table field by using insert ... into
sql statement? I don't want to set control source bound to that input field.
Many thanks.

Regards,
Wandy Tang

Re: empty date insert into table by Fred

Fred
Mon Jan 26 22:24:42 CST 2004

To represent an empty date field in VFP, use {} as the value:

INSERT INTO yourtable (datefield) VALUES ({})

Fred
Microsoft Visual FoxPro MVP


"Wandy Tang" <anonymous@discussions.microsoft.com.invalid> wrote in message
news:egL0tyI5DHA.1672@TK2MSFTNGP12.phx.gbl...
> Dear All,
>
> I have a table field which type is date.
> How can I insert an empty date to that table field by using insert ...
into
> sql statement? I don't want to set control source bound to that input
field.
> Many thanks.
>
> Regards,
> Wandy Tang
>
>



Re: empty date insert into table by Cindy

Cindy
Tue Jan 27 09:44:29 CST 2004

In news: egL0tyI5DHA.1672@TK2MSFTNGP12.phx.gbl,
Wandy Tang <anonymous@discussions.microsoft.com.invalid> wrote:
> How can I insert an empty date to that table field by using insert
> ... into sql statement?

Hi Wandy,

Fred pointed out that an empty date is written in text as {}. Sometime you
may need to write an empty datetime value - you can use {/:} .

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden@mvps.org www.cindywinegarden.com