How can I read CSV file using VBA?

I have to read CSV file using VBA. I don't want to use macros or queries like
transfer spreadsheet etc. because I want to apply certain rules in a  module
after reading the file.


Thank you

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201001/1

0
mls
1/4/2010 6:37:14 PM
access.formscoding 7493 articles. 0 followers. Follow

17 Replies
15837 Views

Similar Articles

[PageSpeed] 50

I am using the following code but one of my field which has both characters
and numbers is not importing at all.. How do I handle this?


Sub import_csv()
DoCmd.TransferText acImportDelim, "", "Test_CSV", "c:\csv_files\12-31-2009
Test.csv", False, ""
End Sub

mls wrote:
>I have to read CSV file using VBA. I don't want to use macros or queries like
>transfer spreadsheet etc. because I want to apply certain rules in a  module
>after reading the file.
>
>Thank you

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201001/1

2
mls
1/4/2010 7:00:55 PM
"mls via AccessMonster.com" <u55943@uwe> wrote in message 
news:a19e72191967d@uwe...
>I have to read CSV file using VBA. I don't want to use macros or queries 
>like
> transfer spreadsheet etc. because I want to apply certain rules in a 
> module
> after reading the file.
>
>
> Thank you
>
> -- 
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201001/1
>

Lets say each row of the csv file consists of a string and two whole 
numbers. First you declare variables to hold the incoming values:

Dim var1 As String, var2 As Long, var3 As Long

Then you need an integer variable to hold the open file's id number:

Dim f As Integer

Then you read in the file in a loop till the end-of-file:

f = FreeFile
Open "c:\temp\myCSVfile.csv" For Input As f
Do Until EOF(f)
    Input #f, var1, var2, var3
    'Do whatever you want with the values here
    '(ie apply your rules)
Loop
Close f

Make sure you get the variable list in the correct order on the Input# line.

Untested 'air code'.


0
Stuart
1/4/2010 7:30:15 PM
Thank you Stuart.
Can I ask you one more question?

Suppose my var1 has
1)  value "Document Name: 12-12-2009 Test Panel" and I need to read values
after  colon: how can I do that. 
2) Same way I need to read values after colon in my 3rd row "User: image4"

1)In another language I read these 2 line seperately and used functions to
get the values
SUBSTR to read the first row value. 
Input #f, var1
   Run_File_Name = substr(doc_name, 16)
2) opr=SCAN(op, -1);

Then I have to store these 2 values in a table.
Is that possible in ACCESS.

Thanks a lot


Stuart McCall wrote:
>>I have to read CSV file using VBA. I don't want to use macros or queries 
>>like
>[quoted text clipped - 3 lines]
>>
>> Thank you
>
>Lets say each row of the csv file consists of a string and two whole 
>numbers. First you declare variables to hold the incoming values:
>
>Dim var1 As String, var2 As Long, var3 As Long
>
>Then you need an integer variable to hold the open file's id number:
>
>Dim f As Integer
>
>Then you read in the file in a loop till the end-of-file:
>
>f = FreeFile
>Open "c:\temp\myCSVfile.csv" For Input As f
>Do Until EOF(f)
>    Input #f, var1, var2, var3
>    'Do whatever you want with the values here
>    '(ie apply your rules)
>Loop
>Close f
>
>Make sure you get the variable list in the correct order on the Input# line.
>
>Untested 'air code'.

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201001/1

0
mls
1/4/2010 8:25:09 PM
mls via AccessMonster.com wrote:
> I am using the following code but one of my field which has both
> characters and numbers is not importing at all.. How do I handle this?
>
>
> Sub import_csv()
> DoCmd.TransferText acImportDelim, "", "Test_CSV",
> "c:\csv_files\12-31-2009 Test.csv", False, ""
> End Sub

Without a specification (the "") I suspect Access is guessing at what the 
values are.
Probably that field starts with a number and then contains text.

Run through a manual import first, pick the advanced button and save the 
spec with a good name, then use it.

Unless I have to pharse the file I always import into a table, then use 
queries to modify what I need. 


0
Mike
1/4/2010 8:49:07 PM
mls via AccessMonster.com wrote:
> Thank you Stuart.
> Can I ask you one more question?
>
> Suppose my var1 has
> 1)  value "Document Name: 12-12-2009 Test Panel" and I need to read
> values after  colon: how can I do that.
> 2) Same way I need to read values after colon in my 3rd row "User:
> image4"


 Instr will find the colon and Mid will return the value.
YourVar = "Document Name: 12-12-2009 Test Panel"

Mid (YourVar,Instr(YourVar,":")+1 )

The Split function is another way. It has a lot of advantages but can't be 
used without a function built around it.

Mid can be used in queries as it stands. 


0
Mike
1/4/2010 10:15:48 PM
 can you help me run this code? i.e how can I check the value of testvar

Sub test()
Dim testvar As String

var1 = "Document Name: 12-12-2009 Test Panel"

testvar = Mid(var1, InStr(var1, ":") + 1)

End Sub

Also if my field one has the value = A10,5770,test1,Undetermined, how can I
put them into different fields..

well=A10
sample=5770
dectect=test1
value=Undetermined

These might look silly but I am learning VBA so..

Mike Painter wrote:
>> Thank you Stuart.
>> Can I ask you one more question?
>[quoted text clipped - 4 lines]
>> 2) Same way I need to read values after colon in my 3rd row "User:
>> image4"
>
> Instr will find the colon and Mid will return the value.
>YourVar = "Document Name: 12-12-2009 Test Panel"
>
>Mid (YourVar,Instr(YourVar,":")+1 )
>
>The Split function is another way. It has a lot of advantages but can't be 
>used without a function built around it.
>
>Mid can be used in queries as it stands.

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201001/1

0
mls
1/5/2010 1:48:37 PM
With advance options I could see that my csv file imported exactly the way I
wanted.
I saved the specifications but how can I open later to see the code.


Mike Painter wrote:
>> I am using the following code but one of my field which has both
>> characters and numbers is not importing at all.. How do I handle this?
>[quoted text clipped - 3 lines]
>> "c:\csv_files\12-31-2009 Test.csv", False, ""
>> End Sub
>
>Without a specification (the "") I suspect Access is guessing at what the 
>values are.
>Probably that field starts with a number and then contains text.
>
>Run through a manual import first, pick the advanced button and save the 
>spec with a good name, then use it.
>
>Unless I have to pharse the file I always import into a table, then use 
>queries to modify what I need.

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201001/1

0
mls
1/5/2010 2:04:58 PM
"mls via AccessMonster.com" <u55943@uwe> wrote in message 
news:a1a87fab6feb3@uwe...
> can you help me run this code? i.e how can I check the value of testvar
>
> Sub test()
> Dim testvar As String
>
> var1 = "Document Name: 12-12-2009 Test Panel"
>
> testvar = Mid(var1, InStr(var1, ":") + 1)

msgbox textvar

or
You can open an immediate window and use debug.print or



>
> End Sub
>
> Also if my field one has the value = A10,5770,test1,Undetermined, how can 
> I
> put them into different fields..
>
> well=A10
> sample=5770
> dectect=test1
> value=Undetermined
>
> These might look silly but I am learning VBA so..

You can use Mid for all of these but I would use
Split

Dim WellInfo() as string
WellInfo = Split(YourWellField, ",")

at this point
wellInfo(0)= "A10"
WellInfo(1)="5770"
WellInfo(2)="test1"
WellInfo(3)="Undetermined"

so

With SomeTable
      .well = wellInfo(0)
      .sample =WellInfo(1)
      .detect = wellinfo(2)
       .YourValue = WellInfo(3)
end with





> Mike Painter wrote:
>>> Thank you Stuart.
>>> Can I ask you one more question?
>>[quoted text clipped - 4 lines]
>>> 2) Same way I need to read values after colon in my 3rd row "User:
>>> image4"
>>
>> Instr will find the colon and Mid will return the value.
>>YourVar = "Document Name: 12-12-2009 Test Panel"
>>
>>Mid (YourVar,Instr(YourVar,":")+1 )
>>
>>The Split function is another way. It has a lot of advantages but can't be
>>used without a function built around it.
>>
>>Mid can be used in queries as it stands.
>
> -- 
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201001/1
> 


0
Mike
1/6/2010 12:34:11 AM
"mls via AccessMonster.com" <u55943@uwe> wrote in message 
news:a1a8a447e169e@uwe...
> With advance options I could see that my csv file imported exactly the way 
> I
> wanted.
> I saved the specifications but how can I open later to see the code.

Open another import window, go to advanced, and select the name you saved.
>
>
> Mike Painter wrote:
>>> I am using the following code but one of my field which has both
>>> characters and numbers is not importing at all.. How do I handle this?
>>[quoted text clipped - 3 lines]
>>> "c:\csv_files\12-31-2009 Test.csv", False, ""
>>> End Sub
>>
>>Without a specification (the "") I suspect Access is guessing at what the
>>values are.
>>Probably that field starts with a number and then contains text.
>>
>>Run through a manual import first, pick the advanced button and save the
>>spec with a good name, then use it.
>>
>>Unless I have to pharse the file I always import into a table, then use
>>queries to modify what I need.
>
> -- 
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201001/1
> 


0
Mike
1/6/2010 12:35:36 AM
My code is running but the values are not inserted into the test_table I
created.. Initially when I tried to import with fixed length it imported
every thing into 1 field but with Advanced option I noticed that the system
is reading with comma delimiter and creating 6 fields, all text.

my CSV file is as follows.. I want to read 1,3,5,8-13 rows and store these
values into  an access table..
1Document Name: 12-12-2009 Test Panel			
2
3User: image4			
4
5Run Date: Tuesday	 December 5	 2009 12:45:11	
6
7
8Well	Sample 	Detector	Ct
9A1	NTC	Test1	Undetermined
10A2	5245	Test1	34.0956
11A7	5670	Test1	Undetermined
12A8	5861	Test1	31.5816
13A9	5743	Test1	33.0868

Is there a simple way to read this csv file with VBA?


Mike Painter wrote:
>> can you help me run this code? i.e how can I check the value of testvar
>>
>[quoted text clipped - 4 lines]
>>
>> testvar = Mid(var1, InStr(var1, ":") + 1)
>
>msgbox textvar
>
>or
>You can open an immediate window and use debug.print or
>
>> End Sub
>>
>[quoted text clipped - 8 lines]
>>
>> These might look silly but I am learning VBA so..
>
>You can use Mid for all of these but I would use
>Split
>
>Dim WellInfo() as string
>WellInfo = Split(YourWellField, ",")
>
>at this point
>wellInfo(0)= "A10"
>WellInfo(1)="5770"
>WellInfo(2)="test1"
>WellInfo(3)="Undetermined"
>
>so
>
>With SomeTable
>      .well = wellInfo(0)
>      .sample =WellInfo(1)
>      .detect = wellinfo(2)
>       .YourValue = WellInfo(3)
>end with
>
>>>> Thank you Stuart.
>>>> Can I ask you one more question?
>[quoted text clipped - 11 lines]
>>>
>>>Mid can be used in queries as it stands.

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201001/1

0
mls
1/6/2010 2:40:03 PM
mls via AccessMonster.com wrote:
> My code is running but the values are not inserted into the
> test_table I created.. Initially when I tried to import with fixed
> length it imported every thing into 1 field but with Advanced option
> I noticed that the system is reading with comma delimiter and
> creating 6 fields, all text.
>
> my CSV file is as follows.. I want to read 1,3,5,8-13 rows and store
> these values into  an access table..
> 1Document Name: 12-12-2009 Test Panel
> 2
> 3User: image4
> 4
> 5Run Date: Tuesday December 5 2009 12:45:11
> 6
> 7
> 8Well Sample Detector Ct
> 9A1 NTC Test1 Undetermined
> 10A2 5245 Test1 34.0956
> 11A7 5670 Test1 Undetermined
> 12A8 5861 Test1 31.5816
> 13A9 5743 Test1 33.0868
>
> Is there a simple way to read this csv file with VBA?


You decide if the import is fixed or delimiterd in some way.
I see no comma's in what you posted so am guessing you got six fields from 
line one by picking a space as a delimiter.
I'd stick with that and work form that table.
If not you will need to use OPEN  amd Line Input
Here is some sample code,
Dim Textline
<HERE YOU OPEN THE TABLE(S) YOU WANT TO WRITE THE DATA TO>
Open "C:\TESTFILE.txt" For Input As #1    ' Open file.
Do While Not EOF(1)    ' Loop until end of file.
    Line Input #1, TextLine    ' Read line into variable.
    <MORE CODE GOES HERE>
    Debug.Print TextLine    ' Print to the Immediate window.
Loop
Close #1    ' Close file.

Where MORE CODE appears you will have to,
 add a new record to your table with .addNew
For I = 1 to 9
    parse each line with mid or split
    set the  values  from your parsing rountine to the field names (covered 
in a previous post
    Use .Update to write the new record.
Next I
You could do all 13 rows but it appears that 9 through 13 should be related 
records in another table.
So for I = 1 to 5 go through the same process writing the results to a 
second table using teh key from the other table.

Failure to relate these records (if they are related) *WILL* continue to 
cause problems, especially when it comes to reporting. You would have to 
write code to answer a simple question.
How many tests were marked "Undetermined"

As for it being a simple way, I think so, just a lot of busy work, but I've 
been writing this type of import routine since dBase II on an Osborne I and 
I did something similar on an IBM 1620.

I would have no problem asigning such a task to a student who wanted to 
learn about looping through files and tables and using some of the string 
handling functions of VB

One more comment. I rarely use loops in such events.
I would use 13 Line Input commands, parse the info then write it to a 
record.
That way the code "looks" like what you are importing and errors cn be easy 
to spot.


0
Mike
1/7/2010 4:01:13 AM
Thanks Mike for the detailed message. You are giving me hope to continue this
program but I could not pick up. Simple debug takes me hours together as I am
new to VBA. Can you send me specific code where I can read only row 9 to row
100 for field1, field2, field3 & field4 ( all text fields) from a .CSV file (
i.e comma delimited) and insert into table called "test_csv"

Thanks a lot
Mike Painter wrote:
>> My code is running but the values are not inserted into the
>> test_table I created.. Initially when I tried to import with fixed
>[quoted text clipped - 19 lines]
>>
>> Is there a simple way to read this csv file with VBA?
>
>You decide if the import is fixed or delimiterd in some way.
>I see no comma's in what you posted so am guessing you got six fields from 
>line one by picking a space as a delimiter.
>I'd stick with that and work form that table.
>If not you will need to use OPEN  amd Line Input
>Here is some sample code,
>Dim Textline
><HERE YOU OPEN THE TABLE(S) YOU WANT TO WRITE THE DATA TO>
>Open "C:\TESTFILE.txt" For Input As #1    ' Open file.
>Do While Not EOF(1)    ' Loop until end of file.
>    Line Input #1, TextLine    ' Read line into variable.
>    <MORE CODE GOES HERE>
>    Debug.Print TextLine    ' Print to the Immediate window.
>Loop
>Close #1    ' Close file.
>
>Where MORE CODE appears you will have to,
> add a new record to your table with .addNew
>For I = 1 to 9
>    parse each line with mid or split
>    set the  values  from your parsing rountine to the field names (covered 
>in a previous post
>    Use .Update to write the new record.
>Next I
>You could do all 13 rows but it appears that 9 through 13 should be related 
>records in another table.
>So for I = 1 to 5 go through the same process writing the results to a 
>second table using teh key from the other table.
>
>Failure to relate these records (if they are related) *WILL* continue to 
>cause problems, especially when it comes to reporting. You would have to 
>write code to answer a simple question.
>How many tests were marked "Undetermined"
>
>As for it being a simple way, I think so, just a lot of busy work, but I've 
>been writing this type of import routine since dBase II on an Osborne I and 
>I did something similar on an IBM 1620.
>
>I would have no problem asigning such a task to a student who wanted to 
>learn about looping through files and tables and using some of the string 
>handling functions of VB
>
>One more comment. I rarely use loops in such events.
>I would use 13 Line Input commands, parse the info then write it to a 
>record.
>That way the code "looks" like what you are importing and errors cn be easy 
>to spot.

-- 
Message posted via http://www.accessmonster.com

0
mls
1/7/2010 8:16:38 PM
If you want to use Line Input it would be something like
For I = 1 to 8
  Line Input #1, TextLine    ' Read line into variable.
'just throw it away.
Next I
For I =  9 to 100
  Line Input #1, TextLine    ' Read line into variable.
<MORE CODE GOES HERE>
Next I
Wher more code appears you would parse the text as described below and in 
previous posts using Split or Mid and Instr




mls via AccessMonster.com wrote:
> Thanks Mike for the detailed message. You are giving me hope to
> continue this program but I could not pick up. Simple debug takes me
> hours together as I am new to VBA. Can you send me specific code
> where I can read only row 9 to row 100 for field1, field2, field3 &
> field4 ( all text fields) from a .CSV file ( i.e comma delimited) and
> insert into table called "test_csv"
>
> Thanks a lot
> Mike Painter wrote:
>>> My code is running but the values are not inserted into the
>>> test_table I created.. Initially when I tried to import with fixed
>> [quoted text clipped - 19 lines]
>>>
>>> Is there a simple way to read this csv file with VBA?
>>
>> You decide if the import is fixed or delimiterd in some way.
>> I see no comma's in what you posted so am guessing you got six
>> fields from line one by picking a space as a delimiter.
>> I'd stick with that and work form that table.
>> If not you will need to use OPEN  amd Line Input
>> Here is some sample code,
>> Dim Textline
>> <HERE YOU OPEN THE TABLE(S) YOU WANT TO WRITE THE DATA TO>
>> Open "C:\TESTFILE.txt" For Input As #1    ' Open file.
>> Do While Not EOF(1)    ' Loop until end of file.
>>    Line Input #1, TextLine    ' Read line into variable.
>>    <MORE CODE GOES HERE>
>>    Debug.Print TextLine    ' Print to the Immediate window.
>> Loop
>> Close #1    ' Close file.
>>
>> Where MORE CODE appears you will have to,
>> add a new record to your table with .addNew
>> For I = 1 to 9
>>    parse each line with mid or split
>>    set the  values  from your parsing rountine to the field names
>> (covered in a previous post
>>    Use .Update to write the new record.
>> Next I
>> You could do all 13 rows but it appears that 9 through 13 should be
>> related records in another table.
>> So for I = 1 to 5 go through the same process writing the results to
>> a second table using teh key from the other table.
>>
>> Failure to relate these records (if they are related) *WILL*
>> continue to cause problems, especially when it comes to reporting.
>> You would have to write code to answer a simple question.
>> How many tests were marked "Undetermined"
>>
>> As for it being a simple way, I think so, just a lot of busy work,
>> but I've been writing this type of import routine since dBase II on
>> an Osborne I and I did something similar on an IBM 1620.
>>
>> I would have no problem asigning such a task to a student who wanted
>> to learn about looping through files and tables and using some of
>> the string handling functions of VB
>>
>> One more comment. I rarely use loops in such events.
>> I would use 13 Line Input commands, parse the info then write it to a
>> record.
>> That way the code "looks" like what you are importing and errors cn
>> be easy to spot. 


0
Mike
1/8/2010 6:26:30 PM
I did not get a chance to try this today but will post an update when I am
done.

Thanks

Mike Painter wrote:
>If you want to use Line Input it would be something like
>For I = 1 to 8
>  Line Input #1, TextLine    ' Read line into variable.
>'just throw it away.
>Next I
>For I =  9 to 100
>  Line Input #1, TextLine    ' Read line into variable.
><MORE CODE GOES HERE>
>Next I
>Wher more code appears you would parse the text as described below and in 
>previous posts using Split or Mid and Instr
>
>> Thanks Mike for the detailed message. You are giving me hope to
>> continue this program but I could not pick up. Simple debug takes me
>[quoted text clipped - 57 lines]
>>> That way the code "looks" like what you are importing and errors cn
>>> be easy to spot.

-- 
Message posted via http://www.accessmonster.com

0
mls
1/8/2010 7:51:34 PM
Mike, 
I did progress in running this code but again got stuck at Var1(2) & (3)..
error 3265 says item not found in this collection.. var1= a10,5245,test1,23.
45
I am expecting var1(2) test1 & var1(3)=23.45. So how can I capture these? 
Thank you
Code below..
If (i > 9) Then
                    
                    Temp = Mid(strline, InStr(strline, ":") + 1)
                    var1 = Split(Temp, ",")
                    mylog![sample] = var1(1)
                    'mylog![detect] = var1(2)
                    'mylog![value] = var1(3)
                    mylog.Update
                 
                End If
                i = i + 1
            Loop
mls wrote:
>I did not get a chance to try this today but will post an update when I am
>done.
>
>Thanks
>
>>If you want to use Line Input it would be something like
>>For I = 1 to 8
>[quoted text clipped - 13 lines]
>>>> That way the code "looks" like what you are importing and errors cn
>>>> be easy to spot.

-- 
Message posted via http://www.accessmonster.com

0
mls
1/12/2010 9:53:14 PM
If  var1= a10,5245,test1,23. 45
then it is not an array.
Use var2 or give it some meaningful name and dimension it.
Note this is zero based so the first value is YourTestArray(0)
Did you dimension var1 as shown in the sample I gave you?

mls via AccessMonster.com wrote:
> Mike,
> I did progress in running this code but again got stuck at Var1(2) &
> (3).. error 3265 says item not found in this collection.. var1=
> a10,5245,test1,23. 45
> I am expecting var1(2) test1 & var1(3)=23.45. So how can I capture
> these? Thank you
> Code below..
> If (i > 9) Then
>
>                    Temp = Mid(strline, InStr(strline, ":") + 1)
>                    var1 = Split(Temp, ",")
>                    mylog![sample] = var1(1)
>                    'mylog![detect] = var1(2)
>                    'mylog![value] = var1(3)
>                    mylog.Update
>
>                End If
>                i = i + 1
>            Loop
> mls wrote:
>> I did not get a chance to try this today but will post an update
>> when I am done.
>>
>> Thanks
>>
>>> If you want to use Line Input it would be something like
>>> For I = 1 to 8
>> [quoted text clipped - 13 lines]
>>>>> That way the code "looks" like what you are importing and errors
>>>>> cn be easy to spot. 


0
Mike
1/13/2010 3:33:18 AM
This is working fine. I just forgot to add the test and value fields to the
table so I got the 3265 ERROR Message
My code is working fine to read specific cells from CSV file. Now I need to
add code to process the data.
Thanks a lot Mike.

Mike Painter wrote:
>If  var1= a10,5245,test1,23. 45
>then it is not an array.
>Use var2 or give it some meaningful name and dimension it.
>Note this is zero based so the first value is YourTestArray(0)
>Did you dimension var1 as shown in the sample I gave you?
>
>> Mike,
>> I did progress in running this code but again got stuck at Var1(2) &
>[quoted text clipped - 25 lines]
>>>>>> That way the code "looks" like what you are importing and errors
>>>>>> cn be easy to spot.

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201001/1

0
mls
1/13/2010 7:06:59 PM
Reply:

Similar Artilces:

error: OBE-15502 Can only have 16000 per document
Hi, I tried to export data from oracle query builder to Excel sheet, got a error message: OBE-15502 Can only have 16000 per document Is there any way i can get more records(over 16000 or unlimited) in one sheet? thanks. -- JJ ...

How do I manage vbscript between compose and read page
Hi, I have designed a custom Outlook 2007 email form with a separate compose and read page. It's using vbscript to automatically compose the subject line on sending, based on selections the user makes from several comboboxes. The read form does not have these comboboxes. When opening the mail on a machine with the vbscript debugger installed, the debugger kicks in and reports an error because the vbscript refers to objects that don't exist on the read page, only on the compose page. You can ignore the error and the mail will still open fine (users with no debugger insta...

concatenate files...
Back in DOS days I could concatenate text files without using a third party tool. Can I do this with XP, Vista, or W7? TIA, Paul "Paul H" <NoSpamphobergNoSpam@att.net> wrote: >Back in DOS days I could concatenate text files without using a third party >tool. Can I do this with XP, Vista, or W7? TIA, Paul Yes, the same way you did before: copy file1.txt + file2.txt fileboth.txt Type copy /? at a command prompt to find out all about the copy command. -- Tim Slattery Slattery_T@bls.gov http://members.cox.net/slatteryt Paul H wrote: ...

Can't see 401(k) contribiltion total
I've set up a 401(k)accont. I transfer contribiltions to this 401(k)account from each paycheck. When I go to the 401 (k) account view, it shows all the informations such as transections and the account vallue ect., EXCEPT the total contribiltion. I want to know not only what my 401(k) vallue is, but how much money I have contribilt total or over a period of time as well. I find no place to see it. Anybody can help? I'm using Money2002 and 2004 Trial Verstion. Thanks a lot! ...

How can I print a selection in Outlook 2003?
How can I print just a selection of an email in Outlook 2003? The printer driver window is different from the one that comes up in Outlook Express. Thank you! You can do this for HTML formatted messages. Highlight your text, File-> Print... and select to print only the selection -- Robert Sparnaaij [MVP-Outlook] www.howto-outlook.com Tips of the month: -What do the Outlook Icons Mean? -Create an Office 2003 CD slipstreamed with Service Pack 1 ----- "Murphie" <Murphie@discussions.microsoft.com> wrote in message news:92F39B50-B877-408A-AAA7-DF350B1D72ED@microsoft.com....

Can different editions of Publisher be used together?
If my son uses Publisher 2003 on a school computer, downloads his work to a flash drive, brings it home to edit on Publisher 2007, will he then be able to take the edited work back to the school computer to be used, or will it not be compatible? Stateparent wrote: > If my son uses Publisher 2003 on a school computer, downloads his work to a > flash drive, brings it home to edit on Publisher 2007, will he then be able > to take the edited work back to the school computer to be used, or will it > not be compatible? Publisher 2003 and 2007 share a common file format, so the sc...

Make table truncates text concatenated using fnConcatenate
I have a MakeTable query which uses the fnConcatenate( ) function to merge a bunch of information into a single field. Unfortunately, the field length exceeds 255 characters and the MakeTable tries to dump this into a text field, rather than identifying that the field should be a memo field. I know I could create the base table and import the data from my query into that table, but I would prefer to make this table on the fly, and then delete it when I am done with it. Any recommendations? -- Email address is not valid. Please reply to newsgroup only. On Wed, 11 Apr 2007 12:48:04 -07...

Sending/exporting Outlook Contacts for use in another computer
I want to send the Outlook Contacts address book from my desktop to use in my laptop. Can it be as simple as copying the whole address book file and replacing the laptop Contacts address book with the new one? Thanks. Bob There is no separate "address book" file. The file you need is your Personal Folders file (*.pst) It's where all the mail, calendar, contacts etc are stored. Take a look at these pages for info on Outlook data backup or transfer: http://www.slipstick.com/config/backup.htm http://www.howto-outlook.com/Howto/backupandrestore.htm http://office.microsoft.com...

Can't send/receive
anyone have a situation where all of sudden they can't send new messages or receive anything? I get a message when I click on "accounts" that says 'fatal error in outlook unable to complete operation" ...

Can not Customize Leads View
Hi I have tried to customize the Leads view, I tried to add a view and add some columns to it. The view is shown however I see only the name column. When I go back to the View customization, I see the columns I added. Published your customizations??? -- ---------------------- regards, Ilya Milshtein MBS Master, MBSCP, MCP Softline International www.softline.ru "alsap" wrote: > Hi I have tried to customize the Leads view, I tried to add a view and add > some columns to it. > The view is shown however I see only the name column. > When I go back to the View customi...

Can I change the "Applied Task Update Requests and Errors" view?
I really like this view in PWA 2007, but I would like to replace one column with another. Is this view customizeable? Randy -- Bad news, my friend. This view is not customizable, nor is the view shown in the Task Updates customizable (which many users wish it was). Hope this help. -- Dale A. Howard [MVP] VP of Educational Services msProjectExperts http://www.msprojectexperts.com http://www.projectserverexperts.com "We write the books on Project Server" "Randy Schmid" <RandySchmid@discussions.microsoft.com> wrote in message news:72FA34B5-...

Should be an easy but I can not figure it out!!
I have a text box where the user enters a date and it is assigned to variable txtDate. How to I convert that to the serial number of the date? Thanks for the help IIRC, you can use DATEVAL(String) to get the serial date. -- HTH, Barb Reinhardt "VinceW" wrote: > I have a text box where the user enters a date and it is assigned to variable > txtDate. How to I convert that to the serial number of the date? > > Thanks for the help Barb, Thanks for the quick reply, however I get the error "Sub or Function not defined" when trying...

Bulk attachments
I have a very long list of Images in a single folder that I want to attach to seperate fields in a table/form. Each record contains two images, which are named like this: W:\Foldername\Micromap Run 001 A.bmp =(1st record) W:\Foldername\Micromap Run 001 B.bmp =(1st record) W:\Foldername\Micromap Run 002 A.bmp =(2nd record) W:\Foldername\Micromap Run 002 B.bmp =(2nd record) W:\Foldername\Micromap Run 003 A.bmp =(3rd record) W:\Foldername\Micromap Run 003 B.bmp =(3rd record) and so on... Image A goes to field A Image B goes to field B Is there a way of doing this au...

Publisher file won't open #2
I worked for three hours then Publsher crashed. I had saved my file, but when I trie to open it it says problem with file, do you want to report it, and then reboots Publisher. How can I save my work? Using Publisher 2003. You may send the file to me. If I can open it I'll save it for you. If it crashes my system, you may be SOL. (Surely out of luck.) If you want to accept my offer, send it to jl dot paules at gmail at com. -- JoAnn Paules MVP Microsoft [Publisher] "Don Smith" <dhsmith@bellsouth.net> wrote in message news:r4ns615gkmkm12q5or5nd0k70gac5stjbc@4ax....

can't uninstall exchange from cluster nodes
hi our client has several exchange clusters, and one of them is being retired. we have removed the exchange resources and the EVS and the server no longer appears in the organization and everything else there seems to be ok. we can't seem to uninstall exchange from either of the nodes. setup will start saying it's loading components then terminates with no error; happens on both nodes. both nodes are exchange 2003 sp1 on windows 2003. i did find the setup log; here is what it says, hope someone can shed some light on this (company info replaced with < >): [19:47:23] *...

Can't delete email #2
I'm am trying to help a friend who is using Outlook Express on W98, I cannot delete any messages from her in box. She has over 500 in there, which may be part of the problem. Any suggestions? Desperate! Mark Mark Ryan <m.ryan@earthlink.com> wrote: > I'm am trying to help a friend who is using Outlook Express > on W98, I cannot delete any messages from her in box. She > has over 500 in there, which may be part of the problem. > Any suggestions? The first suggestion is to ask in an Outlok Express newsgroup. The second suggestion is to delete Deleted Items.dbx and ...

Can Not Reply To Emails
Running Windows 7 Professional with latest version of WLM. I get email messages I can not reply to. The reply button is grayed out. For now I am forwarding them to my WinXP computer and then replying from that computer with OE6. Anybody have any ideas? -- <Bill> Brought to you from Anchorage, Alaska. The most obvious reason for not having an active Reply button is not having a mail account set up. --=20 Gary VanderMolen, Microsoft MVP (Mail) http://mvp.support.microsoft.com/default.aspx/profile/vandermolen "Bill Bradshaw" <bradshaw@gci.net>...

How can I rename a database table?
Hi I am working on a project that uses the MFC CDatabase and CRecordset classes to handle its interfacing with an Access database. It is necessary for the software to rename a table within existing user databases to ensure that they are valid for use with the new version of the software. As a result of my limited database and MFC knowledge I am having difficulty finding a way of renaming the table. I have tried using the following: try { theDataBase.ExecuteSQL( "RENAME oldTableName TO newTableName"); } catch( CDBException* e) { e->m_strError; } However, it results in th...

VBA referances
Dear All, I am using GP10. I had modified the 'Trail Balance report' using modifier by adding a calculated field in the report. The calculated field is added to VBA and the corressponding validation is made and assigned to the same calculated field. The report is working fine, but while logging in GP a message saying 'The microsoft_Dynamics_GP.vba project references some objects that cannot be found' When i checked out in referances. The listed out options are checked Visual basic for applications Microsoft Dynamics GP VBA 10.0 type library OLE automation Dexterity rep...

how can I restore unsaved changes in excel #2
...

Can (or how can) I do this
Hello, My Access application tracks an employee's progress through a process similar to hiring. There are 5 steps in the process. I track 4 of the steps by counting the number of times a value appears in a date field for that step. The count is then displayed and used in a calculation. The 5th step is more complicated. The 5th step needs to determine if the employee has verified that he can access all the applications that he should have access to. My process tracking table has the first 4 dates. The application access info comes from a different table. This process trackin...

Can Not Connect to Exchange Server after Mailbox Move
I have 2 exchange servers. While logged into the domain, and at the location, I can log into the email system just fine. While remote VPN in, I can not access the server. I can ping the server, I can see all shares, and I can even access the printer and print from the exchange server. But I can not get to it with email. Any Ideas? Oh.. both exchange 5.5, both in the same site. Exchange Admin shows both sites just fine. is there a firewall with rules configured, in between the users vpn connection and the internal network? kmelillo@gmail.com wrote: > Oh.. both exchange 5.5, bot...

Writing Text File with code UTF-8
Hello Does somebody know how to write a Text File with code UTF-8 from Dexterity? I know that are 3 functions to write text files: TextFile_Writeline() TextFile_WriteDOS() TextFile_WriteText() But there is not therein a parameter to achieve text file be written with code UTF-8. I=92ll appreciate your guide. Best regards. ------=_NextPart_0001_A41C49B3 Content-Type: text/plain Content-Transfer-Encoding: 7bit Dexterity does not support double byte or unicode. You might need to use COM or win32 dll calls to get the OS to write the file for you. The difference between WriteLine and WriteDOS i...

Can not archive
I get the message "Error while archiving folder "Deleted Items" in store "mailbox-user name." Some items could not be copied. They were either moved or deleted, or access was denied. This only happend recently and only occurs with the deleted items. I can archive send and the inbox without a problem. Any suggestions? Thanks ...

How do i convert excel to csv in command line? ( not save as)
I am trying to automate a system which needs the files in csv format. Is there any way to convert excel to csv in command line, instead of the usual 'save as'? PS: If you know any UNIX utilities too, please mention. F1, No way I can think of from the command line. You could write an Excel macro that controls the whole process. Open a file, save as csv, close, next file, loop. -- Earl Kiosterud mvpearl omitthisword at verizon period net ------------------------------------------- "F1" <F1@discussions.microsoft.com> wrote in message news:B67ACCB6-CC54-4B5E-...