Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 12th, 2006, 03:45 AM
MLH
Guest
 
Posts: n/a
Default Can I scan an open table for CRLF's with Edit/Find or CTRL-F?

And if I cannot, what is the best way to look for occurrences of CRLF
pairs in a text field? Of course, I'm talking about Chr$(13) and
Chr$(10).
  #2  
Old March 14th, 2006, 08:55 AM
HS Hartkamp
Guest
 
Posts: n/a
Default Re: Can I scan an open table for CRLF's with Edit/Find or CTRL-F?


Make a bit of VBA-code, and use the build-in constant vbCrLf .

If you need to do it more often, you can create a macro that calls the
routine (and remember to write it as a function then)


Bas Hartkamp.




"MLH" <CRCI@NorthState.net> schreef in bericht
news:9a5712dmjqjm9g14go0qhat1laiq7mhuka@4ax.com...[color=blue]
> And if I cannot, what is the best way to look for occurrences of CRLF
> pairs in a text field? Of course, I'm talking about Chr$(13) and
> Chr$(10).[/color]


  #3  
Old March 17th, 2006, 04:25 AM
MLH
Guest
 
Posts: n/a
Default Re: Can I scan an open table for CRLF's with Edit/Find or CTRL-F?

Thanks Bas.

I found this would work:
SELECT tblVehicleJobs.VehicleJobID, tblVehicleJobs.VehicleMake,
InStr(4,[VehicleMake],Chr$(13) & Chr$(10),1) AS CRLFposn FROM
tblVehicleJobs;

But this would not:
SELECT tblVehicleJobs.VehicleJobID, tblVehicleJobs.VehicleMake,
InStr(4,[VehicleMake],vbCRLF,1) AS CRLFposn FROM tblVehicleJobs;

Was hoping that with an open table, I could tab to a particular field,
press CTRL-F and put some magic into the criteria field & PRESTO!
But I see that ain't gonna happen.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


On Tue, 14 Mar 2006 09:42:33 +0100, "HS Hartkamp"
<hartkamp.NOSPAAM@wanadoo.nl> wrote:
[color=blue]
>
>Make a bit of VBA-code, and use the build-in constant vbCrLf .
>
>If you need to do it more often, you can create a macro that calls the
>routine (and remember to write it as a function then)
>
>
>Bas Hartkamp.
>
>
>
>
>"MLH" <CRCI@NorthState.net> schreef in bericht
>news:9a5712dmjqjm9g14go0qhat1laiq7mhuka@4ax.com.. .[color=green]
>> And if I cannot, what is the best way to look for occurrences of CRLF
>> pairs in a text field? Of course, I'm talking about Chr$(13) and
>> Chr$(10).[/color]
>[/color]

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles