Jun 24, 2005 #1 JOD59 Technical User Dec 17, 2003 39 US Is there a way to change the caption of a query column using VBA?
Jun 24, 2005 1 #2 Trevil Programmer Jun 19, 2003 459 US How about 'Select flda as Product from tableA ...' Code: Where the vision is often rudely introduced to reality! Upvote 0 Downvote
How about 'Select flda as Product from tableA ...' Code: Where the vision is often rudely introduced to reality!
Jun 24, 2005 Thread starter #3 JOD59 Technical User Dec 17, 2003 39 US Trevil, thanks for your response, but I'm not quite sure what you mean. I'm fairly new to VBA. Could you show me a sample of code? Thanks for any help Upvote 0 Downvote
Trevil, thanks for your response, but I'm not quite sure what you mean. I'm fairly new to VBA. Could you show me a sample of code? Thanks for any help
Jun 24, 2005 #4 Trevil Programmer Jun 19, 2003 459 US The following is what you proibably have: SELECT tbl1.fld1, tbl1.fld2, tbl1.fld3 FROM tbl1 ORDER BY tbl1.fld1; To rename the columns use: SELECT tbl1.fld1 AS Customer, [:fld2] AS City, tbl1.fld3 AS State FROM tbl1 ORDER BY tbl1.fld1; Code: Where the vision is often rudely introduced to reality! Upvote 0 Downvote
The following is what you proibably have: SELECT tbl1.fld1, tbl1.fld2, tbl1.fld3 FROM tbl1 ORDER BY tbl1.fld1; To rename the columns use: SELECT tbl1.fld1 AS Customer, [:fld2] AS City, tbl1.fld3 AS State FROM tbl1 ORDER BY tbl1.fld1; Code: Where the vision is often rudely introduced to reality!
Jun 24, 2005 Thread starter #5 JOD59 Technical User Dec 17, 2003 39 US Thanks Worked like a charm!!! Upvote 0 Downvote