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!

Change Field selected based on user input

Status
Not open for further replies.

PamCF

Technical User
Jan 14, 2004
10
0
0
US
I have a file with one record for each month and 31 fields representing each day. I want to display a field based on the user selecting a day. How do I change the field name in the query based on the day inputted in a form?
[LOG_READING_21] represents Day 21. A nested IF is too long. Or how do I change the SQL statement and update the query?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top