PC Review


Reply
Thread Tools Rate Thread

Catching import errors from using transfertext

 
 
=?Utf-8?B?RGFycnls?=
Guest
Posts: n/a
 
      7th Mar 2005
Hi, I've created a button in a form that calls the transfertext function to
import a file when it's clicked. Currently the user is not informed when
there are import errors. e.g., type conversion errors in fields - the row is
still imported, and the errors logged in a new table, but unless the user
checks the tables, he wouldn't know there was an error during importing.

is there a way to catch all these errors and prompt the user? And is there
a way to show the user the rows affected (i.e. open the table) by clicking
another button?

Thanks!
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      7th Mar 2005
Hi,
what you can do:
before transfertext you delete at import errors table you have, then run
transfertext, after it you check for import errors table - once one is
exists - you can give a warning to user and then show data.

--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com


"Darryl" <(E-Mail Removed)> wrote in message
news:E6B47A27-0B72-41E9-B0B5-(E-Mail Removed)...
> Hi, I've created a button in a form that calls the transfertext function
> to
> import a file when it's clicked. Currently the user is not informed when
> there are import errors. e.g., type conversion errors in fields - the row
> is
> still imported, and the errors logged in a new table, but unless the user
> checks the tables, he wouldn't know there was an error during importing.
>
> is there a way to catch all these errors and prompt the user? And is
> there
> a way to show the user the rows affected (i.e. open the table) by clicking
> another button?
>
> Thanks!



 
Reply With Quote
 
=?Utf-8?B?RGFycnls?=
Guest
Posts: n/a
 
      8th Mar 2005
Hi Alex, thanks for the suggestion. How would I be able to identify which
table contains the import errors? Will the table name always be the same,
allowing me to hard code the table name in the code?


"Alex Dybenko" wrote:

> Hi,
> what you can do:
> before transfertext you delete at import errors table you have, then run
> transfertext, after it you check for import errors table - once one is
> exists - you can give a warning to user and then show data.
>
> --
> Alex Dybenko (MVP)
> http://Alex.Dybenko.com
> http://www.PointLtd.com
>
>
> "Darryl" <(E-Mail Removed)> wrote in message
> news:E6B47A27-0B72-41E9-B0B5-(E-Mail Removed)...
> > Hi, I've created a button in a form that calls the transfertext function
> > to
> > import a file when it's clicked. Currently the user is not informed when
> > there are import errors. e.g., type conversion errors in fields - the row
> > is
> > still imported, and the errors logged in a new table, but unless the user
> > checks the tables, he wouldn't know there was an error during importing.
> >
> > is there a way to catch all these errors and prompt the user? And is
> > there
> > a way to show the user the rows affected (i.e. open the table) by clicking
> > another button?
> >
> > Thanks!

>
>
>

 
Reply With Quote
 
Alex Dybenko
Guest
Posts: n/a
 
      8th Mar 2005
Hi,
i do not remember naming convention for import errors table, but once you
get it- you will know. just make you you delete any of it before
import -then once you have it after import - thn error(s) occure

--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com


"Darryl" <(E-Mail Removed)> wrote in message
news:3979E4B1-E054-4BF3-B97D-(E-Mail Removed)...
> Hi Alex, thanks for the suggestion. How would I be able to identify which
> table contains the import errors? Will the table name always be the same,
> allowing me to hard code the table name in the code?
>
>
> "Alex Dybenko" wrote:
>
>> Hi,
>> what you can do:
>> before transfertext you delete at import errors table you have, then run
>> transfertext, after it you check for import errors table - once one is
>> exists - you can give a warning to user and then show data.
>>
>> --
>> Alex Dybenko (MVP)
>> http://Alex.Dybenko.com
>> http://www.PointLtd.com
>>
>>
>> "Darryl" <(E-Mail Removed)> wrote in message
>> news:E6B47A27-0B72-41E9-B0B5-(E-Mail Removed)...
>> > Hi, I've created a button in a form that calls the transfertext
>> > function
>> > to
>> > import a file when it's clicked. Currently the user is not informed
>> > when
>> > there are import errors. e.g., type conversion errors in fields - the
>> > row
>> > is
>> > still imported, and the errors logged in a new table, but unless the
>> > user
>> > checks the tables, he wouldn't know there was an error during
>> > importing.
>> >
>> > is there a way to catch all these errors and prompt the user? And is
>> > there
>> > a way to show the user the rows affected (i.e. open the table) by
>> > clicking
>> > another button?
>> >
>> > Thanks!

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?RGFycnls?=
Guest
Posts: n/a
 
      9th Mar 2005
Alex, I've got it working now... Thanks again...
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
catching all errors =?Utf-8?B?cm9kY2hhcg==?= Microsoft ASP .NET 6 20th Nov 2006 01:19 PM
Catching errors cbh35711 Microsoft Excel Programming 0 3rd Apr 2006 09:52 PM
Access Import CSV with TransferText Comma Errors =?Utf-8?B?c3Bhcmtlcg==?= Microsoft Access VBA Modules 4 17th Jun 2005 06:36 PM
Catching Errors with try catch gv Microsoft ADO .NET 4 27th Apr 2005 08:41 PM
Catching ASP.NET errors Mikael Engdahl Microsoft ASP .NET 3 15th Aug 2003 07:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:04 PM.