Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Append For" function does not work

Status
Not open for further replies.

bebbo

Programmer
Dec 5, 2000
621
GB
Postr is a table with a date field called date. It also has a numeric field called posid. If I use the following code notting is appended:

append from postr for date = ctod("20/12/2002")

However if I use the code below data is appended. Can I not use the code with a date field.

append from postr for posid = 1

I trying to do the following:

append from postr for posid = nTMP and date < ctod(dDATE)
 
Sorry it not append for it append from .... For .....
 
What is your date setting? Make sure that when you use CTOD() it translates to what you are expecting, that it is the same format as what you are comparing with. If I do:

?ctod(&quot;20/12/2002&quot;)

I get ' / / '


Dave S.
 
Hi

APPEND FROM postr FOR DTOS(date) = &quot;20021220&quot;

** &quot;YYYYMMDD&quot; within quotes

SelectDate = date()

APPEND FROM postr FOR DTOS(FieldDate) = DTOS(DATE())

:)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
append from postr for date = {20/12/2002}

or as I would use it:
append from postr for date = {12/20/2002}

squiggly brackets denote dates... does anyone know what they are really called?

Brian
 
Baltman,

{} <--CURLY BRACES


bebbo,

append from postr for date = {^2002/12/20}

...this adheres to the strict date format in VFP Slighthaze = NULL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top