Selasa, 06 September 2016

Re: [MS_AccessPros] Multiline text box

 

vbCrLf only works inside VBA.


John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)




On Sep 6, 2016, at 6:29 PM, Liz Ravenwood liz_ravenwood@beaerospace.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



Does the constant vbcrlf not work in this case?
 
From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com] 
Sent: Tuesday, September 06, 2016 9:17 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Multiline text box
 


Jim-
 
You're putting this in the Control Source, right?
 
When I go to the Immediate Window and type:
 
?"Absence Database " & " " & Chr$(13) & Chr$(10) & "1) FinalTermsAndTransfersOut-ALL" & " " & Chr$(13) & Chr$(10) & "2) tblPollyDepartments" & " " & Chr$(13) & Chr$(10) & "3) qry_33NewHiresFinal " & " " & Chr$(13) & Chr$(10) & "4) Something else"
 
.. and press Enter, I get:
 
Absence Database  
1) FinalTermsAndTransfersOut-ALL 
2) tblPollyDepartments 
3) qry_33NewHiresFinal  
4) Something else
 
John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)


 

 
On Sep 6, 2016, at 5:06 PM, Jim Wagner luvmymelody@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
 


John,
 
Thank You.  I now am seeing the exact expression with the chr$(13)....... It is not in the multiline format. Is there something I did wrong? It is a text box with rich text set up. 
 
 
Jim Wagner

 

On Tuesday, September 6, 2016 7:52 AM, "John Viescas JohnV@msn.com [MS_Access_Professionals]" <MS_Access_Professionals@yahoogroups.com> wrote:
 
Jim-
 
Don't put brackets around CHR$ - Access will think that's a field or control name.  Try this:
 
="Absence Database " & " " & Chr$(13) & Chr$(10) & "1) FinalTermsAndTransfersOut-ALL" & " " & Chr$(13) & Chr$(10) & "2) tblPollyDepartments" & " " & Chr$(13) & Chr$(10) & "3) qry_33NewHiresFinal " & " " & Chr$(13) & Chr$(10) & "4) 
 
John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access ! 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)
 

 

 
On Sep 6, 2016, at 4:38 PM, luvmymelody@yahoo.com [MS_Access_Professionals] <MS_A! ccess_Professionals@yahoogroups.com> wrote:
 


Hel! lo all,
 
I was wondering how to make a text box with multi lines. I tried to use " & [Chr$](13) & [Chr$](10) & "1), but I am getting #Name? error. 
 
for example I am trying to put on a form a list of objects for reference to the users. 
 
="Absence Database " & " " & [Chr$](13) & [Chr$](10) & "1) FinalTermsAndTransfersOut-ALL" & " " & [Chr$](13) & [Chr$](10) & "2) tblPollyDepartments" & " " & [Chr$](13) & [Chr$](10) & "3) qry_33NewHiresFinal " & " " & [Chr$](13) & [Chr$](10) & "4) 
 
 
Thank You for your help
 
Jim Wagner


 

 

 

 





This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.



__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar