Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2008

Tip: Looking for answers? Try searching our database.

Listbox Rowsource

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shannon - 29 May 2008 01:56 GMT
Hi All,

I have the following line of code that will not work and I can't for the
life of me work out why.

Forms!searchform!List12.RowSource = "SELECT MemberData.Surname,
MemberData.FirstName, MemberData.Code FROM MemberData WHERE
(((MemberData.Surname) Like " & Forms.searchform.Surname & " * ));"

I'm sure it is staring me in the face but he brain isn't working today.

Any assistance would be greatly apprciated.
ruralguy - 29 May 2008 02:37 GMT
Strings need to be enclosed within quotes.

WHERE MemberData.Surname Like '" & Forms.searchform.Surname & "'* ;"

>Hi All,
>
[quoted text clipped - 8 lines]
>
>Any assistance would be greatly apprciated.

Signature

RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Shannon - 29 May 2008 02:53 GMT
Thanks.

> Strings need to be enclosed within quotes.
>
[quoted text clipped - 12 lines]
> >
> >Any assistance would be greatly apprciated.
ruralguy - 29 May 2008 14:39 GMT
You're welcome.

>Thanks.
>
[quoted text clipped - 3 lines]
>> >
>> >Any assistance would be greatly apprciated.

Signature

RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.