Hi,
Got a bit of a strange one here. When I use docmd.execute I get a different result to when I put the exact same sql into a query:
SELECT Count([moduleID]) as [noRecords] FROM [Module] WHERE (
Got a bit of a strange one here. When I use docmd.execute I get a different result to when I put the exact same sql into a query:
SELECT Count([moduleID]) as [noRecords] FROM [Module] WHERE (
Code:
like "03*");
When run in a query I get returned the number of module records where code begins with 03, but when run through docmd I get zero. I also use the same where expression in filters and it works fine. If I change the where expression so that it is a like but on a different field then exactly the same happens.
Does anyone have any ideas? I've had a search for similar problems, but turned up nothing!
tia,
Mike