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!

database calculate button

Status
Not open for further replies.

QuintonV

Technical User
Jul 3, 2001
37
ZA
Hi ive got a for that searches a access databse using ado
anyways on the for ive created a calculate button that calculates several database fields like forinstance
if gender = male then salalry = somegivenvalue now when the statement actualy compiles it doesnt set that database field to what I want it , it doesnt change the value of the field value1 which is a dbedit and the calculate buttons programing is a onclick event. what statements do I have to use for this to work does the gender thing have to be a string and how do I specify this string? as youve noticed im new to delphi

Thanx

Quinton
 
Sorry if that was written very confusingly. I also need to knowe what would be the best way to create a calculate buttin for certain fields with IF and THEN statements and putting the results into fields on the form and then saving it to my database.

Thanx

Quinton
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top