Re: Dlookup and update not working correctly
- From: "jbiggs via AccessMonster.com" <u33089@uwe>
- Date: Wed, 11 Apr 2007 20:03:00 GMT
Rick,
It seems to be working, thanks so much for all your help. Do you have any
resources you would recommend for figuring out this kind of syntax?
Thanks again,
Justin
Rick Brandt wrote:
I made some changes and am not using the Combobox anymore. Code[quoted text clipped - 3 lines]
looks like:
Where RepNum is an int and Salesperson is a number field. todaysdate
is formatted like mm/dd/yyyy.
The way you've written that it ois going to assume tha RepNum is a field in
the Report's query. You need to put the variable outside the quotes. Also,
the word "And" needs to be inside the quotes.
stLinkCriteria = "[Salesperson] = " & RepNum & " And [todaysdate] = date"
Now... what is "date" above and what is "[todaysdate]"? If you mean the VBA
function Date() then that will always be equal to "todays date". If
"[todaysdate]" contains what its name implies then that would seem to be an
unnecessary thing to have in there.
If you are using "date" for anything else then change that. It is a
reserved word and will be confused with the VBA function.
--
Message posted via http://www.accessmonster.com
.
- Follow-Ups:
- Re: Dlookup and update not working correctly
- From: Rick Brandt
- Re: Dlookup and update not working correctly
- References:
- Dlookup and update not working correctly
- From: jbiggs via AccessMonster.com
- Re: Dlookup and update not working correctly
- From: jbiggs via AccessMonster.com
- Re: Dlookup and update not working correctly
- From: Rick Brandt
- Re: Dlookup and update not working correctly
- From: jbiggs via AccessMonster.com
- Re: Dlookup and update not working correctly
- From: Rick Brandt
- Re: Dlookup and update not working correctly
- From: jbiggs via AccessMonster.com
- Re: Dlookup and update not working correctly
- From: Rick Brandt
- Dlookup and update not working correctly
- Prev by Date: Re: Parsing Text (Instr)
- Next by Date: Re: Code assistance
- Previous by thread: Re: Dlookup and update not working correctly
- Next by thread: Re: Dlookup and update not working correctly
- Index(es):
Relevant Pages
|