
28-Jul-2006, 08:42 AM
|  | Guest | | | | | | | | | | Re: cbo Lookup Error Try:
rs.FindFirst "[Office_Name] = """ & Me![cbo_Office] & """"
For an explanation, see:
Quotation marks within quotes
at: http://allenbrowne.com/casu-17.htmlReference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14032
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Jeff C" wrote in message Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14032
news:ABE3CD7B-3C43-4E96-B6E1-01EAE862BC2D@microsoft.com...
> What changes do I need to make to the following to allow lookup of office
> names that include apostrophies?
>
> rs.FindFirst "[Office_Name] = '" & Me![cbo_Office] & "'"
>
>
> These kind of syntax errors just drive me NUTS, someday I will understand
> the rules.
>
> Thank you in advance
> --
> Jeff C
> Live Well .. Be Happy In All You Do | 
28-Jul-2006, 08:42 AM
|  | Guest | | | | | | | | | | Re: cbo Lookup Error "Jeff C" wrote in message : Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14032 Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14032
> What changes do I need to make to the following to allow lookup of
> office names that include apostrophies?
>
> rs.FindFirst "[Office_Name] = '" & Me![cbo_Office] & "'"
>
>
> These kind of syntax errors just drive me NUTS, someday I will
> understand the rules.
>
> Thank you in advance
You can do what is often called "doublequoting"
rs.FindFirst "[Office_Name] = """ & Me![cbo_Office] & """"
but - when doing lookups like this, don't you have a primary key field
within the combo you could use?
--
Roy-Vidar | 
28-Jul-2006, 08:42 AM
|  | Guest | | | | | | | | | | Re: cbo Lookup Error Thanks Allen I printed up your tutorial too.
Thanks to you too Roy
--
Jeff C
Live Well .. Be Happy In All You Do
"Allen Browne" wrote:
> Try:
> rs.FindFirst "[Office_Name] = """ & Me![cbo_Office] & """"
>
> For an explanation, see:
> Quotation marks within quotes
> at:
> http://allenbrowne.com/casu-17.html
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia.
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Jeff C" wrote in message Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14032
> news:ABE3CD7B-3C43-4E96-B6E1-01EAE862BC2D@microsoft.com...
> > What changes do I need to make to the following to allow lookup of office
> > names that include apostrophies? Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14032
> >
> > rs.FindFirst "[Office_Name] = '" & Me![cbo_Office] & "'"
> >
> >
> > These kind of syntax errors just drive me NUTS, someday I will understand
> > the rules.
> >
> > Thank you in advance
> > --
> > Jeff C
> > Live Well .. Be Happy In All You Do
>
>
> | 
Support Us! Become a Promoter! | | Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh! | (View-All)
Members who have read this thread : 0
| | There are no names to display. | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Tools | Search | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is On | | | | » Gurbani Jukebox | Listen to Gurbani while surfing SPN! | » Active Discussions | | | | | | | ਨਾਮਾ Today 06:37 AM 2 Replies, 53 Views | | | | | | | | | | | | | | | | | | | | | | | » Books You Should Read... | | | |