Using a Form to Enter Query Parameters - Microsoft Community
Office / Access / Windows 10 / Office 2016
hello
i having issue query , cant figure out wrong.
basically, have form {frmalpha} following fields [start date] [end date] [city]. both dates "short date format." [city] combobox.
i have query gets criteria {frmalpha}. example, have [forms]![frmalpha]![city] in criteria. in query itself, correctly labeled parameters "date w/ time" , "short text".
however, not getting results when run query. strangley enough, when remove [city] criteria query, works.
any thoughts?
sql below:
parameters [forms]![frmalpha]![city] text ( 255 ), [forms]![frmalpha]![txtstartdate] datetime, [forms]![frmalpha]![txtenddate] datetime;
select [tableone].[idnum], [tableone].[ recordeddate], [tabletwo].[city]
from [tableone] inner join [tabletwo] on [tableone].[ idnum] = [tabletwo].[ idnum]
where ((([tableone].[ recordeddate])>=[forms]![frmalpha]![txtstartdate] , ([tableone].[recordeddate])<=[forms]![frmalpha]![txtenddate]) , (([tabletwo].[ city])=[forms]![frmalpha]![txtcity]));
Office / Access / Windows 10 / Office 2016
Comments
Post a Comment