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

Convert Access Sql statement to Goldmine Dbase 1

Status
Not open for further replies.

tekmakesmetwitch

Technical User
Jul 11, 2007
18
US
Can anyone tell me how to convert the following sql string
Format(Now()+30,"mm/dd/yyyy")
into a dbase expression?
 
Hi,

A Google got me
How about this...
Code:
DTOS(Date())
then use SUBSTR to create the mm dd yyyy order that you need.


Skip,
[sub]
[glasses] To be safe on the [red]FOURTH[/red],
Don't take a [red]FIFTH[/red] on the [red]THIRD[/red]
Or you might not come [red]FORTH[/red] on the [red]FIFTH[/red]
[red][highlight blue]FORTH[/highlight][/red][white][highlight red]WITH[/highlight][/white] [tongue][/sub]
 
apparently i am doint something wrong...what i want to do it create a automated process to take a particular date field in my Goldmine and create the following condition...if the date in the named field is older than the current date...then i want to have that date forward 30 days from current date...in dbase. Forgive me as I am a "draw me a picture" type of being!!
 



Then why change the date to text? That destroys the value!

"...if the date in the named field is older than the current date...then i want to have that date forward 30 days from current date..."

Could you please explain what you mean?

Skip,
[sub]
[glasses] To be safe on the [red]FOURTH[/red],
Don't take a [red]FIFTH[/red] on the [red]THIRD[/red]
Or you might not come [red]FORTH[/red] on the [red]FIFTH[/red]
[red][highlight blue]FORTH[/highlight][/red][white][highlight red]WITH[/highlight][/white] [tongue][/sub]
 
Provided your Goldmine table is linked in your access DB, here a simple update query:
UPDATE yourLinkedTable
SET yourDateField = 30 + Date()
WHERE yourDateField < Date()

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
ok..i don't want to change it to text. I will try to explain the best I can...I have a particular field in GoldMine..it is called a follow up date. It tells our sales force when to call this customer. If they do ot get to this customer in time it will just lay dormant until they remember to call...instead of laying dormant, i want the date to autoforward 30 days from the current date that i run the process...i do not want the process to run unless i tell it to though....does this help you understand? Sorry to be so confusing.
 




Look at PHV's solution.

Skip,
[sub]
[glasses] To be safe on the [red]FOURTH[/red],
Don't take a [red]FIFTH[/red] on the [red]THIRD[/red]
Or you might not come [red]FORTH[/red] on the [red]FIFTH[/red]
[red][highlight blue]FORTH[/highlight][/red][white][highlight red]WITH[/highlight][/white] [tongue][/sub]
 




Haw about Forum290?

Skip,
[sub]
[glasses] To be safe on the [red]FOURTH[/red],
Don't take a [red]FIFTH[/red] on the [red]THIRD[/red]
Or you might not come [red]FORTH[/red] on the [red]FIFTH[/red]
[red][highlight blue]FORTH[/highlight][/red][white][highlight red]WITH[/highlight][/white] [tongue][/sub]
 
THX U very much. You have been great help. That is exaclty where i need to be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top