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

Syntax Problem

Status
Not open for further replies.

Domino2

Technical User
Jun 8, 2008
475
GB
Can someone tell me why the top (first) line of syntax works from a list, but the second line from a label does not work.

Works
MySql = MySql & " AND PROGRESS.Update = #" & Format([Forms]![TabbedForm]![DULIST], "yyyy-mm-dd") & "#"

Does not work
MySql = MySql & " AND PROGRESS.Update = #" & Format([Forms]![TabbedForm]![LBL5].[Caption], "yyyy-mm-dd") & "#
 
Ooops, Egg on my face. I had formatted the output twice, first when clicking on the list to put into label, then formatting it again in my query. Thank God it's Friday
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top