Validate Structure from text file with the spec

  • Thread starter Thread starter Dante Huapaya
  • Start date Start date
D

Dante Huapaya

Hi Everybody,

I have importing a text file (.csv) with specification on my database, how
to make to validate (with VBA) the importation if the text file does not
correspond to the parameters of my specification?
Thank you for your assistance

Carlos Dante
 
Hi Everybody,

I have importing a text file (.csv) with specification on my database, how
to make to validate (with VBA) the importation if the text file does not
correspond to the parameters of my specification?
Thank you for your assistance

Carlos Dante

You can query CSV file with:

SELECT * FROM [TEXT;DATABASE=C:\].filename.csv;

(adjust the path and file name) and make validation before populating
table.

Or - you can import data into temporary table and delete records out
of validation rule(s) before moving them into data table.

Regards,
Branislav Mihaljev
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top