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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create new record on nextvale

Status
Not open for further replies.

robmason10

Technical User
Apr 9, 2002
68
GB
Have a field called @date which almost works.....

However it creates all the dates in one string field - is it possible to get the field to create a new record for each nextvalue?
=========================================================
dim thisdate as datetime
dim nextdate as datetime

dim output as string

thisdate = {@DateTimetoDate}+1
nextdate = nextvalue ({@DateTimetoDate})

do while thisdate < {?End date}
output = output + totext(thisdate, &quot;dd/MM/yyyy&quot;) + chr(10)
thisdate = thisdate + 1
loop

formula = output

 
You cannot create any records in Crystal.

I see that you're using a chr(10) (line feed char), rather than a chr(13) (carriage retrun).

Try changing this.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top