Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi all, I'm not sure if this is the right forum to post in as my Q may b MSAccess related. I am using an ADO connection to retieve data from a Access database using Excel VBA - this seems to be functioning properl (I am able to get data as required). My problem is modifying my SQL statement - currently I have; Code ------------------- .Open "SELECT [Part No], [Batch Qty] FROM [" & TableName & "] " & _ " WHERE [Part No] = '01801-00408'", cn, , , adCmdText ------------------- The above is just a test to see weather or not it worked (and it does) I want to be able to select the data based on week numbers. The curren [Date] is in format '24/03/2006' - how do I modify this statement? TIA, any ideas appreciated......and again someone here may know (bob?? -- gti_jober ----------------------------------------------------------------------- gti_jobert's Profile: http://www.excelforum.com/member.php...fo&userid=3063 View this thread: http://www.excelforum.com/showthread.php?threadid=52953 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
connect excel form to access table | Excel Discussion (Misc queries) | |||
How do I connect to access 2007 data from excel? | Excel Discussion (Misc queries) | |||
Connect to Access Database On Remote Server | Excel Discussion (Misc queries) | |||
Data Entry Form Connect With Access | Excel Discussion (Misc queries) | |||
connect to access database and run a query in excel VBA | Excel Discussion (Misc queries) |