AOB
Registered User.
- Local time
- Today, 20:01
- Joined
- Sep 26, 2012
- Messages
- 637
Hi guys,
I have a table with an indexed date field (duplicates not allowed). The field is formatted to "mmmm yyyy"; i.e., month only. The idea being that there can only be one record per month.
Now I want to be able to pull data from this table using an SQL string constructed in Excel - but having trouble putting the SQL together such that it returns records as expected.
Can someone help me please?
I've tried :
SELECT [SpecificField] FROM [SpecificTable] WHERE [Month]=#September 2012#
SELECT [SpecificField] FROM [SpecificTable] WHERE [Month]=#2012-09#
SELECT [SpecificField] FROM [SpecificTable] WHERE [Month]=#2012-09-01#
...all fruitless!
Any advice?? Thanks in advance!!
AOB
I have a table with an indexed date field (duplicates not allowed). The field is formatted to "mmmm yyyy"; i.e., month only. The idea being that there can only be one record per month.
Now I want to be able to pull data from this table using an SQL string constructed in Excel - but having trouble putting the SQL together such that it returns records as expected.
Can someone help me please?
I've tried :
SELECT [SpecificField] FROM [SpecificTable] WHERE [Month]=#September 2012#
SELECT [SpecificField] FROM [SpecificTable] WHERE [Month]=#2012-09#
SELECT [SpecificField] FROM [SpecificTable] WHERE [Month]=#2012-09-01#
...all fruitless!
Any advice?? Thanks in advance!!
AOB