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

EVALUATE THE CONTENTS OF DATABASE FIELDS & THEN WRITE STATEMENTS 1

Status
Not open for further replies.

TNN

Programmer
Sep 13, 2000
417
US
Need help with a starting point.

I have numerous records in a databse table that I must evaluate each field in a record of approx 50 fields and then write an appropriate vb statement. 40 of the fields contain either Y for yes or N for no. Depending on the field I must then adjust or modify a calculation to include or exclude certain calculable items. How do I bring forward each field, evaluate it, and write a statement.

Select Case won't work because I will have more than one matching case to write statements for. Each field evaluation may or may not require a vb statement to adjust calculations.

Any suggestions including the use of SQL are appreciated.

TNN, Tom
TNPAYROLL@AOL.COM




TOM
 
I still don't have enough info. here, but you could code a cursor to do this. After you fetch each row, you can perform your IF statements, do your calculations, then invoke the appropraite updating actions.

Tom Davis
tdavis@sark.com
 
Thank You Tom Davis (TomSark),
Tom, would you use SQL only to fetch the recordset and then use vb code to evaluate and write statements.? Then SQL for any updates?
TNN, Tom
TNPAYROLL@AOL.COM

TOM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top