Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to transfer excel file data to new DBF with specific format 1

Status
Not open for further replies.

farzad321

Programmer
Sep 14, 2019
53
FR
Hi to Every one

[highlight #FCE94F]At first we all must stay at home for corona virus . thanks[/highlight]

I have a exacel file with 2000 row and 13 coloumns and I need to transfer this data to one DBF for some calculations. some of this data was numeric and sume was character and one column must be convert to MEMO.
How can I do that ?
any idea you have ?
if any thread exist for this conversion, tell me please...

this is one time routine and speed not important.
sorry for my english.
thank you for all answers.
FARZAD
 
You could create a table with the right fields, then open the excel spreadsheet using automation and process each line until you reach a blank one
taking the cells value and replace a new record in the table.

If you do this, could I suggest you change the background colour for each cell that is processed so that the end user can look at the sheet and see where problems arose if the import was unsuccessful.



Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Given that it is a one-off job, your best bet might be to use the VFP Import Wizard (go to Tools -> Wizards -> Import), then follow the prompts. If in doubt, click the Help button in the lower-left corner of the wizard.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Hi Sir
I will do that az soon as possible
thanks to GrifMG and Mike
You are the best.
FARZAD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top