Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2007, 02:11 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Joe,

In the code you posted, the "On Error Resume Next" statement is commented out?
Is this part of you testing, or are you actually running it like this?
It should not be commented out!!

One thing that may be worth doing is firing up VBA within an office app,
producing the script within there, and then exporting to a VBS file,
Whenever I do scripts I sometimes do that so you get the benefits of a
debugger ;)

Hope this helps,
Rob

<center>"Nothing can stop the man with the right mental attitude from achieving his goal;
nothing on earth can help the man with the wrong mental attitude".

Thomas Jefferson</center>
 
Old July 20th, 2007, 08:36 AM
Authorized User
 
Join Date: Jul 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, Rob!
        Yes, the commenting-out of the "On Error" statement was intentional, as part of my testing.... It seems the "cnv.Convert()" isn't returning control at all when this error occurs. That's ok... I can deal with this in a whole different way, I think...

  My take on it at this point is to remove the primary key from the table so there's no attempt to filter dups, and do that after the fact with a bit of VBA code... sound reasonable? There are 2 fields (3 if I decide not to combine the Date/Time into 1 field) that will identify a record as unique. I figure that there should be a way to select unique on those 3, and more the results into another table in which NO dups are allowed... Yes?

    Thanks again for your interest in, and assistance with, this weirdness....

      Joe (should this maybe get its own thread?) Parker



JP
 
Old July 20th, 2007, 08:47 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Joe,

Yeah its still got me confused! It sounds like you have a contingency, so it may be best to roll with that for now, and if you get the opportunity to revist then it may be worth toying with this more.. Its odd the error isn't being fed back up to the WSH. Have you tried my tip on writing the code in VBA then pasting to a script file?

As for the own thread thing, it may be worth moving this as it is now definately off-topic!!

Hope all is well,
Rob

<center>"Nothing can stop the man with the right mental attitude from achieving his goal;
nothing on earth can help the man with the wrong mental attitude".

Thomas Jefferson</center>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel dialog boxes problem cunninb Excel VBA 3 November 24th, 2004 03:59 AM
Find and Replace Dialog Boxes PC User Access 0 July 6th, 2004 07:43 PM
pesky code kelvin Visual C++ 1 July 2nd, 2004 03:07 AM
no dialog boxes will appear amber Crystal Reports 1 May 18th, 2004 11:32 PM
SQL , List Boxes/Menu Boxes, DB's Ginzu3 Classic ASP Databases 1 June 30th, 2003 04:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.