trishcollins
Registered User.
- Local time
- Today, 05:21
- Joined
- Mar 23, 2011
- Messages
- 42
I import a CSV field which has not preserved the CR/LF when it was exported from BCM Remedy. There is no setting for that. The memo field prints on my report like this:
2012/05/23 3:13:45 PM PCOLLINS This is not considered an emergency, but should be reviewed in more detail to see if this site does require an upgrade PRIOR to the National rollout. A custom solution would be developed, that once implemented, could become the standard product in similar situation. Normally would assign to Network Engineering, but will work with Ray and the IPT Team to cost out the solution and get approval to proceed. 2012/05/24 10:44:28 AM PCOLLINS Sent to Ray Massie for review to determine if a solution needs to be proposed, or if they can wait for the National IPT solution to be ready in 2013.
I want it to print list this:
2012/05/23 3:13:45 PM PCOLLINS This is not considered an emergency, but should be reviewed in more detail to see if this site does require an upgrade PRIOR to the National rollout. A custom solution would be developed, that once implemented, could become the standard product in similar situation. Normally would assign to Network Engineering, but will work with Ray and the IPT Team to cost out the solution and get approval to proceed.
2012/05/24 10:44:28 AM PCOLLINS Sent to Ray Massie for review to determine if a solution needs to be proposed, or if they can wait for the National IPT solution to be ready in 2013.
I want to add VBA code that inserts a CR/LF in the memo field before all but the first occurance of a string that looks like a date, the first occurance doesn't need it. I will do it right after I import the CSV file into the table, so it happens only once, and it always prints and displays the CR/LF. Can anyone provide the code?
The memo field is called "NBS Update" and the table is called "CCRR Remedy Data"
Here is what I have, but don't actually know what to put in to find the date and add a CR/LF:
Thanks in advance
2012/05/23 3:13:45 PM PCOLLINS This is not considered an emergency, but should be reviewed in more detail to see if this site does require an upgrade PRIOR to the National rollout. A custom solution would be developed, that once implemented, could become the standard product in similar situation. Normally would assign to Network Engineering, but will work with Ray and the IPT Team to cost out the solution and get approval to proceed. 2012/05/24 10:44:28 AM PCOLLINS Sent to Ray Massie for review to determine if a solution needs to be proposed, or if they can wait for the National IPT solution to be ready in 2013.
I want it to print list this:
2012/05/23 3:13:45 PM PCOLLINS This is not considered an emergency, but should be reviewed in more detail to see if this site does require an upgrade PRIOR to the National rollout. A custom solution would be developed, that once implemented, could become the standard product in similar situation. Normally would assign to Network Engineering, but will work with Ray and the IPT Team to cost out the solution and get approval to proceed.
2012/05/24 10:44:28 AM PCOLLINS Sent to Ray Massie for review to determine if a solution needs to be proposed, or if they can wait for the National IPT solution to be ready in 2013.
I want to add VBA code that inserts a CR/LF in the memo field before all but the first occurance of a string that looks like a date, the first occurance doesn't need it. I will do it right after I import the CSV file into the table, so it happens only once, and it always prints and displays the CR/LF. Can anyone provide the code?
The memo field is called "NBS Update" and the table is called "CCRR Remedy Data"
Here is what I have, but don't actually know what to put in to find the date and add a CR/LF:
Code:
Dim db As DAO.Database[/FONT]
[FONT=Segoe UI]Dim db As DAO.Recordset[/FONT]
[FONT=Segoe UI]Dim srtSQL As String[/FONT]
[FONT=Segoe UI]Set db = CurrentDb()[/FONT]
[FONT=Segoe UI]StrSQL = "Select 'Last NSB Update' FROM 'Remedy CCRR Data'"[/FONT]
[FONT=Segoe UI]Set rst = db.OpenRecordset(StrSQL, dbOpenDynaset)[/FONT]
[FONT=Segoe UI]With rst[/FONT]
[FONT=Segoe UI]If .RecordCount > 0 Then[/FONT]
[FONT=Segoe UI].MoveFirst[/FONT]
[FONT=Segoe UI].Edit[/FONT]
[FONT=Segoe UI][B][I]'Add something here to find all occurances of the "date" (except the [/I][/B][/FONT]
[FONT=Segoe UI][FONT=Segoe UI][B][I]'first) in the memo field and put a CR/LF in front[/I][/B][/FONT]
[/FONT][FONT=Segoe UI].Update[/FONT]
[FONT=Segoe UI]End If[/FONT]
[FONT=Segoe UI]End With
Thanks in advance
Last edited: