I am using CDec but it is not working.. In my table I defined ct_num as decimal with precision as 7 and scale as 2
when I run this it shows error message 3759 " Scaling of decimal value resulted in data truncation.
ct_num=CDec(ct_val)
If I use CInt or CLng it is rounding the number. say...
I need to read a csv file..
Sub import_csv()
DoCmd.TransferText acImportDelim, "", "Test_CSV", "c:\csv_files\12-31-2009
Test.csv", False, ""
End Sub
but my code is not successful, because one of my field some times has numbers values and other times it have character values so this field is not...
I want to do some thing like below.
Sub TEST_ImportCSV()
strFilePath = "G:\"
strFileName = "12-18-2009 Panel " & ".CSV"
strQuery="qryImport"
DoCmd.TransferText acExportDelim, , strQuery, strFilePath & strFileName, False
end sub
but how do I replace my file name with the parameter entered in...
sorry for the confusion. My code is in SAS not Access. I have to start brand new module.
*let csv_file=Mountain plate1 12-12-2009.csv;
%macro file_name (dsn=);
options mprint mlogic symbolgen NOXWAIT NOXSYNC ;
x "start excel";
options missing =0;
data _null_ ;
x = SLEEP(3) ;
run ...
Hi All, I have a csv file and I have to create a table by reading specific rows and columns from the csv file.
I would like to do this using VBA..
1) I have to read 1st rows 1 st column after colon as my filename field ( Document Name: 12-18-2009 Panel xls )
2) Then I have to read 8th row, 2nd...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.