Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi -
I have three questions on the following code: querystring = "SELECT * " & "FROM `" & ThisWorkbook.Path & _ "\MYDATA`.Mytable Mytable " _ & "WHERE Mytable.Dstacctunit =" & "10010" 1) Instead of referencing a Table, can I reference a Query? If yes, does the code need to change to recognize I want to refer to a Query instead of a Table? 2) Do the names of the column Headers (Query or Table) have to be contiguous, without spaces (example: DSTACCTUNIT, instead of DST ACCT UNIT)? 3) Instead of referencing the true column Names, can I reference a variable that would include the column name? If yes, Can I then have the headers with the spaces (DST ACCT UNIT)? Can you give me a tip on how to include the column names in a variable? Thank you!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Access to Excel Question | Excel Discussion (Misc queries) | |||
Excel / Access Question | Excel Programming | |||
Excel vs Access what art the question? | Excel Programming | |||
excel review bar | Excel Discussion (Misc queries) | |||
Excel to Access Question | Excel Programming |