From bheygood at abestsystems.com Fri Sep 1 00:12:20 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Thu, 31 Aug 2006 22:12:20 -0700 Subject: [AccessD] Query Parameter In-Reply-To: <44F776E2.7030609@san.rr.com> Message-ID: Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, August 31, 2006 4:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query Parameter I usually make a public function in a module which return the value from the forms and call that function in the criteria line on the QBE grid. Don't forget the () in the call on the QBE grid. Rocky T Bob Heygood wrote: > Yeah. > Tried to supply the !Forms.... to the query parameters box even. No luck.... > > > Bob > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, August 31, 2006 4:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query Parameter > > > How do you run it from code? db.Execute? > > Rocky > > > Bob Heygood wrote: > >> I have a query that I execute from code. >> It has criteria and an alias that references a form control value. >> This query works fine when run from the db window. >> But complains that "Too few parameters..1 expected.", when run from my >> > code. > >> TIA >> >> Bob Heygood >> >> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Sep 1 08:14:03 2006 From: askolits at ot.com (John Skolits) Date: Fri, 1 Sep 2006 09:14:03 -0400 Subject: [AccessD] File Copy In-Reply-To: <44F774DA.7080308@san.rr.com> Message-ID: <002501c6cdc8$8253a170$800101df@officexp> Rocky, I tried this by creating an 'unbound' form and ran it multiple times and it just kept overwriting the file with no problem. Was your form bound? The various output files names I placed in the text box 'txtOutputFileName' were: "c:\test.xls" "c:\test 2.xls" "test.xls" "test 2.xls" Since you didn't specify a path, I tried it with and without one. When no path was specified, it obviously used the default. 'MyDocuments' John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, August 31, 2006 7:47 PM To: Access Developers discussion and problem solving Subject: [AccessD] File Copy Dear List: When I run a chunk of code which includes: FileCopy "Cressona Template.xls", Me.txtOutputFileName it runs fine. If I run it again, however, without closing the form and reopening it (but deleting the target file specified in Me.txtOutputFileName that was created the first time), I get an error 52 - bad file number. Does anyone know why? MTIA, Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Sep 1 08:58:20 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 01 Sep 2006 06:58:20 -0700 Subject: [AccessD] File Copy In-Reply-To: <002501c6cdc8$8253a170$800101df@officexp> References: <002501c6cdc8$8253a170$800101df@officexp> Message-ID: <44F83C7C.7010300@san.rr.com> John: Unbound form. I would guess that there's something going on in my form that's not releasing the file number. I know I get this error if I try to open a file with a file number that's already in use. But with FileCopy there's no file number. For the moment I kind of went around the problem by using: Dim fs As Object Set fs = CreateObject("Scripting.FileSystemObject") fs.copyfile strExportPath & "Cressona Template.xls", Me.txtOutputFileName and that seems to work. Are there any known gotchas with file scripting? The FileCopy seemed so much mo' simpler. Thanks and Regards, Rocky John Skolits wrote: > Rocky, > > I tried this by creating an 'unbound' form and ran it multiple times and it > just kept overwriting the file with no problem. Was your form bound? > The various output files names I placed in the text box 'txtOutputFileName' > were: > "c:\test.xls" > "c:\test 2.xls" > "test.xls" > "test 2.xls" > Since you didn't specify a path, I tried it with and without one. > > When no path was specified, it obviously used the default. 'MyDocuments' > > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, August 31, 2006 7:47 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] File Copy > > Dear List: > > When I run a chunk of code which includes: > > FileCopy "Cressona Template.xls", Me.txtOutputFileName > > it runs fine. If I run it again, however, without closing the form and > reopening it (but deleting the target file specified in > Me.txtOutputFileName that was created the first time), I get an error > 52 - bad file number. > > Does anyone know why? > > MTIA, > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Lambert.Heenan at Aig.com Fri Sep 1 09:16:31 2006 From: Lambert.Heenan at Aig.com (Heenan, Lambert) Date: Fri, 1 Sep 2006 09:16:31 -0500 Subject: [AccessD] File Copy Message-ID: Maybe it's time to decompile the app. "When Access Gets Weird - Decompile" Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, September 01, 2006 9:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] File Copy John: Unbound form. I would guess that there's something going on in my form that's not releasing the file number. I know I get this error if I try to open a file with a file number that's already in use. But with FileCopy there's no file number. s For the moment I kind of went around the problem by using: Dim fs As Object Set fs = CreateObject("Scripting.FileSystemObject") fs.copyfile strExportPath & "Cressona Template.xls", Me.txtOutputFileName and that seems to work. Are there any known gotchas with file scripting? The FileCopy seemed so much mo' simpler. Thanks and Regards, Rocky John Skolits wrote: > Rocky, > > I tried this by creating an 'unbound' form and ran it multiple times > and it just kept overwriting the file with no problem. Was your form > bound? The various output files names I placed in the text box > 'txtOutputFileName' > were: > "c:\test.xls" > "c:\test 2.xls" > "test.xls" > "test 2.xls" > Since you didn't specify a path, I tried it with and without one. > > When no path was specified, it obviously used the default. > 'MyDocuments' > > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin - Beach Access Software > Sent: Thursday, August 31, 2006 7:47 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] File Copy > > Dear List: > > When I run a chunk of code which includes: > > FileCopy "Cressona Template.xls", Me.txtOutputFileName > > it runs fine. If I run it again, however, without closing the form and > reopening it (but deleting the target file specified in > Me.txtOutputFileName that was created the first time), I get an error > 52 - bad file number. > > Does anyone know why? > > MTIA, > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Sep 1 09:23:53 2006 From: askolits at ot.com (John Skolits) Date: Fri, 1 Sep 2006 10:23:53 -0400 Subject: [AccessD] File Copy In-Reply-To: <44F83C7C.7010300@san.rr.com> Message-ID: <003101c6cdd2$43749d60$6701a8c0@LaptopXP> I use both methods with good success so not sure if there are any gotchas. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, September 01, 2006 9:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] File Copy John: Unbound form. I would guess that there's something going on in my form that's not releasing the file number. I know I get this error if I try to open a file with a file number that's already in use. But with FileCopy there's no file number. For the moment I kind of went around the problem by using: Dim fs As Object Set fs = CreateObject("Scripting.FileSystemObject") fs.copyfile strExportPath & "Cressona Template.xls", Me.txtOutputFileName and that seems to work. Are there any known gotchas with file scripting? The FileCopy seemed so much mo' simpler. Thanks and Regards, Rocky John Skolits wrote: > Rocky, > > I tried this by creating an 'unbound' form and ran it multiple times and it > just kept overwriting the file with no problem. Was your form bound? > The various output files names I placed in the text box 'txtOutputFileName' > were: > "c:\test.xls" > "c:\test 2.xls" > "test.xls" > "test 2.xls" > Since you didn't specify a path, I tried it with and without one. > > When no path was specified, it obviously used the default. 'MyDocuments' > > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, August 31, 2006 7:47 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] File Copy > > Dear List: > > When I run a chunk of code which includes: > > FileCopy "Cressona Template.xls", Me.txtOutputFileName > > it runs fine. If I run it again, however, without closing the form and > reopening it (but deleting the target file specified in > Me.txtOutputFileName that was created the first time), I get an error > 52 - bad file number. > > Does anyone know why? > > MTIA, > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From scapistrant at symphonyinfo.com Fri Sep 1 11:16:21 2006 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Fri, 1 Sep 2006 11:16:21 -0500 Subject: [AccessD] CPU and locks References: <000001c6cd42$a3c2dc30$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F0103A41B@LAKATOS.Symphony.local> To: Arthur F, Marty C, Jim D, Jim L, Stuart M, Thank you for your detailed responses. I need all the ammo I can get to respond professionally to the server people about this. I'm going to google for for MSKB articles that explain this, unless any of you have specific links or Article numbers conveniently available. Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Main: 763-391-7400 ext 801 Toll Free: 888-357-1373 ext 801 Direct: 612-237-0075 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of artful at rogers.com Sent: Thu 8/31/2006 4:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CPU and locks What I have to offer may or may not be useful. Mostly it is a counter-example. I had about 70 users all hitting a TS box with 2GB of RAM, and the SQL db lived on another box. Users in several cities across North America. Never ONCE a performance problem. In fact, the sickening thing from my point of view: it was quicker to hit that remote box than to hit my local instance of exactly the same DB. We never experienced any collisions or deadlocks (polishing my nails for clever coding ), and we never suffered a performance issue or a deadlock. It simply did not happen, even once in about 4 years. I almost wish that it HAD happened so I would have a problem to investigate, but it never did. I ran the resource allocation stuff but it never presented a problem. Using TS, the initial user grabs a chunk of memory and everyone else uses re-entrant code, so the additional mem-grabs were tiny in comparison. Two GB sufficed to serve a potential 70 users (in reality, only maybe 40 were hitting the system at once, given time-zone variations etc.), but the point is that I did not have to throw heavy hardware at this problem, and everything worked beautifully. Admittedly, when 50 users were aboard, the CPU usage went way up, but that is only to be expected. More important, nobody whined about the performance delays. (Other facts of potential importance: it was an Access ADP app whose every object was driven by a sproc or udf; nothing was dynamic SQL. The server was not awesome, merely a P4 with 2GB of RAM. The OS was w2K TS with appropriate patches. The connections were all quick.We didn't bother with Citrix since TS gave us everything we needed.) Arthur ----- Original Message ---- From: Steve Capistrant To: Access Developers discussion and problem solving Sent: Thursday, August 31, 2006 4:40:47 PM Subject: [AccessD] CPU and locks Dear List, We have an Access 2000 app that has been running for years at a customer's site, provided to 100 users via Citrix profiles. In daily practice, there are usually 5 to 15 people logged in at any given time. The techies running the server are belly-aching about resource utilization. They note that CPU utlization per user zips up to 25% or 30% of server capacity when they perform routine actions (like applying filter rules to search on a form). It drops down to zero after a second or two. But they say "do the math" -- just 4 users doing stuff is going to completely max out our servers. We (our development team) are scratching our heads. This is normal for Access. It grabs as much resources as it can get to perform data access requests. And I've never heard of a server blowing up from too many simultaneous requests. Windows is designed to handle process threading reasonably well, putting things in order, assigning priorities, reserving some CPU for critical processes, etc. Nothing's really changed over the years. Is it just their awareness that has changed? Are these techies just freaking out because they have a new Performance Monitoring tool? The other observation they make that might cause overuse of CPU is something new to me: When you look at START > Control Panel > Adminstrative Tools > Computer Management > Shared Folders > Open Files.... ....they note that most of the MS Access item in this view are showing large numbers in the "# of Locks" column. Ranging from 15 to 42 each. This is something I can't explain. It's a standard FE/BE deployment, so an ldb gets generated at both the FE and BE levels. But what is this huge number of locks? Stranded ldbs? Some calculus involving the number of simultaneous users? I told them I'd explore what this meant.. Thank you ! Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Main: 763-391-7400 ext 801 Toll Free: 888-357-1373 ext 801 Direct: 612-237-0075 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Sep 1 11:45:01 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 01 Sep 2006 09:45:01 -0700 Subject: [AccessD] CPU and locks In-Reply-To: <02F5B8F3D893A845A3DF342F14D80F0103A41B@LAKATOS.Symphony.local> Message-ID: <0J4X007FOAHYK9J0@l-daemon> Hi Steve: Interesting enough you can get a 100% CPU utilization displayed, at times, if you are using Word or Excel and I suspect any other MS office product. Maybe the network guys should be focusing on eliminating all MS products from their systems.... just kidding of course. :-) And here is from the horse's mouth: http://support.microsoft.com/?kbid=160819 Pay particular attention to the second sentence. Note Microsoft Access only uses CPU resources that are idle. If your computer has other processes that are ready to run, it will run them. Microsoft Access does not decrease the performance of other applications as it polls its message queues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Friday, September 01, 2006 9:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CPU and locks To: Arthur F, Marty C, Jim D, Jim L, Stuart M, Thank you for your detailed responses. I need all the ammo I can get to respond professionally to the server people about this. I'm going to google for for MSKB articles that explain this, unless any of you have specific links or Article numbers conveniently available. Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Main: 763-391-7400 ext 801 Toll Free: 888-357-1373 ext 801 Direct: 612-237-0075 From bchacc at san.rr.com Sat Sep 2 10:19:52 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 2 Sep 2006 08:19:52 -0700 Subject: [AccessD] OT: Old Printers Message-ID: <002201c6cea3$3ce04680$6901a8c0@HAL9005> Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky From jmhecht at earthlink.net Sat Sep 2 10:28:25 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sat, 2 Sep 2006 08:28:25 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: <002201c6cea3$3ce04680$6901a8c0@HAL9005> Message-ID: Good Morning Rocky, Do you a worthwhile group that is doing multi copy forms. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Saturday, September 02, 2006 8:20 AM To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Sep 2 10:33:50 2006 From: artful at rogers.com (artful at rogers.com) Date: Sat, 2 Sep 2006 08:33:50 -0700 (PDT) Subject: [AccessD] OT: Old Printers In-Reply-To: <002201c6cea3$3ce04680$6901a8c0@HAL9005> Message-ID: <20060902153350.34832.qmail@web88212.mail.re2.yahoo.com> There is a place here in Canada where people can donate old equipment, and they recycle it and send it to the Third World, I believe. There must be some equivalent in the USA. ----- Original Message ---- From: Beach Access Software To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Sent: Saturday, September 2, 2006 11:19:52 AM Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Sep 2 10:44:30 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 2 Sep 2006 08:44:30 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS08kGyAA Message-ID: <002d01c6cea6$adce28a0$6901a8c0@HAL9005> Dumping them is no problem. Goodwill will take them and either refurbish them and they'll find a new life somewhere or recycle them. I was just casting about for some useful alternative. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Saturday, September 02, 2006 8:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Old Printers There is a place here in Canada where people can donate old equipment, and they recycle it and send it to the Third World, I believe. There must be some equivalent in the USA. ----- Original Message ---- From: Beach Access Software To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Sent: Saturday, September 2, 2006 11:19:52 AM Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Sep 2 10:46:12 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 2 Sep 2006 08:46:12 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS08EGyAA Message-ID: <002e01c6cea6$eaa39580$6901a8c0@HAL9005> Easier said than done when IJ and Lasers are so cheap. Mutely-part? Just print three copies. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 02, 2006 8:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers Good Morning Rocky, Do you a worthwhile group that is doing multi copy forms. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Saturday, September 02, 2006 8:20 AM To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Sep 2 10:57:34 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 2 Sep 2006 08:57:34 -0700 Subject: [AccessD] OT: Thunderbird to Outlook Message-ID: <003301c6cea8$815dbef0$6901a8c0@HAL9005> Dear List(s): Does anyone know a way to transfer all of the email I've got in Thunderbird to Outlook? I've checked the web and can't find anything useful. MTIA Rocky From kathryn at bassett.net Sat Sep 2 11:54:00 2006 From: kathryn at bassett.net (Kathryn Bassett) Date: Sat, 2 Sep 2006 09:54:00 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: <002201c6cea3$3ce04680$6901a8c0@HAL9005> Message-ID: <001c01c6ceb0$63755e40$6501a8c0@Kathryn> http://groups.yahoo.com/group/SDFreecycle/ I've given away lots of stuff through Freecycle - I'm member of both the San Gabriel Valley list and the Arcadia list. Join the San Diego one, and ask if there is also one for Del Mar or north county etc. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Beach Access Software > Sent: 02 Sep 2006 8:20 am > To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com > Subject: [AccessD] OT: Old Printers > > Dear List(s): > > > > I've got two old dot matrix printers in the garage - Okidata > - one narrow one wide carriage. Gathering dust. I keep > looking at them thinking they should have some useful life - > they're great workhorses - cheap to run (bit noisy if you > remember). I'm thinking they go to Goodwill today along with > the extra CRT monitors and the old NEC laser printer taking > up space in the garage as well. > > > > What can be done with a wonderful but obsolete dot matrix printer? > > > > Rocky > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cclenright at yahoo.com Sat Sep 2 13:04:48 2006 From: cclenright at yahoo.com (Chris Enright) Date: Sat, 2 Sep 2006 11:04:48 -0700 (PDT) Subject: [AccessD] Where is the Zip Drive? In-Reply-To: Message-ID: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn?t where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn?t tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please don?t laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------------- Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. From bill_Patten at earthlink.net Sat Sep 2 13:20:37 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Sat, 2 Sep 2006 11:20:37 -0700 Subject: [AccessD] Where is the Zip Drive? References: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> Message-ID: <001e01c6cebc$7d7aa140$6401a8c0@BPCS> Hi Chris, Will this help? Its from the API Guide 2.7, you could loop through the drives till there where non and When Z for example came back as "backup" or what ever it is You would know. Private Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long Private Sub Form_Load() 'KPD-Team 1998 'URL: http://www.allapi.net/ 'E-Mail: KPDTeam at Allapi.net 'Set the graphic mode to persistent Me.AutoRedraw = True 'Get information about the C:\ Select Case GetDriveType("C:\") Case 2 Me.Print "Removable" Case 3 Me.Print "Drive Fixed" Case Is = 4 Me.Print "Remote" Case Is = 5 Me.Print "Cd-Rom" Case Is = 6 Me.Print "Ram disk" Case Else Me.Print "Unrecognized" End Select End Sub ----- Original Message ----- From: "Chris Enright" To: "Access Developers discussion and problem solving" Sent: Saturday, September 02, 2006 11:04 AM Subject: [AccessD] Where is the Zip Drive? The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn't where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn't tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please don't laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------------- Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Sep 2 14:00:51 2006 From: artful at rogers.com (artful at rogers.com) Date: Sat, 2 Sep 2006 12:00:51 -0700 (PDT) Subject: [AccessD] Where is the Zip Drive? In-Reply-To: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> Message-ID: <20060902190051.10283.qmail@web88212.mail.re2.yahoo.com> One thing that you could do fairly easily is create a table in the BE with exactly one row, and call it SysParameters or somesuch. Place a column in said table that would house the path to the backup instrument. Given that you have two variables, one indicating the name of the FE and the other indicating the path to the backup, you might want to add both columns to the SysParameters table. There are several schools of thought as to how to retrieve these values from the SysParameters table. A colleague of mine likes to drop some invisible controls on his Switchboard form, and draw the values into said controls using Dlookup(). I am not a fan of this approach; I prefer to use static functions (which are functions that retain their value between calls). JWC will tell you that the best approach is a class. Ultimately, it doesn't matter which path you select. The goal is to move the specifics out of your code and into a table. You could even fancy this up by running some code in the startup that looks in this table to see if these values are null, and if so it presents a form asking the user to name these objects (the FE and the target BU path). Your code ultimately needs to anticipate every possible drive/dir combination. For example, my main squeeze has 3 USB ports and depending on the day, who knows what's plugged into which port? Could be a digital camera, could be one of my two memory sticks. And conceivably I could be pointing to my DVD writer, which happens not to be on my main squeeze but instead is mapped. That's why I like the SysParameters approach. The user can set her situation up and be done with it, and if she happens to acquire a new DVD writer, she just visits this form, fixes the pointer and that is that. hth. Arthur ----- Original Message ---- From: Chris Enright To: Access Developers discussion and problem solving Sent: Saturday, September 2, 2006 2:04:48 PM Subject: [AccessD] Where is the Zip Drive? The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isnt where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didnt tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please dont laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------------- Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sat Sep 2 14:09:48 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 02 Sep 2006 12:09:48 -0700 Subject: [AccessD] Where is the Zip Drive? In-Reply-To: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> References: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> Message-ID: <44F9D6FC.5000801@shaw.ca> running sub checkavailabledrives should indicate a zip drive as a "Removable drive." and its path like so Path A:\ Drive Type Floppy drive. Path C:\ Drive Type Hard drive; can not be removed. Path D:\ Drive Type CD-ROM drive. Path E:\ Drive Type Hard drive; can not be removed. Public Declare Function GetLogicalDriveStrings Lib "kernel32" _ Alias "GetLogicalDriveStringsA" _ (ByVal nBufferLength As Long, _ ByVal lpBuffer As String) As Long Public Declare Function GetDriveType Lib "kernel32" _ Alias "GetDriveTypeA" _ (ByVal nDrive As String) As Long 'drive type constants Public Const DRIVE_REMOVABLE As Long = 2 Public Const DRIVE_FIXED As Long = 3 Public Const DRIVE_REMOTE As Long = 4 Public Const DRIVE_CDROM As Long = 5 Public Const DRIVE_RAMDISK As Long = 6 Public Sub CheckAvailableDrives() Dim lpBuffer As String 'get list of available drives lpBuffer = GetDriveString() 'Separate the drive strings 'and add to the combo. StripNulls 'will continually shorten the 'string. Loop until a single 'remaining terminating null is 'encountered. Do Until lpBuffer = Chr$(0) Dim strDrive As String 'strip off one drive item 'and add to the combo strDrive = StripNull(lpBuffer) Debug.Print "Path " & strDrive & " Drive Type " & rgbGetDriveType(strDrive) Loop End Sub Private Function rgbGetDriveType(RootPathName As String) As String 'returns the type of drive. Select Case GetDriveType(RootPathName) Case 0: rgbGetDriveType = "The drive type cannot be determined." Case 1: rgbGetDriveType = "The root directory does not exist." Case DRIVE_REMOVABLE: Select Case Left(RootPathName, 1) Case "a", "b": rgbGetDriveType = "Floppy drive." Case Else: rgbGetDriveType = "Removable drive." End Select Case DRIVE_FIXED: rgbGetDriveType = "Hard drive; can not be removed." Case DRIVE_REMOTE: rgbGetDriveType = "Remote (network) drive." Case DRIVE_CDROM: rgbGetDriveType = "CD-ROM drive." Case DRIVE_RAMDISK: rgbGetDriveType = "RAM disk." End Select End Function Public Function GetDriveString() As String 'returns string of available 'drives each separated by a null Dim sBuffer As String 'possible 26 drives, three characters each, plus trailing null sBuffer = Space$(26 * 4) If GetLogicalDriveStrings(Len(sBuffer), sBuffer) Then 'do not trim off trailing null! GetDriveString = Trim$(sBuffer) End If End Function Function StripNull(startStrg As String) As String 'Take a string separated by Chr(0)'s, and split off 1 item, and 'shorten the string so that the next item is ready for removal. Dim pos As Integer pos = InStr(startStrg, Chr$(0)) If pos Then StripNull = Mid(startStrg, 1, pos - 1) startStrg = Mid(startStrg, pos + 1, Len(startStrg)) End If End Function Chris Enright wrote: >The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J > > I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. > > Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. > > My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) > > However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn?t where I programmed it. > > The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn?t tell me what he had done) tracking down a problem on a new installation. > > Below is my, very crude, (please don?t laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? > > TIA > > Chris > > {Oh I am embarrassed about showing my code to you lot} > > ---------------------------------------------------------------------------------- > > Private Function Backup() > > Dim strNewDBName As String > Dim strOldDbName As String > Dim fso > Dim file As String > Dim msg As String > > On Error GoTo Err_Backup > > DoCmd.Hourglass True > > ' copy database > strOldDbName = "C:\Startan\Startan BE.mdb" > strNewDBName = "D:\BuExp.mdb" > FileCopy strOldDbName, strNewDBName > > ' if a previous backup exists then delete it > file = "D:\StartanBU.mdb" > Set fso = CreateObject("Scripting.FileSystemObject") > If fso.FileExists(file) Then > fso.DeleteFile file, True > End If > > ' rename backup database > Name strNewDBName As file > > DoCmd.Hourglass False > > Exit_Backup: > Exit Function > > Err_Backup: > msg = "Make sure the Zip Disk is in the computer " '& Chr(10) > msg = msg & "and that the drive lights have stopped flashing " > msg = msg & "and then press Enter" > MsgBox msg > Resume > > End Function > > > > > Still blushing, going for a drink!! > > > Chris > > > >--------------------------------- >Stay in the know. Pulse on the new Yahoo.com. Check it out. > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Sat Sep 2 15:07:02 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 02 Sep 2006 13:07:02 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: <002201c6cea3$3ce04680$6901a8c0@HAL9005> Message-ID: <0J4Z001RIEIJHXM1@l-daemon> Rocky: Oddly enough may of my clients use them in the counter sales. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Saturday, September 02, 2006 8:20 AM To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Sep 2 15:33:09 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 02 Sep 2006 13:33:09 -0700 Subject: [AccessD] Where is the Zip Drive? In-Reply-To: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> Message-ID: <0J4Z001M5FQ2HXO1@l-daemon> Chris: If it works, you're an expert. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Saturday, September 02, 2006 11:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] Where is the Zip Drive? The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn't where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn't tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please don't laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------- ------ Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Sat Sep 2 17:39:36 2006 From: kismert at gmail.com (Ken Ismert) Date: Sat, 02 Sep 2006 17:39:36 -0500 Subject: [AccessD] OT: Thunderbird to Outlook Message-ID: <44FA0828.7080406@gmail.com> Rocky, Thunderbird stores its email in a plain text file format, which should be directly importable to Outlook using the Eudora setting. See: How do I export e-mail messages to another mail program or computer? http://www.mozilla.org/support/thunderbird/faq#q2.10 -Ken From cclenright at yahoo.com Sun Sep 3 05:44:27 2006 From: cclenright at yahoo.com (Chris Enright) Date: Sun, 3 Sep 2006 03:44:27 -0700 (PDT) Subject: [AccessD] Where is the Zip Drive? In-Reply-To: <0J4Z001M5FQ2HXO1@l-daemon> Message-ID: <20060903104427.40119.qmail@web34314.mail.mud.yahoo.com> I wish!! I seem to remember the definition of expert: x is an unknown quantity spurt is a drip under pressure or An expert is someone who knows more and more about less and less until in the end he knows everything about nothing! Jim Lawrence wrote: Chris: If it works, you're an expert. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Saturday, September 02, 2006 11:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] Where is the Zip Drive? The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn't where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn't tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please don't laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------- ------ Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. From rbgajewski at adelphia.net Sun Sep 3 16:20:24 2006 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Sun, 3 Sep 2006 17:20:24 -0400 Subject: [AccessD] Where is the Zip Drive? In-Reply-To: <20060903104427.40119.qmail@web34314.mail.mud.yahoo.com> Message-ID: <001001c6cf9e$c57fb060$bd00a8c0@DG1P2N21> You're close, Chris, but the "ex" part really stands for "has-been". Bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Sunday, September 03, 2006 06:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Where is the Zip Drive? I wish!! I seem to remember the definition of expert: x is an unknown quantity spurt is a drip under pressure or An expert is someone who knows more and more about less and less until in the end he knows everything about nothing! Jim Lawrence wrote: Chris: If it works, you're an expert. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Saturday, September 02, 2006 11:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] Where is the Zip Drive? The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn't where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn't tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please don't laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------- ------ Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Sep 4 14:21:35 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 12:21:35 -0700 Subject: [AccessD] OT: AV and the New Box Message-ID: <002d01c6d057$56a390d0$6701a8c0@HAL9005> Dear list: I got a new machine that came pre-loaded with McAfee. It seems to be pretty well laced into the whole OS. I'm considering removing the entire thing. I'll put in AVG for anti-virus and Sygate for firewall. I'm also considering forgetting about the firewall and I'm already behind a hardware firewall with the router. So software firewall seems redundant and may cause more problems than it solves. Any opinions? Rocky From bchacc at san.rr.com Mon Sep 4 14:24:00 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 12:24:00 -0700 Subject: [AccessD] OT: Thunderbird to Outlook In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS09kIyAA Message-ID: <003201c6d057$ad219830$6701a8c0@HAL9005> I may give that a try. However, I'm questioning the whole assumption that I need all that email transferred. I'm not sure why I keep it. In six months I'll have another pile of it on the new machine. What does everybody do with email? Keep it all forever? Delete it as you go? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Saturday, September 02, 2006 3:40 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Thunderbird to Outlook Rocky, Thunderbird stores its email in a plain text file format, which should be directly importable to Outlook using the Eudora setting. See: How do I export e-mail messages to another mail program or computer? http://www.mozilla.org/support/thunderbird/faq#q2.10 -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 4 15:11:35 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 4 Sep 2006 16:11:35 -0400 Subject: [AccessD] OT: Thunderbird to Outlook References: <003201c6d057$ad219830$6701a8c0@HAL9005> Message-ID: <000701c6d05e$53738260$153ce944@50NM721> ...I routinely transfer what I consider "keeper" stuff to into separate folders ...every couple of weeks I go through the other folders and do mass deletes ...when time permits I go through the keeper folders like "Access" and edit out the code or ideas or links and transfer them into a Treepad txt database that makes finding and using them so much simpler ...then I clean out those folders as well. ...takes some time but the stuff that I get off lists like this has saved me so many more hours than it took to archive it ...often enough the stuff I save isn't currently useful, but then along comes another tid-bit and the lightbulb comes on and the two or three pieces together add up to something really useful. William Hindman ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 04, 2006 3:24 PM Subject: Re: [AccessD] OT: Thunderbird to Outlook >I may give that a try. However, I'm questioning the whole assumption that >I > need all that email transferred. I'm not sure why I keep it. In six > months > I'll have another pile of it on the new machine. > > What does everybody do with email? Keep it all forever? Delete it as you > go? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert > Sent: Saturday, September 02, 2006 3:40 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: Thunderbird to Outlook > > Rocky, > > Thunderbird stores its email in a plain text file format, which should > be directly importable to Outlook using the Eudora setting. See: > > How do I export e-mail messages to another mail program or computer? > http://www.mozilla.org/support/thunderbird/faq#q2.10 > > -Ken > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Mon Sep 4 15:18:47 2006 From: artful at rogers.com (artful at rogers.com) Date: Mon, 4 Sep 2006 13:18:47 -0700 (PDT) Subject: [AccessD] OT: AV and the New Box In-Reply-To: <002d01c6d057$56a390d0$6701a8c0@HAL9005> Message-ID: <20060904201847.47298.qmail@web88205.mail.re2.yahoo.com> I did too. And also behind the firewall built into my LinkSys router. ----- Original Message ---- From: Beach Access Software To: accessd at databaseadvisors.com Sent: Monday, September 4, 2006 3:21:35 PM Subject: [AccessD] OT: AV and the New Box Dear list: I got a new machine that came pre-loaded with McAfee. It seems to be pretty well laced into the whole OS. I'm considering removing the entire thing. I'll put in AVG for anti-virus and Sygate for firewall. From artful at rogers.com Mon Sep 4 15:20:55 2006 From: artful at rogers.com (artful at rogers.com) Date: Mon, 4 Sep 2006 13:20:55 -0700 (PDT) Subject: [AccessD] OT: Thunderbird to Outlook In-Reply-To: <003201c6d057$ad219830$6701a8c0@HAL9005> Message-ID: <20060904202055.25653.qmail@web88207.mail.re2.yahoo.com> Speaking only for myself, I stopped keeping any of it locally. It's all on some box owned by yahoo. Arthur ----- Original Message ---- From: Beach Access Software To: Access Developers discussion and problem solving Sent: Monday, September 4, 2006 3:24:00 PM Subject: Re: [AccessD] OT: Thunderbird to Outlook I may give that a try. However, I'm questioning the whole assumption that I need all that email transferred. I'm not sure why I keep it. In six months I'll have another pile of it on the new machine. What does everybody do with email? Keep it all forever? Delete it as you go? Rocky From bchacc at san.rr.com Mon Sep 4 15:50:32 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 13:50:32 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS09EISAA Message-ID: <004301c6d063$c56f1910$6701a8c0@HAL9005> One's a Panasonic KX-P1524, the other is a KX-P2123. Both vintage printers from the 80s. Don't suppose there's any interest? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, September 02, 2006 1:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers Rocky: Oddly enough may of my clients use them in the counter sales. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Saturday, September 02, 2006 8:20 AM To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Sep 4 15:57:02 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 13:57:02 -0700 Subject: [AccessD] OT: AV and the New Box In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS0+EPyAA Message-ID: <004901c6d064$abf476f0$6701a8c0@HAL9005> You did? Delete McAfee? Use AVG and/or Sygate? Can a software firewall do anything that a hardware firewall would miss? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, September 04, 2006 1:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: AV and the New Box I did too. And also behind the firewall built into my LinkSys router. ----- Original Message ---- From: Beach Access Software To: accessd at databaseadvisors.com Sent: Monday, September 4, 2006 3:21:35 PM Subject: [AccessD] OT: AV and the New Box Dear list: I got a new machine that came pre-loaded with McAfee. It seems to be pretty well laced into the whole OS. I'm considering removing the entire thing. I'll put in AVG for anti-virus and Sygate for firewall. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 4 16:08:23 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 4 Sep 2006 17:08:23 -0400 Subject: [AccessD] OT: Old Printers References: <004301c6d063$c56f1910$6701a8c0@HAL9005> Message-ID: <005801c6d066$425ab400$153ce944@50NM721> ...join your local freecycle group ...there is always someone who thinks your trash is really treasure ...I joined the one here and it actually works ...besides the things I've picked up myself, its amazing how quickly people will run over to pick something up that you would have otherwise thrown out. http://www.freecycle.org/ William Hindman ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 04, 2006 4:50 PM Subject: Re: [AccessD] OT: Old Printers > One's a Panasonic KX-P1524, the other is a KX-P2123. Both vintage > printers > from the 80s. Don't suppose there's any interest? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Saturday, September 02, 2006 1:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Old Printers > > Rocky: Oddly enough may of my clients use them in the counter sales. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access > Software > Sent: Saturday, September 02, 2006 8:20 AM > To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com > Subject: [AccessD] OT: Old Printers > > Dear List(s): > > > > I've got two old dot matrix printers in the garage - Okidata - one narrow > one wide carriage. Gathering dust. I keep looking at them thinking they > should have some useful life - they're great workhorses - cheap to run > (bit > noisy if you remember). I'm thinking they go to Goodwill today along with > the extra CRT monitors and the old NEC laser printer taking up space in > the > garage as well. > > > > What can be done with a wonderful but obsolete dot matrix printer? > > > > Rocky > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Mon Sep 4 16:09:04 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 4 Sep 2006 16:09:04 -0500 Subject: [AccessD] OT: AV and the New Box Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDCFC@MARLOW_MAIN2.marlow.com> A software firewall will alert you as to what is coming in and out. But that's about it. Usually software firewalls are a little easier to configure, depending on what you are using. In the consumer world they are, but the industrial routers have capabilities that would make ya drool! ;) Drew -----Original Message----- From: Beach Access Software [mailto:bchacc at san.rr.com] Sent: Monday, September 04, 2006 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: AV and the New Box You did? Delete McAfee? Use AVG and/or Sygate? Can a software firewall do anything that a hardware firewall would miss? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, September 04, 2006 1:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: AV and the New Box I did too. And also behind the firewall built into my LinkSys router. ----- Original Message ---- From: Beach Access Software To: accessd at databaseadvisors.com Sent: Monday, September 4, 2006 3:21:35 PM Subject: [AccessD] OT: AV and the New Box Dear list: I got a new machine that came pre-loaded with McAfee. It seems to be pretty well laced into the whole OS. I'm considering removing the entire thing. I'll put in AVG for anti-virus and Sygate for firewall. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 4 16:11:46 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 4 Sep 2006 17:11:46 -0400 Subject: [AccessD] OT: AV and the New Box References: <004901c6d064$abf476f0$6701a8c0@HAL9005> Message-ID: <000301c6d066$bbb46080$153ce944@50NM721> ...unfortunately, yes http://www.smallbusinesscomputing.com/webmaster/article.php/3103431 William Hindman ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 04, 2006 4:57 PM Subject: Re: [AccessD] OT: AV and the New Box > You did? Delete McAfee? Use AVG and/or Sygate? > > Can a software firewall do anything that a hardware firewall would miss? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Monday, September 04, 2006 1:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: AV and the New Box > > I did too. And also behind the firewall built into my LinkSys router. > > ----- Original Message ---- > From: Beach Access Software > To: accessd at databaseadvisors.com > Sent: Monday, September 4, 2006 3:21:35 PM > Subject: [AccessD] OT: AV and the New Box > > Dear list: > I got a new machine that came pre-loaded with McAfee. It seems to be > pretty > well laced into the whole OS. I'm considering removing the entire thing. > I'll put in AVG for anti-virus and Sygate for firewall. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Mon Sep 4 16:26:11 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 04 Sep 2006 14:26:11 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: <004301c6d063$c56f1910$6701a8c0@HAL9005> Message-ID: <0J53004617I6NQ60@l-daemon> Rocky, you can still buy all the ribbons you want. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, September 04, 2006 1:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers One's a Panasonic KX-P1524, the other is a KX-P2123. Both vintage printers from the 80s. Don't suppose there's any interest? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, September 02, 2006 1:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers Rocky: Oddly enough may of my clients use them in the counter sales. Jim From bchacc at san.rr.com Mon Sep 4 16:32:45 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 14:32:45 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS0/kQSAA Message-ID: <004a01c6d069$a975a200$6701a8c0@HAL9005> Oh, fabulous. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 04, 2006 2:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers Rocky, you can still buy all the ribbons you want. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, September 04, 2006 1:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers One's a Panasonic KX-P1524, the other is a KX-P2123. Both vintage printers from the 80s. Don't suppose there's any interest? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, September 02, 2006 1:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers Rocky: Oddly enough may of my clients use them in the counter sales. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Sep 4 16:44:56 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 05 Sep 2006 07:44:56 +1000 Subject: [AccessD] OT: AV and the New Box In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BDCFC@MARLOW_MAIN2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1BDCFC@MARLOW_MAIN2.marlow.com> Message-ID: <44FD2AF8.9631.168D9D0B@stuart.lexacorp.com.pg> On 4 Sep 2006 at 16:09, DWUTKA at marlow.com wrote: > A software firewall will alert you as to what is coming in and out. But > that's about it. Usually software firewalls are a little easier to > configure, depending on what you are using. In the consumer world they are, > but the industrial routers have capabilities that would make ya drool! ;) Software firewalls also allow you to control what *applications* can go in and out. For example a standard hardware router will be allowing traffic on Port 80(HTTP), 25(SMTP mail) and 21(FTP). It won't control what applications use these ports. A decent software firewall, allows you to deteremine what any specific application can do and will tell you if any un-authorised application such as a virus or trojan tries to use one of these ports. I advise people to use both. -- Stuart From bchacc at san.rr.com Mon Sep 4 23:32:09 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 21:32:09 -0700 Subject: [AccessD] OT: AV and the New Box In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS0/EQiAA Message-ID: <005a01c6d0a4$40640af0$6701a8c0@HAL9005> OK. Done. Tomorrow - goodbye McAfee, hello Sygate and AVG. Thanks to all and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 04, 2006 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: AV and the New Box On 4 Sep 2006 at 16:09, DWUTKA at marlow.com wrote: > A software firewall will alert you as to what is coming in and out. But > that's about it. Usually software firewalls are a little easier to > configure, depending on what you are using. In the consumer world they are, > but the industrial routers have capabilities that would make ya drool! ;) Software firewalls also allow you to control what *applications* can go in and out. For example a standard hardware router will be allowing traffic on Port 80(HTTP), 25(SMTP mail) and 21(FTP). It won't control what applications use these ports. A decent software firewall, allows you to deteremine what any specific application can do and will tell you if any un-authorised application such as a virus or trojan tries to use one of these ports. I advise people to use both. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Tue Sep 5 14:21:18 2006 From: kismert at gmail.com (Ken Ismert) Date: Tue, 05 Sep 2006 14:21:18 -0500 Subject: [AccessD] OT: Thunderbird to Outlook Message-ID: <44FDCE2E.4090202@gmail.com> Rocky, >What does everybody do with email? Keep it all forever? >Delete it as you go? You can setup Thunderbird to auto-delete old emails from a folder. Right-click on a folder, and select Properties. In the Folder Properties dialog, select the Retention Policy tab. From there you can set the maximum number or age of emails to keep. I set a limit of 30 days on most of my email digest subscriptions. Anything older and I rely on DatabaseAdvisors search. -Ken From dw-murphy at cox.net Tue Sep 5 14:27:57 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 5 Sep 2006 12:27:57 -0700 Subject: [AccessD] OT: AV and the New Box In-Reply-To: <005a01c6d0a4$40640af0$6701a8c0@HAL9005> Message-ID: <005901c6d121$64871c60$0200a8c0@murphy3234aaf1> Hi folks, I have been using Access 2003 now for about 4 months. Tried to create a form this morning and put a tab control on it with the background set to transparent. Even though the background property on the control says it is transparent, the background does not change from the default white. As I recollect in XP and 2000 the tab control work area would turn transparent if the transparent property was set. Is this some new feature with Access 2003, a bug, or am I missing something? Thanks in advance for any information on this. Doug From dw-murphy at cox.net Tue Sep 5 14:35:20 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 5 Sep 2006 12:35:20 -0700 Subject: [AccessD] Access 2003 Tab Control visibility In-Reply-To: <005901c6d121$64871c60$0200a8c0@murphy3234aaf1> Message-ID: <005e01c6d122$6c9ab7d0$0200a8c0@murphy3234aaf1> All, Sorry about the subject not being on subject in my previous post. To creat a new message to this group I usually just respond to a previous message, but change the subject. In any case I found my problem with the tab control. The "Use Windows Themed Controls on Forms" item was checked in the Options group. Unchecked it and now my tab is transparent. Maybe this will save someone else some trouble. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 05, 2006 12:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: AV and the New Box Hi folks, I have been using Access 2003 now for about 4 months. Tried to create a form this morning and put a tab control on it with the background set to transparent. Even though the background property on the control says it is transparent, the background does not change from the default white. As I recollect in XP and 2000 the tab control work area would turn transparent if the transparent property was set. Is this some new feature with Access 2003, a bug, or am I missing something? Thanks in advance for any information on this. Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Tue Sep 5 14:55:09 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 5 Sep 2006 12:55:09 -0700 Subject: [AccessD] A97 and confused??? In-Reply-To: Message-ID: Mark, Did you ever get the answer to this? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, August 22, 2006 7:23 AM To: accessd at databaseadvisors.com Subject: [AccessD] A97 and confused??? Hello All, I have a table with 147 rows. If I open the table...there are no filters...only 147 rows. If I run a MakeTable or an APPEND query based on this table I get 147 rows...If I display the datasheet view of "DELETE tblPostCardList.* FROM tblPostCardList;"...I get 147 rows...but if I execute this exact same SQL...the message is I'm about to delete 3723 rows??? I haven't clicked yes...not really too concerned...just repair and compact...but very curious if anyone has an understanding/explanation of this? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Sep 6 01:15:24 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 06 Sep 2006 06:15:24 +0000 Subject: [AccessD] A97 and confused??? Message-ID: Hey Joe, I got some opinions...I knew if I actually executed the query...or compacted...it would be back to normal...and it was...but the consencus was that Access just remembers how many rows used to be there...and it got confused? I was just curious if anyone KNEW the answer definitively. Thanks, Mark A. Matte >From: "Joe Hecht" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 and confused??? >Date: Tue, 5 Sep 2006 12:55:09 -0700 > >Mark, > >Did you ever get the answer to this? > > >Joe Hecht >jmhecht at earthlink.net > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Tuesday, August 22, 2006 7:23 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 and confused??? > >Hello All, > >I have a table with 147 rows. If I open the table...there are no >filters...only 147 rows. If I run a MakeTable or an APPEND query based on >this table I get 147 rows...If I display the datasheet view of "DELETE >tblPostCardList.* FROM tblPostCardList;"...I get 147 rows...but if I >execute >this exact same SQL...the message is I'm about to delete 3723 rows??? I >haven't clicked yes...not really too concerned...just repair and >compact...but very curious if anyone has an understanding/explanation of >this? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Sep 6 01:18:29 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 06 Sep 2006 06:18:29 +0000 Subject: [AccessD] OT: Tucson anyone? Message-ID: Hello All, I'm visiting Tucson, AZ for the week...Anyone up for lunch, dinner, or beverages (billiards prefered)...let me know. Mark A. Matte 336/253-5270 From bchacc at san.rr.com Wed Sep 6 08:37:16 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 6 Sep 2006 06:37:16 -0700 Subject: [AccessD] App Not Digitally Signed Message-ID: <002401c6d1b9$953262a0$6701a8c0@HAL9005> Dear List: I sent an app over to my distributor in Taiwan, an mde. She cannot run it because she gets a message ?Cannot Open (app name) due to security restrictions. Security settings restrict access to the file because it is not digitally signed.? I?m sure it has to do with some setting on her machine because the client who is using it in Shanghai has no problem. Is this the Macro-->Security setting or some other setting? MTIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 From bchacc at san.rr.com Wed Sep 6 08:57:17 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 6 Sep 2006 06:57:17 -0700 Subject: [AccessD] OT: Thunderbird to Outlook In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS0+EVyAA Message-ID: <002a01c6d1bc$5e355c50$6701a8c0@HAL9005> I have a few clients that I just keep everything on. With the stuff in the Send folder it provides a history of the activities. Those are the ones that I am thinking of shifting over to Outlook. But when I try the import from machine 2, the folder I point to on machine 1 with the email doesn't allow access. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Tuesday, September 05, 2006 12:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Thunderbird to Outlook Rocky, >What does everybody do with email? Keep it all forever? >Delete it as you go? You can setup Thunderbird to auto-delete old emails from a folder. Right-click on a folder, and select Properties. In the Folder Properties dialog, select the Retention Policy tab. From there you can set the maximum number or age of emails to keep. I set a limit of 30 days on most of my email digest subscriptions. Anything older and I rely on DatabaseAdvisors search. -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 From bchacc at san.rr.com Wed Sep 6 08:58:13 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 6 Sep 2006 06:58:13 -0700 Subject: [AccessD] OT: AV and the New Box In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS0/EQiAA Message-ID: <002b01c6d1bc$7ee5bd00$6701a8c0@HAL9005> So I got rid of McAfee which seemed to have itself laced into WXP pretty good (like 6-7 different applications), and replaced with AVG and Sygate. Things seem to run more smoothly now. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 04, 2006 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: AV and the New Box On 4 Sep 2006 at 16:09, DWUTKA at marlow.com wrote: > A software firewall will alert you as to what is coming in and out. But > that's about it. Usually software firewalls are a little easier to > configure, depending on what you are using. In the consumer world they are, > but the industrial routers have capabilities that would make ya drool! ;) Software firewalls also allow you to control what *applications* can go in and out. For example a standard hardware router will be allowing traffic on Port 80(HTTP), 25(SMTP mail) and 21(FTP). It won't control what applications use these ports. A decent software firewall, allows you to deteremine what any specific application can do and will tell you if any un-authorised application such as a virus or trojan tries to use one of these ports. I advise people to use both. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 From wdhindman at dejpolsystems.com Wed Sep 6 09:23:06 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 6 Sep 2006 10:23:06 -0400 Subject: [AccessD] App Not Digitally Signed References: <002401c6d1b9$953262a0$6701a8c0@HAL9005> Message-ID: <002b01c6d1bf$f93ef7d0$153ce944@50NM721> ...its the macro security ...if she sets it to low the app should run. ...you can add a digital signature to your app to resolve this issue ...but be aware that if you do then modifying any action queries in code may break your app. William Hindman ----- Original Message ----- From: "Beach Access Software" To: Sent: Wednesday, September 06, 2006 9:37 AM Subject: [AccessD] App Not Digitally Signed > Dear List: > > > > I sent an app over to my distributor in Taiwan, an mde. She cannot run it > because she gets a message ?Cannot Open (app name) due to security > restrictions. Security settings restrict access to the file because it is > not digitally signed.? > > > > I?m sure it has to do with some setting on her machine because the client > who is using it in Shanghai has no problem. > > > > Is this the Macro-->Security setting or some other setting? > > > > MTIA > > > > Rocky > > > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Wed Sep 6 15:35:21 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 6 Sep 2006 15:35:21 -0500 Subject: [AccessD] OT: What exactly, do Date Modified, Date Created, and Date Accessed really mean? Message-ID: <007001c6d1f3$f9ff8b10$0200a8c0@danwaters> I want to list the files in a folder on a form so a user can select the file they want to open. I can list these three dates to help give more info, but they don't seem to make sense. I think I see that Modified can be earlier than Created if the file was a copy and hadn't been modified since the copy action. But what does Date Accessed mean? I opened a file, looked at it, then closed it w/o changes. The Date Accessed did not change. I did a Google search, but nothing helpful showed up. Thanks! Dan From dajomigo at tpg.com.au Wed Sep 6 17:09:57 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Thu, 07 Sep 2006 08:09:57 +1000 Subject: [AccessD] Updating a bound image using VBA In-Reply-To: References: <004301c67958$7a683350$6601a8c0@office> Message-ID: <6.2.1.2.2.20060907071131.03eae2f8@mail.tpg.com.au> I have a form for entering new movie stock into a Video Library database. This form also allows the user to update details for all copies of the title. Because of this the data is updated using code. One of the fields in the table is an image field. The code I am using is: 'Update Movie Title Details Dim rsUpdateMovieTitleDetails As Recordset Dim strMovieName As String strMovieName = Forms![frmAddNewMovieStock]![cboSelectMovieTitle] Set rsUpdateMovieTitleDetails = New ADODB.Recordset rsUpdateMovieTitleDetails.ActiveConnection = CurrentProject.Connection rsUpdateMovieTitleDetails.Open "tblTitles", , adOpenKeyset, adLockOptimistic, adCmdTable 'Loop through the recordset Do Until rsUpdateMovieTitleDetails.EOF If rsUpdateMovieTitleDetails.Fields("name") = strMovieName Then rsUpdateMovieTitleDetails.Fields("supplier") = Me.supplier rsUpdateMovieTitleDetails.Fields("rating") = Me.rating rsUpdateMovieTitleDetails.Fields("categoryName") = Me.categoryName rsUpdateMovieTitleDetails.Fields("RentalTypeID") = Me.RentalTypeID rsUpdateMovieTitleDetails.Fields("cover") = Me.oleCover End If rsUpdateMovieTitleDetails.MoveNext Loop rsUpdateMovieTitleDetails.Close I keep getting this error message: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. Can anyone explain to me what I can do about this? TIA David Gould DG Solutions From martyconnelly at shaw.ca Wed Sep 6 19:13:45 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 06 Sep 2006 17:13:45 -0700 Subject: [AccessD] Updating a bound image using VBA In-Reply-To: <6.2.1.2.2.20060907071131.03eae2f8@mail.tpg.com.au> References: <004301c67958$7a683350$6601a8c0@office> <6.2.1.2.2.20060907071131.03eae2f8@mail.tpg.com.au> Message-ID: <44FF6439.8080302@shaw.ca> Assuming you have an embedded OLEfield that contains your photo, in other words you have say a jpg within an OLE wrapper or header that says what OLE server draws the image it could be Kodak Wang or Paintbrush or ..... Otherwise you will have to use unembedded methods to handle just the blob The blob could be an xml string, word .doc file or say a .gif as a binary string. So use this method. http://www.lebans.com/loadsavejpeg.htm If it is embedded; to copy ole field to another table use appendchunk AppendChunk and GetChunk Methods Example from Access 97 help This example uses the AppendChunk and GetChunk methods to fill an OLE object field with data from another record, 32K at a time. In a real application, one might use a procedure like this to copy an employee record (including the employee's photo) from one table to another. In this example, the record is simply being copied back to same table. Note that all the chunk manipulation takes place within a single AddNew-Update sequence. Sub AppendChunkX() Dim dbsNorthwind As Database Dim rstEmployees As Recordset Dim rstEmployees2 As Recordset Set dbsNorthwind = OpenDatabase("Northwind.mdb") ' Open two recordsets from the Employees table. Set rstEmployees = _ dbsNorthwind.OpenRecordset("Employees", _ dbOpenDynaset) Set rstEmployees2 = rstEmployees.Clone ' Add a new record to the first Recordset and copy the ' data from a record in the second Recordset. With rstEmployees .AddNew !FirstName = rstEmployees2!FirstName !LastName = rstEmployees2!LastName CopyLargeField rstEmployees2!Photo, !Photo .Update ' Delete new record because this is a demonstration. .Bookmark = .LastModified .Delete .Close End With rstEmployees2.Close dbsNorthwind.Close End Sub Function CopyLargeField(fldSource As Field, _ fldDestination As Field) ' Set size of chunk in bytes. Const conChunkSize = 32768 Dim lngOffset As Long Dim lngTotalSize As Long Dim strChunk As String ' Copy the photo from one Recordset to the other in 32K ' chunks until the entire field is copied. lngTotalSize = fldSource.FieldSize Do While lngOffset < lngTotalSize strChunk = fldSource.GetChunk(lngOffset, conChunkSize) fldDestination.AppendChunk strChunk lngOffset = lngOffset + conChunkSize Loop End Function David & Joanne Gould wrote: >I have a form for entering new movie stock into a Video Library database. >This form also allows the user to update details for all copies of the >title. Because of this the data is updated using code. One of the fields in >the table is an image field. The code I am using is: > > 'Update Movie Title Details > Dim rsUpdateMovieTitleDetails As Recordset > Dim strMovieName As String > > strMovieName = Forms![frmAddNewMovieStock]![cboSelectMovieTitle] > > Set rsUpdateMovieTitleDetails = New ADODB.Recordset > rsUpdateMovieTitleDetails.ActiveConnection = CurrentProject.Connection > rsUpdateMovieTitleDetails.Open "tblTitles", , adOpenKeyset, >adLockOptimistic, adCmdTable > > 'Loop through the recordset > Do Until rsUpdateMovieTitleDetails.EOF > If rsUpdateMovieTitleDetails.Fields("name") = strMovieName Then > rsUpdateMovieTitleDetails.Fields("supplier") = Me.supplier > rsUpdateMovieTitleDetails.Fields("rating") = Me.rating > rsUpdateMovieTitleDetails.Fields("categoryName") = Me.categoryName > rsUpdateMovieTitleDetails.Fields("RentalTypeID") = Me.RentalTypeID > rsUpdateMovieTitleDetails.Fields("cover") = Me.oleCover > End If > rsUpdateMovieTitleDetails.MoveNext > Loop > rsUpdateMovieTitleDetails.Close > >I keep getting this error message: > >Multiple-step OLE DB operation generated errors. Check each OLE DB status >value, if available. No work was done. > >Can anyone explain to me what I can do about this? > >TIA > >David Gould >DG Solutions > > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Wed Sep 6 19:40:54 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 06 Sep 2006 17:40:54 -0700 Subject: [AccessD] Updating a bound image using VBA In-Reply-To: <6.2.1.2.2.20060907071131.03eae2f8@mail.tpg.com.au> Message-ID: <0J5700FG35UH05H1@l-daemon> Hi David: My first issues would be to have an image embedded in the database. It will definitely limit the performance and needs special handling to use and update. Personally, I would suggest that a url/directory string pointing to the image file guarantees better performance, reliability and stops other strange events that tend to bite. If you have to have Images, in tables, you either use the Chunk method or ADODB.Stream object to pull from the OLE field. Traditionally these tables only store images. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David & Joanne Gould Sent: Wednesday, September 06, 2006 3:10 PM To: Access Developers discussion and problem solving Subject: [AccessD] Updating a bound image using VBA I have a form for entering new movie stock into a Video Library database. This form also allows the user to update details for all copies of the title. Because of this the data is updated using code. One of the fields in the table is an image field. The code I am using is: 'Update Movie Title Details Dim rsUpdateMovieTitleDetails As Recordset Dim strMovieName As String strMovieName = Forms![frmAddNewMovieStock]![cboSelectMovieTitle] Set rsUpdateMovieTitleDetails = New ADODB.Recordset rsUpdateMovieTitleDetails.ActiveConnection = CurrentProject.Connection rsUpdateMovieTitleDetails.Open "tblTitles", , adOpenKeyset, adLockOptimistic, adCmdTable 'Loop through the recordset Do Until rsUpdateMovieTitleDetails.EOF If rsUpdateMovieTitleDetails.Fields("name") = strMovieName Then rsUpdateMovieTitleDetails.Fields("supplier") = Me.supplier rsUpdateMovieTitleDetails.Fields("rating") = Me.rating rsUpdateMovieTitleDetails.Fields("categoryName") = Me.categoryName rsUpdateMovieTitleDetails.Fields("RentalTypeID") = Me.RentalTypeID rsUpdateMovieTitleDetails.Fields("cover") = Me.oleCover End If rsUpdateMovieTitleDetails.MoveNext Loop rsUpdateMovieTitleDetails.Close I keep getting this error message: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. Can anyone explain to me what I can do about this? TIA David Gould DG Solutions -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Sep 6 23:23:51 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 7 Sep 2006 14:23:51 +1000 Subject: [AccessD] Updating a bound image using VBA Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116AA21@ddi-01.DDI.local> Hi David, Aren't you missing the Update before the movenext? rsUpdateMovieTitleDetails.Update Been a while... cheers Michael Maddison -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, 7 September 2006 10:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Updating a bound image using VBA Hi David: My first issues would be to have an image embedded in the database. It will definitely limit the performance and needs special handling to use and update. Personally, I would suggest that a url/directory string pointing to the image file guarantees better performance, reliability and stops other strange events that tend to bite. If you have to have Images, in tables, you either use the Chunk method or ADODB.Stream object to pull from the OLE field. Traditionally these tables only store images. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David & Joanne Gould Sent: Wednesday, September 06, 2006 3:10 PM To: Access Developers discussion and problem solving Subject: [AccessD] Updating a bound image using VBA I have a form for entering new movie stock into a Video Library database. This form also allows the user to update details for all copies of the title. Because of this the data is updated using code. One of the fields in the table is an image field. The code I am using is: 'Update Movie Title Details Dim rsUpdateMovieTitleDetails As Recordset Dim strMovieName As String strMovieName = Forms![frmAddNewMovieStock]![cboSelectMovieTitle] Set rsUpdateMovieTitleDetails = New ADODB.Recordset rsUpdateMovieTitleDetails.ActiveConnection = CurrentProject.Connection rsUpdateMovieTitleDetails.Open "tblTitles", , adOpenKeyset, adLockOptimistic, adCmdTable 'Loop through the recordset Do Until rsUpdateMovieTitleDetails.EOF If rsUpdateMovieTitleDetails.Fields("name") = strMovieName Then rsUpdateMovieTitleDetails.Fields("supplier") = Me.supplier rsUpdateMovieTitleDetails.Fields("rating") = Me.rating rsUpdateMovieTitleDetails.Fields("categoryName") = Me.categoryName rsUpdateMovieTitleDetails.Fields("RentalTypeID") = Me.RentalTypeID rsUpdateMovieTitleDetails.Fields("cover") = Me.oleCover End If rsUpdateMovieTitleDetails.MoveNext Loop rsUpdateMovieTitleDetails.Close I keep getting this error message: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. Can anyone explain to me what I can do about this? TIA David Gould DG Solutions -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Thu Sep 7 07:48:54 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 7 Sep 2006 08:48:54 -0400 Subject: [AccessD] OT: What exactly, do Date Modified, Date Created, and Date Accessed really mean? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E24E51@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35888@ADGSERVER> It looks like the date accessed really only updates the date part of the value. On my system (XP Pro XP2) the time always shows 12:00am. I opened a Wireshark file that was created on 9/5 and last accessed on 9/5, then closed Wireshark. The new accessed date is 9/7 12:00am. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 06, 2006 4:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: What exactly, do Date Modified, Date Created,and Date Accessed really mean? I want to list the files in a folder on a form so a user can select the file they want to open. I can list these three dates to help give more info, but they don't seem to make sense. I think I see that Modified can be earlier than Created if the file was a copy and hadn't been modified since the copy action. But what does Date Accessed mean? I opened a file, looked at it, then closed it w/o changes. The Date Accessed did not change. I did a Google search, but nothing helpful showed up. Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Sep 7 09:09:07 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 7 Sep 2006 09:09:07 -0500 Subject: [AccessD] OT: What exactly, do Date Modified, Date Created, and Date Accessed really mean? Message-ID: Well my accessed dates are accurate to the second. XP PRO, SP1. ??? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, September 07, 2006 8:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: What exactly, do Date Modified, Date Created, and Date Accessed really mean? It looks like the date accessed really only updates the date part of the value. On my system (XP Pro XP2) the time always shows 12:00am. I opened a Wireshark file that was created on 9/5 and last accessed on 9/5, then closed Wireshark. The new accessed date is 9/7 12:00am. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 06, 2006 4:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: What exactly, do Date Modified, Date Created,and Date Accessed really mean? I want to list the files in a folder on a form so a user can select the file they want to open. I can list these three dates to help give more info, but they don't seem to make sense. I think I see that Modified can be earlier than Created if the file was a copy and hadn't been modified since the copy action. But what does Date Accessed mean? I opened a file, looked at it, then closed it w/o changes. The Date Accessed did not change. I did a Google search, but nothing helpful showed up. Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 7 12:46:30 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Sep 2006 10:46:30 -0700 Subject: [AccessD] Test Message Message-ID: I haven't received any posts today. Am I the only one? Charlotte Foust From RRANTHON at sentara.com Thu Sep 7 12:51:24 2006 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Thu, 07 Sep 2006 13:51:24 -0400 Subject: [AccessD] Test Message In-Reply-To: References: Message-ID: <200609071751.k87HpcS24935@databaseadvisors.com> I've had a couple, maybe it's just a slow day... >>> "Charlotte Foust" 9/7/2006 1:46 PM >>> I haven't received any posts today. Am I the only one? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Sep 7 13:04:44 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 7 Sep 2006 11:04:44 -0700 Subject: [AccessD] Test Message In-Reply-To: Message-ID: I get so many I had to look. Charlotte, you were communication on this list today. I feel special. ; ) Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 07, 2006 10:47 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Test Message I haven't received any posts today. Am I the only one? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 7 13:20:54 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Sep 2006 11:20:54 -0700 Subject: [AccessD] Test Message In-Reply-To: Message-ID: <0J5800D6AIX14I10@l-daemon> Charlotte, Count your blessing as no one has broken anything... yet. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 07, 2006 10:47 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Test Message I haven't received any posts today. Am I the only one? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Sep 7 13:24:39 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 7 Sep 2006 13:24:39 -0500 Subject: [AccessD] Test Message In-Reply-To: <14233890.1157651931454.JavaMail.root@sniper30> Message-ID: <002101c6d2aa$e226ba60$0200a8c0@danwaters> I posted a question yesterday but it never came through. . . Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 07, 2006 12:47 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Test Message I haven't received any posts today. Am I the only one? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Sep 7 13:26:37 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 7 Sep 2006 13:26:37 -0500 Subject: [AccessD] OT: What does Last Date Accessed mean? Message-ID: <002501c6d2ab$283ee950$0200a8c0@danwaters> I want to list the files in a folder on a form so a user can select the file they want to open. I can list these three dates to help give more info, but they don't seem to make sense. I think I see that Modified can be earlier than Created if the file was a copy and hadn't been modified since the copy action. But what does Date Accessed mean? I opened a file, looked at it, then closed it w/o changes. The Date Accessed did not change. I did a Google search, but nothing helpful showed up. Thanks! Dan From carbonnb at gmail.com Thu Sep 7 13:32:53 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 7 Sep 2006 14:32:53 -0400 Subject: [AccessD] Test Message In-Reply-To: <002101c6d2aa$e226ba60$0200a8c0@danwaters> References: <14233890.1157651931454.JavaMail.root@sniper30> <002101c6d2aa$e226ba60$0200a8c0@danwaters> Message-ID: On 9/7/06, Dan Waters wrote: > I posted a question yesterday but it never came through. . . Which question Dan? The Last Accessed date question? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From garykjos at gmail.com Thu Sep 7 13:44:27 2006 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 7 Sep 2006 13:44:27 -0500 Subject: [AccessD] OT: What does Last Date Accessed mean? In-Reply-To: <002501c6d2ab$283ee950$0200a8c0@danwaters> References: <002501c6d2ab$283ee950$0200a8c0@danwaters> Message-ID: Perhaps you have that timestamp update turned off? http://www.windowsnetworking.com/nt/registry/rtips71.shtml Here is some mroe info. http://www.xxcopy.com/xxcopy15.htm If you google search on "windows file timestamps" you will find lots of info.... Apparently it is up to the application to update the "Accessed" timestamp so it's not consistently updated as the system maintained Created and modified timestamps are. GK On 9/7/06, Dan Waters wrote: > I want to list the files in a folder on a form so a user can select the file > they want to open. I can list these three dates to help give more info, but > they don't seem to make sense. > > I think I see that Modified can be earlier than Created if the file was a > copy and hadn't been modified since the copy action. > > But what does Date Accessed mean? I opened a file, looked at it, then > closed it w/o changes. The Date Accessed did not change. > > I did a Google search, but nothing helpful showed up. > > Thanks! > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From ewaldt at gdls.com Thu Sep 7 14:57:39 2006 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Thu, 7 Sep 2006 15:57:39 -0400 Subject: [AccessD] Replication and Referential Integrity In-Reply-To: Message-ID: I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From cfoust at infostatsystems.com Thu Sep 7 15:16:33 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Sep 2006 13:16:33 -0700 Subject: [AccessD] Replication and Referential Integrity In-Reply-To: Message-ID: That's the first time I've ever heard that statement, and I see no reason for it to be true. What kind of replication are you talking about, partial or full? And is this database a split front and backend or not? If it isn't on a drive shared by them, how are they both using it and why should it be exclusive to one of them? Are you actually passing the database back and forth to different locations? You really need to fill in more information before you can get a good answer. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Thursday, September 07, 2006 12:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 From mwp.reid at qub.ac.uk Thu Sep 7 15:25:00 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 7 Sep 2006 21:25:00 +0100 Subject: [AccessD] Numbers References: Message-ID: What would you dim the following number as in VBA 34567899999999 In order to carry out math on it. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From accessd at shaw.ca Thu Sep 7 15:40:17 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Sep 2006 13:40:17 -0700 Subject: [AccessD] Replication and Referential Integrity In-Reply-To: Message-ID: <0J5800KJ1PDB61F0@l-daemon> Hi Thomas: The best way to accomplish this is to split the Access application into a FE and a BE. The BE hold the tables and the FE holds everything else. The BE would be made into a Master and Replicate and the data synchronized between the 2 either manually or automatically through a timed form. If this layout is used referential integrity of the BE mdb should not enter into it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Thursday, September 07, 2006 12:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 7 15:57:32 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 7 Sep 2006 16:57:32 -0400 Subject: [AccessD] Numbers In-Reply-To: Message-ID: <007401c6d2c0$3e56fd80$657aa8c0@m6805> Probably a single. If not that, a double. And then there is the issue of rounding errors. In spite of the large size, is it going to need precision down in the decimals? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, September 07, 2006 4:25 PM To: Access Developers discussion and problem solving Subject: [AccessD] Numbers What would you dim the following number as in VBA 34567899999999 In order to carry out math on it. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From cfoust at infostatsystems.com Thu Sep 7 16:04:01 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Sep 2006 14:04:01 -0700 Subject: [AccessD] Numbers In-Reply-To: Message-ID: You might try a currency type to avoid the floating point problems with rounding. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, September 07, 2006 1:25 PM To: Access Developers discussion and problem solving Subject: [AccessD] Numbers What would you dim the following number as in VBA 34567899999999 In order to carry out math on it. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From artful at rogers.com Thu Sep 7 16:33:00 2006 From: artful at rogers.com (artful at rogers.com) Date: Thu, 7 Sep 2006 14:33:00 -0700 (PDT) Subject: [AccessD] Numbers In-Reply-To: Message-ID: <20060907213300.45206.qmail@web88202.mail.re2.yahoo.com> This appears to work, mind you I didn't do much math on it: Sub TestLong() Dim x As Double x = 34567899999999# Debug.Print x / 2 Debug.Print Sqr(x) End Sub ' returns 17283949999999.5 ' returns 5879447.25293109 Will that do, or is more testing required? hth, Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Thursday, September 7, 2006 4:25:00 PM Subject: [AccessD] Numbers What would you dim the following number as in VBA 34567899999999 In order to carry out math on it. Martin From artful at rogers.com Thu Sep 7 16:45:36 2006 From: artful at rogers.com (artful at rogers.com) Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) Subject: [AccessD] Replication and Referential Integrity In-Reply-To: Message-ID: <20060907214536.55515.qmail@web88205.mail.re2.yahoo.com> I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Sep 7 16:45:28 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 08 Sep 2006 07:45:28 +1000 Subject: [AccessD] Numbers In-Reply-To: <007401c6d2c0$3e56fd80$657aa8c0@m6805> References: , <007401c6d2c0$3e56fd80$657aa8c0@m6805> Message-ID: <45011F98.24872.260117F3@stuart.lexacorp.com.pg> On 7 Sep 2006 at 16:57, JWColby wrote: > Probably a single. No! Maximum precision 7 places. That would store and manipulate it as 34567900000000 >> What would you dim the following number as in VBA >> >> 34567899999999 >> >> In order to carry out math on it. You will have to use either a Double or Currency. Which one depends on what sort of math you want to do. Double will allow you to use larger numbers but currency will give you greater precision. -- Stuart From jwcolby at colbyconsulting.com Thu Sep 7 17:23:18 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 7 Sep 2006 18:23:18 -0400 Subject: [AccessD] Numbers In-Reply-To: <45011F98.24872.260117F3@stuart.lexacorp.com.pg> Message-ID: <007501c6d2cc$38f17f30$657aa8c0@m6805> Very good! I knew single had precision limitations, I just didn't have the time to go discover what they were. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 07, 2006 5:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Numbers On 7 Sep 2006 at 16:57, JWColby wrote: > Probably a single. No! Maximum precision 7 places. That would store and manipulate it as 34567900000000 >> What would you dim the following number as in VBA >> >> 34567899999999 >> >> In order to carry out math on it. You will have to use either a Double or Currency. Which one depends on what sort of math you want to do. Double will allow you to use larger numbers but currency will give you greater precision. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Sep 7 19:42:37 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 7 Sep 2006 19:42:37 -0500 Subject: [AccessD] OT: What does Last Date Accessed mean? In-Reply-To: <24939425.1157654963677.JavaMail.root@sniper11> Message-ID: <004a01c6d2df$af4ac250$0200a8c0@danwaters> Thanks Gary! Turns out the registry key for Last Accessed doesn't even exist on my PC. And I'm not adding it. It does look like the only reliable date is Last Modified. I'll stick with just that. Dan Waters -----Original Message----- Subject: Re: [AccessD] OT: What does Last Date Accessed mean? Perhaps you have that timestamp update turned off? http://www.windowsnetworking.com/nt/registry/rtips71.shtml Here is some mroe info. http://www.xxcopy.com/xxcopy15.htm If you google search on "windows file timestamps" you will find lots of info.... Apparently it is up to the application to update the "Accessed" timestamp so it's not consistently updated as the system maintained Created and modified timestamps are. GK On 9/7/06, Dan Waters wrote: > I want to list the files in a folder on a form so a user can select the file > they want to open. I can list these three dates to help give more info, but > they don't seem to make sense. > > I think I see that Modified can be earlier than Created if the file was a > copy and hadn't been modified since the copy action. > > But what does Date Accessed mean? I opened a file, looked at it, then > closed it w/o changes. The Date Accessed did not change. > > I did a Google search, but nothing helpful showed up. > > Thanks! > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Thu Sep 7 19:42:57 2006 From: pcs at azizaz.com (Borge Hansen) Date: Fri, 8 Sep 2006 10:42:57 +1000 Subject: [AccessD] Startup parameter to simulate runtime References: <007501c6d2cc$38f17f30$657aa8c0@m6805> Message-ID: <028201c6d2df$bb1ce1d0$fa10a8c0@Albatross> Hi, Quick one: What's the startup parameter to simulate runtime environment? regards borge From wdhindman at dejpolsystems.com Thu Sep 7 20:32:40 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 7 Sep 2006 21:32:40 -0400 Subject: [AccessD] Startup parameter to simulate runtime References: <007501c6d2cc$38f17f30$657aa8c0@m6805> <028201c6d2df$bb1ce1d0$fa10a8c0@Albatross> Message-ID: <002201c6d2e6$ad862ac0$153ce944@50NM721> "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /runtime "C:\TSM\TSMfe.mde" William Hindman ----- Original Message ----- From: "Borge Hansen" To: "Access Developers discussion and problem solving" Sent: Thursday, September 07, 2006 8:42 PM Subject: Re: [AccessD] Startup parameter to simulate runtime > Hi, > Quick one: > What's the startup parameter to simulate runtime environment? > > regards > borge > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Sep 7 21:47:16 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 7 Sep 2006 22:47:16 -0400 Subject: [AccessD] How does it work Message-ID: <007601c6d2f1$198bc720$657aa8c0@m6805> I have now successfully created a Raid5 on my new server. For the moment it is a 4 disk array using 320g drives for a total size (available) of around 900g. I will be adding another pair, one of which will be a hot spare, which will bump it to 1.2g available and one drive just sitting there for (automatic) use in a failure. My question now is, if I place all of the SQL Server database files (not the program files, but the database files FOR SQL SERVER) as well as the actual files for the various databases and their logs, if I place all that stuff out on this mongo raid drive, and then my boot drive dies... can SQL Server be installed to use an existing set of files? I actually have one more SATA connector which I intend to use to copy an image of the boot drive once a week or so (maybe even nightly), so that if the boot drive dies I should be able to get back up with a minimum of pain. For that I will need Ghost or something similar running as a scheduled task. And then of course there is the issue of "what happens if the house burns down". How do you conveniently back up a large db offsite? Or in a fire safe? I actually read about a rather expensive A while back I actually purchased this SQL Server backup program called Imceda Litespeed (now sold I believe) which does a great job of backing up large databases, compacting on the way out. I am thinking about setting up a small machine down in the basement at the far end of the house, on the other end of a 1gbit line, and have Litespeed place the backup file on hard disks on that machine. Even at 10:1 compression which it seems to do, an 800gb database turns into an 80gb backup file. Over a 1gbit line that will take an hour to copy the backup file. If you folks do this kind of stuff how about starting a discussion of how you handle it. John W. Colby Colby Consulting www.ColbyConsulting.com From wdhindman at dejpolsystems.com Thu Sep 7 22:12:10 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 7 Sep 2006 23:12:10 -0400 Subject: [AccessD] How does it work References: <007601c6d2f1$198bc720$657aa8c0@m6805> Message-ID: <000301c6d2f4$93f136f0$153ce944@50NM721> ...assuming this is a software raid ...the cost of a dual hardware raid controller is low enough to benefit from being able to put your boot disk on the raid and get a real backup including system state ...that way a hot swap and rebuild really works and I don't have to worry about the types of things you are asking about. ...I backup app data to my website using ftp ...but then I don't have 900gb of data :) William Hindman ----- Original Message ----- From: "JWColby" To: ; "'Access Developers discussion and problem solving'" Sent: Thursday, September 07, 2006 10:47 PM Subject: [AccessD] How does it work >I have now successfully created a Raid5 on my new server. For the moment >it > is a 4 disk array using 320g drives for a total size (available) of around > 900g. I will be adding another pair, one of which will be a hot spare, > which will bump it to 1.2g available and one drive just sitting there for > (automatic) use in a failure. > > My question now is, if I place all of the SQL Server database files (not > the > program files, but the database files FOR SQL SERVER) as well as the > actual > files for the various databases and their logs, if I place all that stuff > out on this mongo raid drive, and then my boot drive dies... can SQL > Server > be installed to use an existing set of files? > > I actually have one more SATA connector which I intend to use to copy an > image of the boot drive once a week or so (maybe even nightly), so that if > the boot drive dies I should be able to get back up with a minimum of > pain. > For that I will need Ghost or something similar running as a scheduled > task. > > And then of course there is the issue of "what happens if the house burns > down". How do you conveniently back up a large db offsite? Or in a fire > safe? I actually read about a rather expensive > > A while back I actually purchased this SQL Server backup program called > Imceda Litespeed (now sold I believe) which does a great job of backing up > large databases, compacting on the way out. I am thinking about setting > up > a small machine down in the basement at the far end of the house, on the > other end of a 1gbit line, and have Litespeed place the backup file on > hard > disks on that machine. Even at 10:1 compression which it seems to do, an > 800gb database turns into an 80gb backup file. Over a 1gbit line that > will > take an hour to copy the backup file. > > If you folks do this kind of stuff how about starting a discussion of how > you handle it. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Thu Sep 7 22:26:17 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Sep 2006 20:26:17 -0700 Subject: [AccessD] How does it work In-Reply-To: <007601c6d2f1$198bc720$657aa8c0@m6805> Message-ID: <0J59009RA85YNI10@l-daemon> John; just a note that may be unrelated but the government standard server setup is: One OS disk with SQL server installed and all applications. One mirrored disk for a backup to the applications disk. One 5 disk array; raid 5 which holds all the data and transactions files. There is a company, in town that has been selling its' hardware systems as raid 6. (Their loose description is not like that as describing the official description of Raid 6 and if I can re-find their address I will send it along.) It has the configuration as above as well as, but in the background synchronizes multiple servers without software so there is no CPU impact. Just a comment. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, September 07, 2006 7:47 PM To: dba-sqlserver at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: [AccessD] How does it work I have now successfully created a Raid5 on my new server. For the moment it is a 4 disk array using 320g drives for a total size (available) of around 900g. I will be adding another pair, one of which will be a hot spare, which will bump it to 1.2g available and one drive just sitting there for (automatic) use in a failure. My question now is, if I place all of the SQL Server database files (not the program files, but the database files FOR SQL SERVER) as well as the actual files for the various databases and their logs, if I place all that stuff out on this mongo raid drive, and then my boot drive dies... can SQL Server be installed to use an existing set of files? I actually have one more SATA connector which I intend to use to copy an image of the boot drive once a week or so (maybe even nightly), so that if the boot drive dies I should be able to get back up with a minimum of pain. For that I will need Ghost or something similar running as a scheduled task. And then of course there is the issue of "what happens if the house burns down". How do you conveniently back up a large db offsite? Or in a fire safe? I actually read about a rather expensive A while back I actually purchased this SQL Server backup program called Imceda Litespeed (now sold I believe) which does a great job of backing up large databases, compacting on the way out. I am thinking about setting up a small machine down in the basement at the far end of the house, on the other end of a 1gbit line, and have Litespeed place the backup file on hard disks on that machine. Even at 10:1 compression which it seems to do, an 800gb database turns into an 80gb backup file. Over a 1gbit line that will take an hour to copy the backup file. If you folks do this kind of stuff how about starting a discussion of how you handle it. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Fri Sep 8 03:07:36 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 8 Sep 2006 09:07:36 +0100 Subject: [AccessD] Replication and Referential Integrity References: <20060907214536.55515.qmail@web88205.mail.re2.yahoo.com> Message-ID: Not bad Arthur. What I am trying to get is the whole number returned. X+Y where X could be a massive number Y any number between 1 and 10. I had this problem for a while and anything I try ends up returning a number in scentification notation. Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DElam at jenkens.com Fri Sep 8 08:38:40 2006 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 8 Sep 2006 08:38:40 -0500 Subject: [AccessD] Replication and Referential Integrity Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DE571@natexch.jenkens.com> I have used replication on databases with referential integrity, so that is not an issue. Be sure to keep the master in a safe location where the users cannot touch it and where it is backed up frequently. You should not get corruption, but it does happen more often with replication. Keeping that master at a remove form the day to day work helps recovery go smoother. Debbie ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From DWUTKA at marlow.com Fri Sep 8 09:14:28 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 8 Sep 2006 09:14:28 -0500 Subject: [AccessD] How does it work Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0100E60B@MARLOW_MAIN2.marlow.com> What are you using for the RAID? A raid controller, or are you letting the OS do it? Either way, you're boot drive should be mirrored. What's the sense of having a RAID 5 for your data, if you don't mirror your boot/OS drive? As for you SQL Server question, If you have the data and index files for a SQL Server database, you can import them into another SQL Server. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, September 07, 2006 9:47 PM To: dba-sqlserver at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: [AccessD] How does it work I have now successfully created a Raid5 on my new server. For the moment it is a 4 disk array using 320g drives for a total size (available) of around 900g. I will be adding another pair, one of which will be a hot spare, which will bump it to 1.2g available and one drive just sitting there for (automatic) use in a failure. My question now is, if I place all of the SQL Server database files (not the program files, but the database files FOR SQL SERVER) as well as the actual files for the various databases and their logs, if I place all that stuff out on this mongo raid drive, and then my boot drive dies... can SQL Server be installed to use an existing set of files? I actually have one more SATA connector which I intend to use to copy an image of the boot drive once a week or so (maybe even nightly), so that if the boot drive dies I should be able to get back up with a minimum of pain. For that I will need Ghost or something similar running as a scheduled task. And then of course there is the issue of "what happens if the house burns down". How do you conveniently back up a large db offsite? Or in a fire safe? I actually read about a rather expensive A while back I actually purchased this SQL Server backup program called Imceda Litespeed (now sold I believe) which does a great job of backing up large databases, compacting on the way out. I am thinking about setting up a small machine down in the basement at the far end of the house, on the other end of a 1gbit line, and have Litespeed place the backup file on hard disks on that machine. Even at 10:1 compression which it seems to do, an 800gb database turns into an 80gb backup file. Over a 1gbit line that will take an hour to copy the backup file. If you folks do this kind of stuff how about starting a discussion of how you handle it. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Sep 8 10:11:21 2006 From: artful at rogers.com (artful at rogers.com) Date: Fri, 8 Sep 2006 08:11:21 -0700 (PDT) Subject: [AccessD] Replication and Referential Integrity In-Reply-To: Message-ID: <20060908151121.96651.qmail@web88204.mail.re2.yahoo.com> I am not having a problem with that either, Martin. Sub TestLong2() Dim x As Double Dim y As Integer x = 34567899999999# y = 10 Debug.Print x + 10 End Sub ' returns 34567900000009 No scientific notation. For a moment I thought that the order of declaration or the order of summing might be the culprit, but apparently not: Sub TestLong3() Dim y As Integer Dim x As Double x = 34567899999999# y = 10 Debug.Print y + x End Sub ' returns 34567900000009 I wonder whether any differences we are experiencing have to do with regional settings or something un-obvious like that. If this code is returning scientific notation, then I'm at a loss to explain why. One more detail. I ran this code in Access 2000. Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 8, 2006 4:07:36 AM Subject: Re: [AccessD] Replication and Referential Integrity Not bad Arthur. What I am trying to get is the whole number returned. X+Y where X could be a massive number Y any number between 1 and 10. I had this problem for a while and anything I try ends up returning a number in scentification notation. Martin WP Reid From martyconnelly at shaw.ca Fri Sep 8 13:28:37 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 08 Sep 2006 11:28:37 -0700 Subject: [AccessD] Replication and Referential Integrity In-Reply-To: <20060908151121.96651.qmail@web88204.mail.re2.yahoo.com> References: <20060908151121.96651.qmail@web88204.mail.re2.yahoo.com> Message-ID: <4501B655.5030209@shaw.ca> You will get scientification notation returned once the number x exceeds 15 digits of precision and truncation occurs. Just try multiplying x by 100. artful at rogers.com wrote: >I am not having a problem with that either, Martin. > > >Sub TestLong2() > Dim x As Double > Dim y As Integer > x = 34567899999999# > y = 10 > Debug.Print x + 10 > >End Sub > >' returns 34567900000009 > >No scientific notation. For a moment I thought that the order of declaration or the order of summing might be the culprit, but apparently not: > > >Sub TestLong3() > Dim y As Integer > Dim x As Double > x = 34567899999999# > y = 10 > Debug.Print y + x > >End Sub >' returns 34567900000009 > > >I wonder whether any differences we are experiencing have to do with regional settings or something un-obvious like that. If this code is returning scientific notation, then I'm at a loss to explain why. One more detail. I ran this code in Access 2000. > >Arthur > >----- Original Message ---- >From: Martin Reid >To: Access Developers discussion and problem solving >Sent: Friday, September 8, 2006 4:07:36 AM >Subject: Re: [AccessD] Replication and Referential Integrity > >Not bad Arthur. > >What I am trying to get is the whole number returned. X+Y where X could be a massive number Y any number between 1 and 10. I had this problem for a while and anything I try ends up returning a number in scentification notation. > > Martin WP Reid > > > > > > -- Marty Connelly Victoria, B.C. Canada From ewaldt at gdls.com Sat Sep 9 15:26:18 2006 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Sat, 9 Sep 2006 16:26:18 -0400 Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: Message-ID: The answer to nearly all of your questions is found in my (apparently less than clear statement): "For purposes of security, it cannot be on a network drive shared by the two companies." I guess the problem is the word "security". Don't think of "database security" or "network security"; note that I work for General Dynamics, and think of "military security" or even "national security" instead, although that might be a bit of overkill. We are working with another company. We cannot have a normal shared network with them; again, that's because of security (see above). We can, however deposit the database in a very secure place where they can pick it up, use it, return it, and then we pick it up again. I was hoping that replication might avoid this. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 Message: 16 Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) From: Subject: Re: [AccessD] Replication and Referential Integrity To: Access Developers discussion and problem solving Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From stuart at lexacorp.com.pg Sat Sep 9 17:03:23 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 10 Sep 2006 08:03:23 +1000 Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: References: , Message-ID: <4503C6CB.31755.305E2A3A@stuart.lexacorp.com.pg> I see it all now (I too couldn't quite grasp the situation from your description). Replication is definitely the way to go here. The individual who said that replication doesn't work with referential integerity has probably tried to replicate systems which use Autonumber Primary Keys with the default defininiton as Longs and using the PK as a autoincrementing meaningful number. In a replicated system, ANPKs are always "random numbering" and should generally be of type "Replication ID" Grab a copy of the "Microsoft Access 2000, Microsoft Access 2002, and Microsoft Office Access 2003 Replication FAQ" "The ReplFAQJet40.exe file contains a Microsoft Word document titled "Frequently Asked Questions About Microsoft Access 2000, Microsoft Access 2002, and Microsoft Office Access 2003 Replication" written by Michael Kaplan, Mary Chipman, Paul Litwin, Steve Thompson, and John Blaine. This document answers many Microsoft Access replication questions you may have." Available at http://support.microsoft.com/kb/q282977/ DIrect download link: http://download.microsoft.com/download/4/2/c/42c1f8e7-ae0d-4dcd-ac90- efddcfc29898/replfaqjet40.exe On 9 Sep 2006 at 16:26, ewaldt at gdls.com wrote: > The answer to nearly all of your questions is found in my (apparently less > than clear statement): > > "For purposes of security, it cannot be on a network drive shared by > the two companies." > > I guess the problem is the word "security". Don't think of "database > security" or "network security"; note that I work for General Dynamics, and > think of "military security" or even "national security" instead, although > that might be a bit of overkill. > > We are working with another company. We cannot have a normal shared network > with them; again, that's because of security (see above). We can, however > deposit the database in a very secure place where they can pick it up, use > it, return it, and then we pick it up again. I was hoping that replication > might avoid this. > > Thomas F. Ewald > FCS Database Manager > General Dynamics Land Systems > (586) 276-1256 > > > Message: 16 > Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) > From: > Subject: Re: [AccessD] Replication and Referential Integrity > To: Access Developers discussion and problem solving > > Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> > Content-Type: text/plain; charset=us-ascii > > I have mined Access replication extensively and like to pretend that I know > it very well. So perhaps I can help in that regard. However, before we go > there, I must say that I think something is very wrong if only one company > can use the database at a time. Perhaps you are so fortunate that they > reside in time zones that will never collide. > > IMO, your first question should be, Why is it that only one company can use > the DB at a time? (And secondly, does this mean that 20 users within one > company can use it simultaneously? Or is it even worse?) I have been trying > for the past few minutes (not long, admittedly), but I cannot see a > situation which forces you into this "one-company" scenario. Further, I > don't see how replication will get you out of this problem, which seems to > me of your own creation. > > Using replication strictly within Access, I have successfully tied together > 4 branches distributed across North America, with a total of about 70 users, > everyone hitting the same fixed-inventory tables. I can say with confidence > that when this is set up correctly, nothing goes wrong. Not a single > collision in over six months of operation. (After that we migrated to SQL > Server.) > > So back to your original question. What is lacking in the design that > forces you to restrict access to just one company? Something is strange in > Denmark, methinks. Without knowing anything about your DB, at the very least > I might suggest creating a Companies table and inheriting its PK in all the > immediate tables, so that Company 1's customers have an FK pointing to > Company 1, etc. This would effectively isolate all rows from each company, > and also permit adding Company 3. > > Or perhaps I'm missing something. > > ----- Original Message ---- > From: ewaldt at gdls.com > To: accessd at databaseadvisors.com > Sent: Thursday, September 7, 2006 3:57:39 PM > Subject: [AccessD] Replication and Referential Integrity > > I've created a database that is used by two companies. For purposes of > security, it cannot be on a network drive shared by the two companies. More > detail isn't really necessary. What it amounts to is that only one company > can use it at a time. > > I have had replication suggested to me. I know what it is, of course, but > have only played with it on a very minor and experimental basis. However, > the individual who recommended it to me is more experienced with it, and he > said that it cannot be used with a database that employs referential > integrity. Is he correct? I am sure that he knows more than I do about > replication, but that doesn't mean much. > > TIA. > > > Thomas F. Ewald > FCS Database Manager > General Dynamics Land Systems > (586) 276-1256 > > > > > > > This is an e-mail from General Dynamics Land Systems. It is for the intended > recipient only and may contain confidential and privileged information. No > one else may read, print, store, copy, forward or act in reliance on it or > its attachments. If you are not the intended recipient, please return this > message to the sender and delete the message and any attachments from your > computer. Your cooperation is appreciated. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From stuart at lexacorp.com.pg Sat Sep 9 17:16:53 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 10 Sep 2006 08:16:53 +1000 Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: <4503C6CB.31755.305E2A3A@stuart.lexacorp.com.pg> References: , , <4503C6CB.31755.305E2A3A@stuart.lexacorp.com.pg> Message-ID: <4503C9F5.2308.306A86F6@stuart.lexacorp.com.pg> On 10 Sep 2006 at 8:03, Stuart McLachlan wrote: > autoincrementing meaningful number. In a replicated system, ANPKs are > always "random numbering" and should generally be of type "Replication ID" I should have added: You should however avoid ANPKs whenever possible in replicated databases. They can cause a number of problems. A common solution is to use a compound PK which comprises an Autonumber field of type Long and a unique ID which you assign to each replica (Company in your case). -- Stuart From artful at rogers.com Sun Sep 10 08:27:16 2006 From: artful at rogers.com (artful at rogers.com) Date: Sun, 10 Sep 2006 06:27:16 -0700 (PDT) Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: Message-ID: <20060910132716.19516.qmail@web88205.mail.re2.yahoo.com> First, thanks for the clarification. That makes the problem much more interesting. The data must move from your allegedly secure place to another allegedly secure place on an allegedly secure channel (however that might be achived, encryption being one possible answer). Maybe you've got all that in place already, but maybe not. Once that is all settled, we're back to the simpler part of the problem. To replicate or not to replicate? If the back-end database is MDB, then replication is a great way to go. I have worked extensively with Access replication, linking together several branch offices and dozens of employees. There was a database server in each office and the home office ran the replicator. Data was at most 5 minutes stale. If the database is SQL Server 2005, then you win a cool new thing called "mirrored" databases. You need a pair of servers, yours and theirs, able to communicate. After that, it's a cinch to set up. A wizard takes you through it. hth, Arthur ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Saturday, September 9, 2006 4:26:18 PM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 The answer to nearly all of your questions is found in my (apparently less than clear statement): "For purposes of security, it cannot be on a network drive shared by the two companies." I guess the problem is the word "security". Don't think of "database security" or "network security"; note that I work for General Dynamics, and think of "military security" or even "national security" instead, although that might be a bit of overkill. We are working with another company. We cannot have a normal shared network with them; again, that's because of security (see above). We can, however deposit the database in a very secure place where they can pick it up, use it, return it, and then we pick it up again. I was hoping that replication might avoid this. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 Message: 16 Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) From: Subject: Re: [AccessD] Replication and Referential Integrity To: Access Developers discussion and problem solving Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sun Sep 10 10:12:15 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 10 Sep 2006 10:12:15 -0500 Subject: [AccessD] Formatting a Check Box Message-ID: <000001c6d4eb$81498540$0200a8c0@danwaters> I would like to 'soften' the border around a checkbox. The property list shows the border color, but even when I change the color, on display the border stays black. I also can't make the border transparent. Thanks! Dan From jwcolby at colbyconsulting.com Sun Sep 10 10:32:36 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 10 Sep 2006 11:32:36 -0400 Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: <20060910132716.19516.qmail@web88205.mail.re2.yahoo.com> Message-ID: <000d01c6d4ee$5a1cce20$657aa8c0@m6805> I think what everyone is forgetting is that the database is physically moved. Only one person (or location) is ever in here at one time. Given that, then there is no issue. Site1 uses it. It moves. Site2 uses it. It moves. Site1 uses it. It moves. No replication involved. Unless Site1 uses it A COPY is placed somewhere. (How do you do this without sharing that location?) Site1 continues to use it. Site2 uses it. Site2's copy is brought back to site1. Again how? Site2's copy is then merged with site1's copy. Site2's copy is then sent back to site1. Replication REQUIRES using a shared site, whether that is an FTP drop location or a location where the BE sits. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, September 10, 2006 9:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 First, thanks for the clarification. That makes the problem much more interesting. The data must move from your allegedly secure place to another allegedly secure place on an allegedly secure channel (however that might be achived, encryption being one possible answer). Maybe you've got all that in place already, but maybe not. Once that is all settled, we're back to the simpler part of the problem. To replicate or not to replicate? If the back-end database is MDB, then replication is a great way to go. I have worked extensively with Access replication, linking together several branch offices and dozens of employees. There was a database server in each office and the home office ran the replicator. Data was at most 5 minutes stale. If the database is SQL Server 2005, then you win a cool new thing called "mirrored" databases. You need a pair of servers, yours and theirs, able to communicate. After that, it's a cinch to set up. A wizard takes you through it. hth, Arthur ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Saturday, September 9, 2006 4:26:18 PM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 The answer to nearly all of your questions is found in my (apparently less than clear statement): "For purposes of security, it cannot be on a network drive shared by the two companies." I guess the problem is the word "security". Don't think of "database security" or "network security"; note that I work for General Dynamics, and think of "military security" or even "national security" instead, although that might be a bit of overkill. We are working with another company. We cannot have a normal shared network with them; again, that's because of security (see above). We can, however deposit the database in a very secure place where they can pick it up, use it, return it, and then we pick it up again. I was hoping that replication might avoid this. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 Message: 16 Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) From: Subject: Re: [AccessD] Replication and Referential Integrity To: Access Developers discussion and problem solving Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sun Sep 10 14:47:53 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 10 Sep 2006 15:47:53 -0400 Subject: [AccessD] dll deployment References: <000d01c6d4ee$5a1cce20$657aa8c0@m6805> Message-ID: <000201c6d512$022a44d0$153ce944@50NM721> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic_link_library_redirection.asp ...anyone using such redirection with Access? William Hindman From stuart at lexacorp.com.pg Sun Sep 10 16:57:58 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Sep 2006 07:57:58 +1000 Subject: [AccessD] Formatting a Check Box In-Reply-To: <000001c6d4eb$81498540$0200a8c0@danwaters> References: <000001c6d4eb$81498540$0200a8c0@danwaters> Message-ID: <45051706.19057.357F88B3@stuart.lexacorp.com.pg> On 10 Sep 2006 at 10:12, Dan Waters wrote: > I would like to 'soften' the border around a checkbox. The property list > shows the border color, but even when I change the color, on display the > border stays black. I also can't make the border transparent. The only way I've been able to soften one is to set it's style fo chiselled or etched. (incidentally, the border colour sets the colour of the drop shadow) -- Stuart From dwaters at usinternet.com Sun Sep 10 17:06:13 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 10 Sep 2006 17:06:13 -0500 Subject: [AccessD] Formatting a Check Box In-Reply-To: <11218741.1157925730772.JavaMail.root@sniper47> Message-ID: <000401c6d525$553f5d00$0200a8c0@danwaters> Thanks Stuart! Dan -----Original Message----- Subject: Re: [AccessD] Formatting a Check Box On 10 Sep 2006 at 10:12, Dan Waters wrote: > I would like to 'soften' the border around a checkbox. The property list > shows the border color, but even when I change the color, on display the > border stays black. I also can't make the border transparent. The only way I've been able to soften one is to set it's style fo chiselled or etched. (incidentally, the border colour sets the colour of the drop shadow) -- Stuart From artful at rogers.com Sun Sep 10 18:04:22 2006 From: artful at rogers.com (artful at rogers.com) Date: Sun, 10 Sep 2006 16:04:22 -0700 (PDT) Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: <000d01c6d4ee$5a1cce20$657aa8c0@m6805> Message-ID: <20060910230422.95788.qmail@web88203.mail.re2.yahoo.com> A database is never moved. It might be copied elsewhere, then deleted from its source, but that is not equivalent to movement. To cite only one of many objections to your thesis, where is the db during copy, and who has access at those moments? It could be that my objection is granular, and that work-shifts, time-standards (degrees off Greenwich) and so on make this unlikely. But impossible? I'm always very careful with the use of that word. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Sunday, September 10, 2006 11:32:36 AM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 I think what everyone is forgetting is that the database is physically moved. Only one person (or location) is ever in here at one time. Given that, then there is no issue. Site1 uses it. It moves. Site2 uses it. It moves. Site1 uses it. It moves. No replication involved. Unless Site1 uses it A COPY is placed somewhere. (How do you do this without sharing that location?) Site1 continues to use it. Site2 uses it. Site2's copy is brought back to site1. Again how? Site2's copy is then merged with site1's copy. Site2's copy is then sent back to site1. Replication REQUIRES using a shared site, whether that is an FTP drop location or a location where the BE sits. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, September 10, 2006 9:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 First, thanks for the clarification. That makes the problem much more interesting. The data must move from your allegedly secure place to another allegedly secure place on an allegedly secure channel (however that might be achived, encryption being one possible answer). Maybe you've got all that in place already, but maybe not. Once that is all settled, we're back to the simpler part of the problem. To replicate or not to replicate? If the back-end database is MDB, then replication is a great way to go. I have worked extensively with Access replication, linking together several branch offices and dozens of employees. There was a database server in each office and the home office ran the replicator. Data was at most 5 minutes stale. If the database is SQL Server 2005, then you win a cool new thing called "mirrored" databases. You need a pair of servers, yours and theirs, able to communicate. After that, it's a cinch to set up. A wizard takes you through it. hth, Arthur ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Saturday, September 9, 2006 4:26:18 PM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 The answer to nearly all of your questions is found in my (apparently less than clear statement): "For purposes of security, it cannot be on a network drive shared by the two companies." I guess the problem is the word "security". Don't think of "database security" or "network security"; note that I work for General Dynamics, and think of "military security" or even "national security" instead, although that might be a bit of overkill. We are working with another company. We cannot have a normal shared network with them; again, that's because of security (see above). We can, however deposit the database in a very secure place where they can pick it up, use it, return it, and then we pick it up again. I was hoping that replication might avoid this. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 Message: 16 Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) From: Subject: Re: [AccessD] Replication and Referential Integrity To: Access Developers discussion and problem solving Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Sun Sep 10 18:36:45 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Sun, 10 Sep 2006 16:36:45 -0700 Subject: [AccessD] change control source via vba In-Reply-To: <000d01c6d4ee$5a1cce20$657aa8c0@m6805> Message-ID: Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob From jwcolby at colbyconsulting.com Sun Sep 10 20:28:38 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 10 Sep 2006 21:28:38 -0400 Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: <20060910230422.95788.qmail@web88203.mail.re2.yahoo.com> Message-ID: <001701c6d541$9cad9550$657aa8c0@m6805> My point is that in order to copy a database to some location, you must have access to that location. In order to copy that database FROM that location, you must have access to that location. Therefore there is some location that is shared. Unless the database is attached to an email or something. In the absence of details, I am assuming that both locations will be in the database all the time, and will "drop / pickup" a copy at some shared location "in the middle". I admit I have never done replication, but I have read about it and in general a "difference" file is "dropped" in some location by databaseA, whereupon that difference file is picked up and applied to (syncronized with) databaseB. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, September 10, 2006 7:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 A database is never moved. It might be copied elsewhere, then deleted from its source, but that is not equivalent to movement. To cite only one of many objections to your thesis, where is the db during copy, and who has access at those moments? It could be that my objection is granular, and that work-shifts, time-standards (degrees off Greenwich) and so on make this unlikely. But impossible? I'm always very careful with the use of that word. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Sunday, September 10, 2006 11:32:36 AM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 I think what everyone is forgetting is that the database is physically moved. Only one person (or location) is ever in here at one time. Given that, then there is no issue. Site1 uses it. It moves. Site2 uses it. It moves. Site1 uses it. It moves. No replication involved. Unless Site1 uses it A COPY is placed somewhere. (How do you do this without sharing that location?) Site1 continues to use it. Site2 uses it. Site2's copy is brought back to site1. Again how? Site2's copy is then merged with site1's copy. Site2's copy is then sent back to site1. Replication REQUIRES using a shared site, whether that is an FTP drop location or a location where the BE sits. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, September 10, 2006 9:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 First, thanks for the clarification. That makes the problem much more interesting. The data must move from your allegedly secure place to another allegedly secure place on an allegedly secure channel (however that might be achived, encryption being one possible answer). Maybe you've got all that in place already, but maybe not. Once that is all settled, we're back to the simpler part of the problem. To replicate or not to replicate? If the back-end database is MDB, then replication is a great way to go. I have worked extensively with Access replication, linking together several branch offices and dozens of employees. There was a database server in each office and the home office ran the replicator. Data was at most 5 minutes stale. If the database is SQL Server 2005, then you win a cool new thing called "mirrored" databases. You need a pair of servers, yours and theirs, able to communicate. After that, it's a cinch to set up. A wizard takes you through it. hth, Arthur ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Saturday, September 9, 2006 4:26:18 PM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 The answer to nearly all of your questions is found in my (apparently less than clear statement): "For purposes of security, it cannot be on a network drive shared by the two companies." I guess the problem is the word "security". Don't think of "database security" or "network security"; note that I work for General Dynamics, and think of "military security" or even "national security" instead, although that might be a bit of overkill. We are working with another company. We cannot have a normal shared network with them; again, that's because of security (see above). We can, however deposit the database in a very secure place where they can pick it up, use it, return it, and then we pick it up again. I was hoping that replication might avoid this. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 Message: 16 Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) From: Subject: Re: [AccessD] Replication and Referential Integrity To: Access Developers discussion and problem solving Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sun Sep 10 23:08:25 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sun, 10 Sep 2006 21:08:25 -0700 Subject: [AccessD] change control source via vba In-Reply-To: Message-ID: <001001c6d557$ee740610$6801a8c0@HAL9005> Bob: I think the right syntax is, in the Load or Open event (can never remember which is best) txtMyTextBox.ControlSource = "fieldnamefromyourtable" Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, September 10, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 From accessd at shaw.ca Sun Sep 10 23:18:49 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 10 Sep 2006 21:18:49 -0700 Subject: [AccessD] change control source via vba In-Reply-To: Message-ID: <0J5E00AHLUL5WTK0@l-daemon> Hi Bob: It is very simple: 1. In the Modules section create a public function that say calls a Form and/or sets a variable. In a form multiple option would be available. What ever way decided select an appropriate data sources. Public Sub SetTheReportDataSource(rptCallerReport as Report) 'Note: Public Variable strSelectedReprtTableSourceName = "" ' You could do multiple menu forms and select your own source ' or just one allow record source to be selected.... Select Case rptCallerReport.Name Case "ReportName1" ... DoCmd.OpenForm "ReportSourceSelectorMenu" Or strSelectedReprtTableSourceName = "MyTableSource" ... Case "ReportName2" ... End Select 'if change report data source name If strSelectedReprtTableSourceName <> "" Then rptCallerReport.RecordSource = strSelectedReprtTableSourceName End if End Sub 2. Go into design mode of the report and select the event tab, of the report properties. Right-mouse-click the 'On Open' event and select 'Build'. Private Sub Report_Open(Cancel As Integer) 'From the Report... SetTheReportDataSource [Reports]![ReportName1] End Sub This was done quickly from memory but it should and does work. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, September 10, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Sep 11 03:31:58 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 11 Sep 2006 10:31:58 +0200 Subject: [AccessD] dll deployment Message-ID: Hi William No, but thanks for the tip. I love this paragraph: It is good practice to install application DLLs in the same directory that contains the application, even if you are not using DLL redirection. This ensures that installing the application does not overwrite other copies of the DLL and cause other applications to fail. Also, if you follow this good practice, other applications do not overwrite your copy of the DLL and cause your application to fail. So much for shared DLLs. Wasn't the option to share a DLL one of the reasons to use these? /gustav >>> wdhindman at dejpolsystems.com 10-09-2006 21:47:53 >>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic_link_library_redirection.asp ...anyone using such redirection with Access? William Hindman From jimdettman at verizon.net Mon Sep 11 04:11:25 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 11 Sep 2006 05:11:25 -0400 Subject: [AccessD] dll deployment In-Reply-To: Message-ID: <0J5F00KUQ8768KQ2@vms044.mailsrvcs.net> Gustav <> Yes, but Microsoft basically gave up on the shared Dll approach years ago. The recommendation below has been around for many years; a couple of years before .Net in fact. I'm thinking this came out around the Access 95/97 time frame, but I could be wrong. In any case, this recommendation was Microsoft's first (and only that I'm aware of) that the whole concept of shared Dlls simply didn't work. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, September 11, 2006 4:32 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] dll deployment Hi William No, but thanks for the tip. I love this paragraph: It is good practice to install application DLLs in the same directory that contains the application, even if you are not using DLL redirection. This ensures that installing the application does not overwrite other copies of the DLL and cause other applications to fail. Also, if you follow this good practice, other applications do not overwrite your copy of the DLL and cause your application to fail. So much for shared DLLs. Wasn't the option to share a DLL one of the reasons to use these? /gustav >>> wdhindman at dejpolsystems.com 10-09-2006 21:47:53 >>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas e/dynamic_link_library_redirection.asp ...anyone using such redirection with Access? William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Mon Sep 11 07:27:01 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Mon, 11 Sep 2006 17:57:01 +0530 Subject: [AccessD] change control source via vba References: Message-ID: Bob, Typically, dynamic assignment of control source might also be accompanied by selective hiding/un-hiding of controls. For a practical demonstration covering reports as well as forms, my sample db named MotelBooking might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Second option on the main switchboard, captioned "Booking Status (Style 2) - Dates Across Columns", should be pertinent to your case. You could adapt the underlying approach suitably, for your specific needs. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Bob Heygood To: Access Developers discussion and problem solving Sent: Monday, September 11, 2006 05:06 Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob From Jim.Hale at FleetPride.com Mon Sep 11 09:09:46 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 11 Sep 2006 09:09:46 -0500 Subject: [AccessD] access.exe process not terminating Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF59@corp-es01.fleetpride.com> Welcome to AccessD. In your function try setting each of your object variables to nothing at the very end and see if this clears up the problem. ex set db=nothing set recLang=nothing set FrmF=nothing set ctlc=nothing HTH Jim Hale -----Original Message----- From: Daniel Hurtubise [mailto:danielh at eti-canada.com] Sent: Monday, May 01, 2006 3:03 PM To: accessd at databaseadvisors.com Subject: [AccessD] access.exe process not terminating Hello everyone: This is my first post. Sorry It might be a bit rough...... Objective: To have a screen change it labels depending on language selected. Situation: Labels are all successfully changed and application works perfectly. HOWEVER: when leaving the application MSACCESS.EXE does not close out in the task manager. This only happens if the translation module is called. The code is inoffensive but I've been at it now for two days !!!! The ghost being produced leaves me believing that something is not closed properly. Any ideas? Form A: Calls a function which sits within a Module ' ######################################################### ' Form Open Event ' ######################################################### Private Sub Form_Open(Cancel As Integer) ' ' Set Language to current form ' Call changeFormLanguage(glang, Me) End Sub Module Code: ' ######################################################### ' This section will cycle every form for a language change ' ######################################################### Public Function changeFormLanguage(strLang As String, strFormName As Form) Dim db As Database Dim recLang As Recordset Dim objAo As AccessObject Dim objCP As Object Dim FrmF As Form ' current form Dim ctlc As Control ' current control Dim strControlName As String ' name of control Dim intControlType As Integer ' control type Dim strLangField As String 'open the database and language recordset Set db = CurrentDb() Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) recLang.Index = "PrimaryKey" Set FrmF = strFormName strLangField = IIf(strLang = "English", "Lbl_DescEn", "Lbl_DescFr") With recLang .Seek "=", strFormName, strFormName 'add or update the form in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then FrmF.Caption = " " Else FrmF.Caption = .Fields(strLangField) End If 'now loop through the controls For Each ctlc In FrmF.Controls 'we are interested in the controls with captions intControlType = ctlc.ControlType If ControlHasCaption(intControlType) = True Then 'find the control in the language table strControlName = ctlc.Name .Seek "=", strFormName.Name, strControlName 'add or update the control in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then ctlc.Caption = "" Else ctlc.Caption = .Fields(strLangField) End If End If Next End With 'close up recLang.Close db.Close End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From mmattys at rochester.rr.com Mon Sep 11 09:24:42 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 11 Sep 2006 10:24:42 -0400 Subject: [AccessD] access.exe process not terminating References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF59@corp-es01.fleetpride.com> Message-ID: <00fc01c6d5ae$0771eb90$0202a8c0@default> Hi Jim, >From: Daniel Hurtubise >Sent: Monday, May 01, 2006 3:03 PM Did you receive this today? :) Michael R. Mattys MapPoint Developer www.mattysconsulting.com From bchacc at san.rr.com Mon Sep 11 09:29:04 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 11 Sep 2006 07:29:04 -0700 Subject: [AccessD] OT: Solution In Search Of A Problem Message-ID: <002c01c6d5ae$a41938e0$6801a8c0@HAL9005> I came across this tidbit as I was trying to figure out why the auto complete for email addresses wasn?t working consistently in Outlook. You can force the auto complete by pressing ctrl-K. Still haven?t figured out why the auto complete works for some addresses and not others. Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 From bchacc at san.rr.com Mon Sep 11 09:30:49 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 11 Sep 2006 07:30:49 -0700 Subject: [AccessD] Security Level Message-ID: <003101c6d5ae$e1101070$6801a8c0@HAL9005> Dear List: I wrote last week about my distributor in Taiwan not being able to run an mde ? getting an error that the file does not have a digital signature. The solution offered was, I think the correct one ? Tools-->Macro-->Security, and select ?Low?. However, she is running W2K with A2K and does not have that option. Is there a workaround for this in W2K/A2K? MTIA, Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 From Jim.Hale at FleetPride.com Mon Sep 11 09:34:46 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 11 Sep 2006 09:34:46 -0500 Subject: [AccessD] access.exe process not terminating Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF5C@corp-es01.fleetpride.com> yes. I didn't notice the date till just now though. Jim Hale -----Original Message----- From: Michael R Mattys [mailto:mmattys at rochester.rr.com] Sent: Monday, September 11, 2006 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] access.exe process not terminating Hi Jim, >From: Daniel Hurtubise >Sent: Monday, May 01, 2006 3:03 PM Did you receive this today? :) Michael R. Mattys MapPoint Developer www.mattysconsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From mmattys at rochester.rr.com Mon Sep 11 10:35:45 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 11 Sep 2006 11:35:45 -0400 Subject: [AccessD] access.exe process not terminating References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF5C@corp-es01.fleetpride.com> Message-ID: <013401c6d5b7$f471d4b0$0202a8c0@default> ----- Original Message ----- From: "Hale, Jim" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 11, 2006 10:34 AM Subject: Re: [AccessD] access.exe process not terminating > yes. I didn't notice the date till just now though. > Jim Hale Jim, I couldn't tell because I don't clear my email. Anyway, it should provide useful info for Daniel in case he wasn't aware. Michael R. Mattys MapPoint Developer www.mattysconsulting.com From jimdettman at verizon.net Mon Sep 11 11:02:00 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 11 Sep 2006 12:02:00 -0400 Subject: [AccessD] Security Level In-Reply-To: <003101c6d5ae$e1101070$6801a8c0@HAL9005> Message-ID: <0J5F0063MR7QOKH3@vms048.mailsrvcs.net> Rocky, Here's the other way around that: http://office.microsoft.com/en-us/assistance/HP010446111033.aspx Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, September 11, 2006 10:31 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Security Level Dear List: I wrote last week about my distributor in Taiwan not being able to run an mde - getting an error that the file does not have a digital signature. The solution offered was, I think the correct one - Tools-->Macro-->Security, and select 'Low". However, she is running W2K with A2K and does not have that option. Is there a workaround for this in W2K/A2K? MTIA, Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Sep 11 11:53:14 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 11 Sep 2006 09:53:14 -0700 Subject: [AccessD] Security Level In-Reply-To: <0J5F0063MR7QOKH3@vms048.mailsrvcs.net> Message-ID: <006901c6d5c2$c807bd80$6801a8c0@HAL9005> Jim: That addresses Access 2003 and we're working in A2K ("At the High or Medium macro security level in Access," - that level's not available in A2K). So I'm looking for a workaround in A2K, and I'd prefer not to get into the digital signature problem at all if possible. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 11, 2006 9:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Security Level Rocky, Here's the other way around that: http://office.microsoft.com/en-us/assistance/HP010446111033.aspx Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, September 11, 2006 10:31 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Security Level Dear List: I wrote last week about my distributor in Taiwan not being able to run an mde - getting an error that the file does not have a digital signature. The solution offered was, I think the correct one - Tools-->Macro-->Security, and select 'Low". However, she is running W2K with A2K and does not have that option. Is there a workaround for this in W2K/A2K? MTIA, Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 From bheygood at abestsystems.com Mon Sep 11 13:04:10 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Mon, 11 Sep 2006 11:04:10 -0700 Subject: [AccessD] change control source via vba In-Reply-To: <0J5E00AHLUL5WTK0@l-daemon> Message-ID: Hello Jim, I may have not been clear on this. I needed to set the source for a certain unbound control, not the report itself which has a recordsource. I think I got it now. Thanks for taking the time to respond. bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence Sent: Sunday, September 10, 2006 9:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] change control source via vba Hi Bob: It is very simple: 1. In the Modules section create a public function that say calls a Form and/or sets a variable. In a form multiple option would be available. What ever way decided select an appropriate data sources. Public Sub SetTheReportDataSource(rptCallerReport as Report) 'Note: Public Variable strSelectedReprtTableSourceName = "" ' You could do multiple menu forms and select your own source ' or just one allow record source to be selected.... Select Case rptCallerReport.Name Case "ReportName1" ... DoCmd.OpenForm "ReportSourceSelectorMenu" Or strSelectedReprtTableSourceName = "MyTableSource" ... Case "ReportName2" ... End Select 'if change report data source name If strSelectedReprtTableSourceName <> "" Then rptCallerReport.RecordSource = strSelectedReprtTableSourceName End if End Sub 2. Go into design mode of the report and select the event tab, of the report properties. Right-mouse-click the 'On Open' event and select 'Build'. Private Sub Report_Open(Cancel As Integer) 'From the Report... SetTheReportDataSource [Reports]![ReportName1] End Sub This was done quickly from memory but it should and does work. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, September 10, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Mon Sep 11 13:07:02 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Mon, 11 Sep 2006 11:07:02 -0700 Subject: [AccessD] change control source via vba In-Reply-To: <001001c6d557$ee740610$6801a8c0@HAL9005> Message-ID: Hey Rocky, Thanks for the jump start. This did the trick: Me!txtInfo5.ControlSource = gField5 best, bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Beach Access Software Sent: Sunday, September 10, 2006 9:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] change control source via vba Bob: I think the right syntax is, in the Load or Open event (can never remember which is best) txtMyTextBox.ControlSource = "fieldnamefromyourtable" Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, September 10, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Mon Sep 11 13:11:10 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Mon, 11 Sep 2006 11:11:10 -0700 Subject: [AccessD] change control source via vba In-Reply-To: Message-ID: Hello A D, Thanks for taking the time to respond. It appears that you are using queries to arrange the data, without actually modifying the form controls. This might have been a better way to do what I am doing, but I am now too far into another method. best, bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.TEJPAL Sent: Monday, September 11, 2006 5:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] change control source via vba Bob, Typically, dynamic assignment of control source might also be accompanied by selective hiding/un-hiding of controls. For a practical demonstration covering reports as well as forms, my sample db named MotelBooking might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Second option on the main switchboard, captioned "Booking Status (Style 2) - Dates Across Columns", should be pertinent to your case. You could adapt the underlying approach suitably, for your specific needs. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Bob Heygood To: Access Developers discussion and problem solving Sent: Monday, September 11, 2006 05:06 Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 11 13:28:05 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 11 Sep 2006 11:28:05 -0700 Subject: [AccessD] change control source via vba In-Reply-To: Message-ID: <0J5F00JUXXWILWN0@l-daemon> Sorry about that Bob... thought the problem was a little more complex or you would not have been asking... it was almost too simple. Good to see you got the answer. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Monday, September 11, 2006 11:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] change control source via vba Hello Jim, I may have not been clear on this. I needed to set the source for a certain unbound control, not the report itself which has a recordsource. I think I got it now. Thanks for taking the time to respond. bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence Sent: Sunday, September 10, 2006 9:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] change control source via vba Hi Bob: It is very simple: 1. In the Modules section create a public function that say calls a Form and/or sets a variable. In a form multiple option would be available. What ever way decided select an appropriate data sources. Public Sub SetTheReportDataSource(rptCallerReport as Report) 'Note: Public Variable strSelectedReprtTableSourceName = "" ' You could do multiple menu forms and select your own source ' or just one allow record source to be selected.... Select Case rptCallerReport.Name Case "ReportName1" ... DoCmd.OpenForm "ReportSourceSelectorMenu" Or strSelectedReprtTableSourceName = "MyTableSource" ... Case "ReportName2" ... End Select 'if change report data source name If strSelectedReprtTableSourceName <> "" Then rptCallerReport.RecordSource = strSelectedReprtTableSourceName End if End Sub 2. Go into design mode of the report and select the event tab, of the report properties. Right-mouse-click the 'On Open' event and select 'Build'. Private Sub Report_Open(Cancel As Integer) 'From the Report... SetTheReportDataSource [Reports]![ReportName1] End Sub This was done quickly from memory but it should and does work. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, September 10, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 11 14:25:33 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 11 Sep 2006 15:25:33 -0400 Subject: [AccessD] dll deployment References: <0J5F00KUQ8768KQ2@vms044.mailsrvcs.net> Message-ID: <006c01c6d5d8$0e27cf20$153ce944@50NM721> gustav/jim ...so this is the way to go? ...no better alternatives around? ...I'm asking because after many years of avoiding 3rd party controls like the plague I'm now forced to use one ...and if I use one, I may be tempted to use others ...on first look, this approach would appear to resolve the version issues ...but I was certainly hoping someone had already been down this road. William Hindman ----- Original Message ----- From: "Jim Dettman" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 11, 2006 5:11 AM Subject: Re: [AccessD] dll deployment > Gustav > > < reasons to use these?>> > > Yes, but Microsoft basically gave up on the shared Dll approach years > ago. > The recommendation below has been around for many years; a couple of years > before .Net in fact. I'm thinking this came out around the Access 95/97 > time frame, but I could be wrong. > > In any case, this recommendation was Microsoft's first (and only that I'm > aware of) that the whole concept of shared Dlls simply didn't work. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, September 11, 2006 4:32 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] dll deployment > > Hi William > > No, but thanks for the tip. > I love this paragraph: > > > It is good practice to install application DLLs in the same directory that > contains the application, even if you are not using DLL redirection. This > ensures that installing the application does not overwrite other copies of > the DLL and cause other applications to fail. Also, if you follow this > good > practice, other applications do not overwrite your copy of the DLL and > cause > your application to fail. > > > So much for shared DLLs. Wasn't the option to share a DLL one of the > reasons > to use these? > > /gustav > > >>>> wdhindman at dejpolsystems.com 10-09-2006 21:47:53 >>> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas > e/dynamic_link_library_redirection.asp > > ...anyone using such redirection with Access? > > William Hindman > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Mon Sep 11 14:42:22 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 11 Sep 2006 12:42:22 -0700 Subject: [AccessD] Security Level In-Reply-To: <006901c6d5c2$c807bd80$6801a8c0@HAL9005> References: <006901c6d5c2$c807bd80$6801a8c0@HAL9005> Message-ID: <4505BC1E.4050908@shaw.ca> Well Access 2000 didn't have certificates for vba code. I think only for Word 2000 and Excel 2000. If you created an mdb in 2003 with a certificate converted to 2000 format and then you opened in Access 2000 and created an mde. You invalidated the digital signature by opening the file in Access 2000 and running the MDE conversion utility. To explain, you opened the MDB file in Access 2000, which doesn't support digital signatures, so slight changes were made to the file in order to successfully create the MDE file, making it "altered" from the original. If a signed file has been altered, then the digital signature becomes invalid. That's what digital signatures are for. A SelfCert digital certificate will work for medium level Macro Security, but not for high. Does she have the signature in the digital signature cache Go into IE --> Tools --> Internet Options --> Content There is an import option. Also check for registry keys for 9.0 (2000) either HKEY_Local_Machine\Software\Microsoft\Office\10.0\Access\Security\Level=1 HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level=1 Beach Access Software wrote: >Jim: > >That addresses Access 2003 and we're working in A2K ("At the High or Medium >macro security level in Access," - that level's not available in A2K). > >So I'm looking for a workaround in A2K, and I'd prefer not to get into the >digital signature problem at all if possible. > >Thanks and regards, > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, September 11, 2006 9:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Security Level > >Rocky, > >Here's the other way around that: > >http://office.microsoft.com/en-us/assistance/HP010446111033.aspx > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >Software >Sent: Monday, September 11, 2006 10:31 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Security Level > >Dear List: > > > >I wrote last week about my distributor in Taiwan not being able to run an >mde - getting an error that the file does not have a digital signature. The >solution offered was, I think the correct one - Tools-->Macro-->Security, >and select 'Low". > > > >However, she is running W2K with A2K and does not have that option. Is >there a workaround for this in W2K/A2K? > > > >MTIA, > > > >Rocky > > > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Sep 11 14:59:04 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 11 Sep 2006 12:59:04 -0700 Subject: [AccessD] dll deployment In-Reply-To: <006c01c6d5d8$0e27cf20$153ce944@50NM721> References: <0J5F00KUQ8768KQ2@vms044.mailsrvcs.net> <006c01c6d5d8$0e27cf20$153ce944@50NM721> Message-ID: <4505C008.7020703@shaw.ca> Here is the order of checking for a reference Access checks to see if the referenced file name is currently loaded in memory. If not, Access verifies whether the RefLibPaths registry key exists. If so, Access looks for a named value with the same name as the reference. If there is a match, Access loads the reference from the path that is pointed to by the named value. Access next searches the following locations for the referenced file: Application Folder (location of Msaccess.exe) Current Folder that you see if you click Open on the File menu where mdb file located WinDir where the operating system files are running System Folder located in the WinDir the PATH environment list of folders directly accessible by the system. William Hindman wrote: >gustav/jim > >...so this is the way to go? ...no better alternatives around? ...I'm asking >because after many years of avoiding 3rd party controls like the plague I'm >now forced to use one ...and if I use one, I may be tempted to use others >...on first look, this approach would appear to resolve the version issues >...but I was certainly hoping someone had already been down this road. > >William Hindman > >----- Original Message ----- >From: "Jim Dettman" >To: "'Access Developers discussion and problem solving'" > >Sent: Monday, September 11, 2006 5:11 AM >Subject: Re: [AccessD] dll deployment > > > > >>Gustav >> >><>reasons to use these?>> >> >> Yes, but Microsoft basically gave up on the shared Dll approach years >>ago. >>The recommendation below has been around for many years; a couple of years >>before .Net in fact. I'm thinking this came out around the Access 95/97 >>time frame, but I could be wrong. >> >> In any case, this recommendation was Microsoft's first (and only that I'm >>aware of) that the whole concept of shared Dlls simply didn't work. >> >>Jim. >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>Sent: Monday, September 11, 2006 4:32 AM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] dll deployment >> >>Hi William >> >>No, but thanks for the tip. >>I love this paragraph: >> >> >>It is good practice to install application DLLs in the same directory that >>contains the application, even if you are not using DLL redirection. This >>ensures that installing the application does not overwrite other copies of >>the DLL and cause other applications to fail. Also, if you follow this >>good >>practice, other applications do not overwrite your copy of the DLL and >>cause >>your application to fail. >> >> >>So much for shared DLLs. Wasn't the option to share a DLL one of the >>reasons >>to use these? >> >>/gustav >> >> >> >> >>>>>wdhindman at dejpolsystems.com 10-09-2006 21:47:53 >>> >>>>> >>>>> >>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas >>e/dynamic_link_library_redirection.asp >> >>...anyone using such redirection with Access? >> >>William Hindman >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > > > -- Marty Connelly Victoria, B.C. Canada From itsame2000 at sbcglobal.net Mon Sep 11 15:00:15 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Mon, 11 Sep 2006 13:00:15 -0700 (PDT) Subject: [AccessD] Open Database Method Message-ID: <20060911200015.4991.qmail@web83005.mail.mud.yahoo.com> I hit a snag with a process I'm putting together. I'm trying to use the OpenDatabase method in an Access 2000 database to open a second Access 2000 database so that I can enumerate indices. I want to delete indices and reindex on demand from the first database. I'm getting an error that the database is an unrecognized format. I can open the 2nd database without problem if I go to it directly. Here is the code I'm using. Ideas? Has anyone done this before? Thanks, Jeremy Sub TestThis() Dim wrkJet As DAO.Workspace Dim db As DAO.Database Dim sDB As String sDB = "C:\Test\BackEnd.mdb" Set wrkJet = CreateWorkspace("wrkSpace", "admin", "", dbUseJet) Set db = OpenDatabase(sDB, True) Set db = Nothing Set wrkject = Nothing End Sub From Johncliviger at aol.com Mon Sep 11 15:24:05 2006 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 11 Sep 2006 16:24:05 EDT Subject: [AccessD] Exporting questions and importing answers in AXP Message-ID: <3f0.a116201.32371fe5@aol.com> Hi all I have a fault report that AXP produces (in .snp format) and is emailed to a supplier. Which the supplier fills in by hand and returns. I need to cut out the hand writing bit and have a screen form to fill in by the supplier. What is the best approach using email to send a supplier a fault report that he can fill in on screen and return so that the fault report contents are uploaded into the AXP db with minimum effort? I'm looking for a general guide eg do I use a pdf format, do I go for a runtime db or a word doc? TIA regards johnc From jwcolby at colbyconsulting.com Mon Sep 11 16:07:34 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 11 Sep 2006 17:07:34 -0400 Subject: [AccessD] Strange bug Message-ID: <000f01c6d5e6$4ef39b20$657aa8c0@m6805> I have "malformed string" in a comma delimited file. The record in question has valid data, but out in the middle of the string has > 3000 spaces and InStr() cannot find any spaces out in the area of the string where these 3000 spaces reside. I'm baffled. I need to find this string (in a 3 million line file) and not copy just that line, but I can't sense the line. Weird. John W. Colby Colby Consulting www.ColbyConsulting.com From jimdettman at verizon.net Mon Sep 11 16:25:45 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 11 Sep 2006 17:25:45 -0400 Subject: [AccessD] Strange bug In-Reply-To: <000f01c6d5e6$4ef39b20$657aa8c0@m6805> Message-ID: <0J5G0006K674IVX0@vms046.mailsrvcs.net> John, You sure their spaces? I'd look at them with a hex editor. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 11, 2006 5:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Strange bug I have "malformed string" in a comma delimited file. The record in question has valid data, but out in the middle of the string has > 3000 spaces and InStr() cannot find any spaces out in the area of the string where these 3000 spaces reside. I'm baffled. I need to find this string (in a 3 million line file) and not copy just that line, but I can't sense the line. Weird. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Sep 11 16:43:48 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 11 Sep 2006 14:43:48 -0700 Subject: [AccessD] Security Level In-Reply-To: <4505BC1E.4050908@shaw.ca> Message-ID: <005201c6d5eb$5e380bc0$6801a8c0@HAL9005> If I created a new mdb in A2K and imported all the objects from the other one, then made the mde from that, do you think that would work? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, September 11, 2006 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Security Level Well Access 2000 didn't have certificates for vba code. I think only for Word 2000 and Excel 2000. If you created an mdb in 2003 with a certificate converted to 2000 format and then you opened in Access 2000 and created an mde. You invalidated the digital signature by opening the file in Access 2000 and running the MDE conversion utility. To explain, you opened the MDB file in Access 2000, which doesn't support digital signatures, so slight changes were made to the file in order to successfully create the MDE file, making it "altered" from the original. If a signed file has been altered, then the digital signature becomes invalid. That's what digital signatures are for. A SelfCert digital certificate will work for medium level Macro Security, but not for high. Does she have the signature in the digital signature cache Go into IE --> Tools --> Internet Options --> Content There is an import option. Also check for registry keys for 9.0 (2000) either HKEY_Local_Machine\Software\Microsoft\Office\10.0\Access\Security\Level=1 HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level=1 Beach Access Software wrote: >Jim: > >That addresses Access 2003 and we're working in A2K ("At the High or Medium >macro security level in Access," - that level's not available in A2K). > >So I'm looking for a workaround in A2K, and I'd prefer not to get into the >digital signature problem at all if possible. > >Thanks and regards, > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, September 11, 2006 9:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Security Level > >Rocky, > >Here's the other way around that: > >http://office.microsoft.com/en-us/assistance/HP010446111033.aspx > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >Software >Sent: Monday, September 11, 2006 10:31 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Security Level > >Dear List: > > > >I wrote last week about my distributor in Taiwan not being able to run an >mde - getting an error that the file does not have a digital signature. The >solution offered was, I think the correct one - Tools-->Macro-->Security, >and select 'Low". > > > >However, she is running W2K with A2K and does not have that option. Is >there a workaround for this in W2K/A2K? > > > >MTIA, > > > >Rocky > > > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 From jwcolby at colbyconsulting.com Mon Sep 11 16:45:30 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 11 Sep 2006 17:45:30 -0400 Subject: [AccessD] Strange bug In-Reply-To: <0J5G0006K674IVX0@vms046.mailsrvcs.net> Message-ID: <001401c6d5eb$9b629d80$657aa8c0@m6805> Good call. They are in fact a hex 00. The odd part is that I cut one of them into the paste buffer, and then inserted it between two quotes, and compared that to a space between two quotes (using the = operator) and got a positive compare. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 11, 2006 5:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Strange bug John, You sure their spaces? I'd look at them with a hex editor. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 11, 2006 5:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Strange bug I have "malformed string" in a comma delimited file. The record in question has valid data, but out in the middle of the string has > 3000 spaces and InStr() cannot find any spaces out in the area of the string where these 3000 spaces reside. I'm baffled. I need to find this string (in a 3 million line file) and not copy just that line, but I can't sense the line. Weird. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Sep 11 16:59:58 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 11 Sep 2006 16:59:58 -0500 Subject: [AccessD] Strange bug Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0100E8A2@MARLOW_MAIN2.marlow.com> Are you sure they are spaces, and not a strange ASCII character that looks like a space? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Monday, September 11, 2006 4:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Strange bug I have "malformed string" in a comma delimited file. The record in question has valid data, but out in the middle of the string has > 3000 spaces and InStr() cannot find any spaces out in the area of the string where these 3000 spaces reside. I'm baffled. I need to find this string (in a 3 million line file) and not copy just that line, but I can't sense the line. Weird. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 11 19:08:07 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 11 Sep 2006 20:08:07 -0400 Subject: [AccessD] dll deployment References: <0J5F00KUQ8768KQ2@vms044.mailsrvcs.net><006c01c6d5d8$0e27cf20$153ce944@50NM721> <4505C008.7020703@shaw.ca> Message-ID: <000301c6d5ff$87895920$153ce944@50NM721> ...that's the default check path that I've always depended upon ...but the article says that by sticking an app.local file in the app directory it will change that default check path to check the local directory first ...I was looking to see if anyone here had used it successfully. William Hindman ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Monday, September 11, 2006 3:59 PM Subject: Re: [AccessD] dll deployment > Here is the order of checking for a reference > > Access checks to see if the referenced file name is currently loaded in > memory. > If not, Access verifies whether the RefLibPaths registry key exists. If > so, Access looks for a named value with the same name as the reference. > If there is a match, Access loads the reference from the path that is > pointed to by the named value. > > Access next searches the following locations for the referenced file: > Application Folder (location of Msaccess.exe) > Current Folder that you see if you click Open on the File menu where > mdb file located > WinDir where the operating system files are running > System Folder located in the WinDir > the PATH environment list of folders directly accessible by the system. > > William Hindman wrote: > >>gustav/jim >> >>...so this is the way to go? ...no better alternatives around? ...I'm >>asking >>because after many years of avoiding 3rd party controls like the plague >>I'm >>now forced to use one ...and if I use one, I may be tempted to use others >>...on first look, this approach would appear to resolve the version issues >>...but I was certainly hoping someone had already been down this road. >> >>William Hindman >> >>----- Original Message ----- >>From: "Jim Dettman" >>To: "'Access Developers discussion and problem solving'" >> >>Sent: Monday, September 11, 2006 5:11 AM >>Subject: Re: [AccessD] dll deployment >> >> >> >> >>>Gustav >>> >>><>>reasons to use these?>> >>> >>> Yes, but Microsoft basically gave up on the shared Dll approach years >>>ago. >>>The recommendation below has been around for many years; a couple of >>>years >>>before .Net in fact. I'm thinking this came out around the Access 95/97 >>>time frame, but I could be wrong. >>> >>> In any case, this recommendation was Microsoft's first (and only that >>> I'm >>>aware of) that the whole concept of shared Dlls simply didn't work. >>> >>>Jim. >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>>Sent: Monday, September 11, 2006 4:32 AM >>>To: accessd at databaseadvisors.com >>>Subject: Re: [AccessD] dll deployment >>> >>>Hi William >>> >>>No, but thanks for the tip. >>>I love this paragraph: >>> >>> >>>It is good practice to install application DLLs in the same directory >>>that >>>contains the application, even if you are not using DLL redirection. This >>>ensures that installing the application does not overwrite other copies >>>of >>>the DLL and cause other applications to fail. Also, if you follow this >>>good >>>practice, other applications do not overwrite your copy of the DLL and >>>cause >>>your application to fail. >>> >>> >>>So much for shared DLLs. Wasn't the option to share a DLL one of the >>>reasons >>>to use these? >>> >>>/gustav >>> >>> >>> >>> >>>>>>wdhindman at dejpolsystems.com 10-09-2006 21:47:53 >>> >>>>>> >>>>>> >>>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas >>>e/dynamic_link_library_redirection.asp >>> >>>...anyone using such redirection with Access? >>> >>>William Hindman >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >> >> >> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Mon Sep 11 19:57:32 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 11 Sep 2006 20:57:32 -0400 Subject: [AccessD] Security Level References: <005201c6d5eb$5e380bc0$6801a8c0@HAL9005> Message-ID: <001d01c6d606$6e925730$153ce944@50NM721> ...it should but then what you've done already should have worked as well. ...you might give this a shot first ...its from an MSKB article that I can't find at the moment but from which I have notes in my Treepad: 1) decompile the mdb from A2K3, recompile, save, close. 2) open the mdb in A2K3 3) add a digital signature (use the wizard to create one first if you've not done it before) 4) save and close the mdb 5) open the mdb in A2K3 6) remove the digital signature 7) save and close the mdb 8) open the mdb in A2K3 (if you open it in another version first, the digital signature will still be there) 9) save and close the mdb ...you should now be able to create an A2K mde that will open in A2K without the warnings. William Hindman ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 11, 2006 5:43 PM Subject: Re: [AccessD] Security Level > If I created a new mdb in A2K and imported all the objects from the other > one, then made the mde from that, do you think that would work? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Monday, September 11, 2006 12:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Security Level > > Well Access 2000 didn't have certificates for vba code. > I think only for Word 2000 and Excel 2000. > > If you created an mdb in 2003 with a certificate converted to 2000 format > and then you opened in Access 2000 and created an mde. You invalidated > the digital > signature by opening the file in Access 2000 and running the MDE > conversion > utility. To explain, you opened the MDB file in Access 2000, which > doesn't > support digital signatures, so slight changes were made to the file in > order > to successfully create the MDE file, making it "altered" from the > original. > If a signed file has been altered, then the digital signature becomes > invalid. That's what digital signatures are for. > > > A SelfCert digital certificate will work for medium level Macro > Security, but not for high. > > Does she have the signature in the digital signature cache > Go into IE --> Tools --> Internet Options --> Content > There is an import option. > > Also check for registry keys for 9.0 (2000) > either > > HKEY_Local_Machine\Software\Microsoft\Office\10.0\Access\Security\Level=1 > > HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level=1 > > Beach Access Software wrote: > >>Jim: >> >>That addresses Access 2003 and we're working in A2K ("At the High or >>Medium >>macro security level in Access," - that level's not available in A2K). >> >>So I'm looking for a workaround in A2K, and I'd prefer not to get into the >>digital signature problem at all if possible. >> >>Thanks and regards, >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >>Sent: Monday, September 11, 2006 9:02 AM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] Security Level >> >>Rocky, >> >>Here's the other way around that: >> >>http://office.microsoft.com/en-us/assistance/HP010446111033.aspx >> >>Jim. >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >>Software >>Sent: Monday, September 11, 2006 10:31 AM >>To: 'Access Developers discussion and problem solving' >>Subject: [AccessD] Security Level >> >>Dear List: >> >> >> >>I wrote last week about my distributor in Taiwan not being able to run an >>mde - getting an error that the file does not have a digital signature. > The >>solution offered was, I think the correct one - Tools-->Macro-->Security, >>and select 'Low". >> >> >> >>However, she is running W2K with A2K and does not have that option. Is >>there a workaround for this in W2K/A2K? >> >> >> >>MTIA, >> >> >> >>Rocky >> >> >> >> >> >>Rocky Smolin >> >>Beach Access Software >> >>858-259-4334 >> >>www.e-z-mrp.com >> >> >> >> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From darrend at nimble.com.au Mon Sep 11 22:54:59 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 12 Sep 2006 13:54:59 +1000 Subject: [AccessD] Formatting a Check Box In-Reply-To: <000001c6d4eb$81498540$0200a8c0@danwaters> Message-ID: <20060912035502.TPIP16502.omta02ps.mx.bigpond.com@DENZILLAP> Hi Dan Sample Demo sent off list Any "me too's" to tripledee at bigpond.com.au See y'all Darren ------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, 11 September 2006 1:12 AM To: AccessD Subject: [AccessD] Formatting a Check Box I would like to 'soften' the border around a checkbox. The property list shows the border color, but even when I change the color, on display the border stays black. I also can't make the border transparent. Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Sep 12 00:33:52 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 11 Sep 2006 22:33:52 -0700 Subject: [AccessD] Security Level In-Reply-To: <001d01c6d606$6e925730$153ce944@50NM721> Message-ID: <008d01c6d62d$085972b0$6801a8c0@HAL9005> Thanks. I'll try it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, September 11, 2006 5:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Security Level ...it should but then what you've done already should have worked as well. ...you might give this a shot first ...its from an MSKB article that I can't find at the moment but from which I have notes in my Treepad: 1) decompile the mdb from A2K3, recompile, save, close. 2) open the mdb in A2K3 3) add a digital signature (use the wizard to create one first if you've not done it before) 4) save and close the mdb 5) open the mdb in A2K3 6) remove the digital signature 7) save and close the mdb 8) open the mdb in A2K3 (if you open it in another version first, the digital signature will still be there) 9) save and close the mdb ...you should now be able to create an A2K mde that will open in A2K without the warnings. William Hindman ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 11, 2006 5:43 PM Subject: Re: [AccessD] Security Level > If I created a new mdb in A2K and imported all the objects from the other > one, then made the mde from that, do you think that would work? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Monday, September 11, 2006 12:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Security Level > > Well Access 2000 didn't have certificates for vba code. > I think only for Word 2000 and Excel 2000. > > If you created an mdb in 2003 with a certificate converted to 2000 format > and then you opened in Access 2000 and created an mde. You invalidated > the digital > signature by opening the file in Access 2000 and running the MDE > conversion > utility. To explain, you opened the MDB file in Access 2000, which > doesn't > support digital signatures, so slight changes were made to the file in > order > to successfully create the MDE file, making it "altered" from the > original. > If a signed file has been altered, then the digital signature becomes > invalid. That's what digital signatures are for. > > > A SelfCert digital certificate will work for medium level Macro > Security, but not for high. > > Does she have the signature in the digital signature cache > Go into IE --> Tools --> Internet Options --> Content > There is an import option. > > Also check for registry keys for 9.0 (2000) > either > > HKEY_Local_Machine\Software\Microsoft\Office\10.0\Access\Security\Level=1 > > HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level=1 > > Beach Access Software wrote: > >>Jim: >> >>That addresses Access 2003 and we're working in A2K ("At the High or >>Medium >>macro security level in Access," - that level's not available in A2K). >> >>So I'm looking for a workaround in A2K, and I'd prefer not to get into the >>digital signature problem at all if possible. >> >>Thanks and regards, >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >>Sent: Monday, September 11, 2006 9:02 AM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] Security Level >> >>Rocky, >> >>Here's the other way around that: >> >>http://office.microsoft.com/en-us/assistance/HP010446111033.aspx >> >>Jim. >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >>Software >>Sent: Monday, September 11, 2006 10:31 AM >>To: 'Access Developers discussion and problem solving' >>Subject: [AccessD] Security Level >> >>Dear List: >> >> >> >>I wrote last week about my distributor in Taiwan not being able to run an >>mde - getting an error that the file does not have a digital signature. > The >>solution offered was, I think the correct one - Tools-->Macro-->Security, >>and select 'Low". >> >> >> >>However, she is running W2K with A2K and does not have that option. Is >>there a workaround for this in W2K/A2K? >> >> >> >>MTIA, >> >> >> >>Rocky >> >> >> >> >> >>Rocky Smolin >> >>Beach Access Software >> >>858-259-4334 >> >>www.e-z-mrp.com >> >> >> >> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.3/445 - Release Date: 9/11/2006 From Gustav at cactus.dk Tue Sep 12 03:19:28 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 12 Sep 2006 10:19:28 +0200 Subject: [AccessD] dll deployment Message-ID: Hi William When you deploy your app, just add the DLL to the folder of the app - I think Charlotte is doing this as well. Causes zero issues. /gustav >>> wdhindman at dejpolsystems.com 11-09-2006 21:25:33 >>> gustav/jim ...so this is the way to go? ...no better alternatives around? ...I'm asking because after many years of avoiding 3rd party controls like the plague I'm now forced to use one ...and if I use one, I may be tempted to use others ...on first look, this approach would appear to resolve the version issues ...but I was certainly hoping someone had already been down this road. William Hindman ----- Original Message ----- From: "Jim Dettman" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 11, 2006 5:11 AM Subject: Re: [AccessD] dll deployment > Gustav > > < reasons to use these?>> > > Yes, but Microsoft basically gave up on the shared Dll approach years > ago. > The recommendation below has been around for many years; a couple of years > before .Net in fact. I'm thinking this came out around the Access 95/97 > time frame, but I could be wrong. > > In any case, this recommendation was Microsoft's first (and only that I'm > aware of) that the whole concept of shared Dlls simply didn't work. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, September 11, 2006 4:32 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] dll deployment > > Hi William > > No, but thanks for the tip. > I love this paragraph: > > > It is good practice to install application DLLs in the same directory that > contains the application, even if you are not using DLL redirection. This > ensures that installing the application does not overwrite other copies of > the DLL and cause other applications to fail. Also, if you follow this > good > practice, other applications do not overwrite your copy of the DLL and > cause > your application to fail. > > > So much for shared DLLs. Wasn't the option to share a DLL one of the > reasons > to use these? > > /gustav From martyconnelly at shaw.ca Tue Sep 12 12:11:15 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 12 Sep 2006 10:11:15 -0700 Subject: [AccessD] Security Level In-Reply-To: <001d01c6d606$6e925730$153ce944@50NM721> References: <005201c6d5eb$5e380bc0$6801a8c0@HAL9005> <001d01c6d606$6e925730$153ce944@50NM721> Message-ID: <4506EA33.6090902@shaw.ca> Here is the article. You receive a "Project Is Unviewable" error message while opening a Visual Basic for Applications project in Microsoft Access http://support.microsoft.com/kb/823225/en-us The trick is reopening in Access 2003 after removing certificate. Access 2000 was one of the few Office 2000 products that didn't allow signing vba code. There is also some other trick with a timestamp to allow expired certificates to still run, if you only have a one or two year certificate this maybe a problem down the road. William Hindman wrote: >...it should but then what you've done already should have worked as well. > >...you might give this a shot first ...its from an MSKB article that I can't >find at the moment but from which I have notes in my Treepad: > >1) decompile the mdb from A2K3, recompile, save, close. >2) open the mdb in A2K3 >3) add a digital signature (use the wizard to create one first if you've not >done it before) >4) save and close the mdb >5) open the mdb in A2K3 >6) remove the digital signature >7) save and close the mdb >8) open the mdb in A2K3 (if you open it in another version first, the >digital signature will still be there) >9) save and close the mdb > >...you should now be able to create an A2K mde that will open in A2K without >the warnings. > >William Hindman > >----- Original Message ----- >From: "Beach Access Software" >To: "'Access Developers discussion and problem solving'" > >Sent: Monday, September 11, 2006 5:43 PM >Subject: Re: [AccessD] Security Level > > > > >>If I created a new mdb in A2K and imported all the objects from the other >>one, then made the mde from that, do you think that would work? >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >>Sent: Monday, September 11, 2006 12:42 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Security Level >> >>Well Access 2000 didn't have certificates for vba code. >>I think only for Word 2000 and Excel 2000. >> >>If you created an mdb in 2003 with a certificate converted to 2000 format >>and then you opened in Access 2000 and created an mde. You invalidated >>the digital >>signature by opening the file in Access 2000 and running the MDE >>conversion >>utility. To explain, you opened the MDB file in Access 2000, which >>doesn't >>support digital signatures, so slight changes were made to the file in >>order >>to successfully create the MDE file, making it "altered" from the >>original. >>If a signed file has been altered, then the digital signature becomes >>invalid. That's what digital signatures are for. >> >> >>A SelfCert digital certificate will work for medium level Macro >>Security, but not for high. >> >>Does she have the signature in the digital signature cache >>Go into IE --> Tools --> Internet Options --> Content >>There is an import option. >> >>Also check for registry keys for 9.0 (2000) >>either >> >>HKEY_Local_Machine\Software\Microsoft\Office\10.0\Access\Security\Level=1 >> >>HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level=1 >> >>Beach Access Software wrote: >> >> >> >>>Jim: >>> >>>That addresses Access 2003 and we're working in A2K ("At the High or >>>Medium >>>macro security level in Access," - that level's not available in A2K). >>> >>>So I'm looking for a workaround in A2K, and I'd prefer not to get into the >>>digital signature problem at all if possible. >>> >>>Thanks and regards, >>> >>>Rocky >>> >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >>>Sent: Monday, September 11, 2006 9:02 AM >>>To: 'Access Developers discussion and problem solving' >>>Subject: Re: [AccessD] Security Level >>> >>>Rocky, >>> >>>Here's the other way around that: >>> >>>http://office.microsoft.com/en-us/assistance/HP010446111033.aspx >>> >>>Jim. >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >>>Software >>>Sent: Monday, September 11, 2006 10:31 AM >>>To: 'Access Developers discussion and problem solving' >>>Subject: [AccessD] Security Level >>> >>>Dear List: >>> >>> >>> >>>I wrote last week about my distributor in Taiwan not being able to run an >>>mde - getting an error that the file does not have a digital signature. >>> >>> >>The >> >> >>>solution offered was, I think the correct one - Tools-->Macro-->Security, >>>and select 'Low". >>> >>> >>> >>>However, she is running W2K with A2K and does not have that option. Is >>>there a workaround for this in W2K/A2K? >>> >>> >>> >>>MTIA, >>> >>> >>> >>>Rocky >>> >>> >>> >>> >>> >>>Rocky Smolin >>> >>>Beach Access Software >>> >>>858-259-4334 >>> >>>www.e-z-mrp.com >>> >>> >>> >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>No virus found in this incoming message. >>Checked by AVG Free Edition. >>Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 >> >> >>-- >>No virus found in this outgoing message. >>Checked by AVG Free Edition. >>Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Sep 12 12:31:38 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 12 Sep 2006 10:31:38 -0700 Subject: [AccessD] Strange bug In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0100E8A2@MARLOW_MAIN2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1B0100E8A2@MARLOW_MAIN2.marlow.com> Message-ID: <4506EEFA.1070003@shaw.ca> It depends on the font used when displayed as to whether it appears as a space. There is an ascii no-break space Chr(160) or A0 Hex. And another I think around chr 253, too long since I looked at ansi.sys files. Best to look at record in a hex editor or dump string to a file. DWUTKA at marlow.com wrote: >Are you sure they are spaces, and not a strange ASCII character that looks >like a space? > >Drew > >-----Original Message----- >From: JWColby [mailto:jwcolby at colbyconsulting.com] >Sent: Monday, September 11, 2006 4:08 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Strange bug > >I have "malformed string" in a comma delimited file. The record in question >has valid data, but out in the middle of the string has > 3000 spaces and >InStr() cannot find any spaces out in the area of the string where these >3000 spaces reside. > >I'm baffled. > >I need to find this string (in a 3 million line file) and not copy just that >line, but I can't sense the line. > >Weird. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > > > -- Marty Connelly Victoria, B.C. Canada From tuxedoman888 at gmail.com Tue Sep 12 13:18:48 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 12 Sep 2006 11:18:48 -0700 Subject: [AccessD] copying worksheets Message-ID: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> Hello: >From Access, I'm trying to make a copy of a worksheet within an instance of Excel that is created at runtime in VBA. xlsheet.copy after:=activesheet However, I get the following error message. Run-time error '5' Invalid procedure call or argument Any ideas? Many thanks in advance, Billy -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From Jim.Hale at FleetPride.com Tue Sep 12 13:37:35 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 12 Sep 2006 13:37:35 -0500 Subject: [AccessD] copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF5F@corp-es01.fleetpride.com> I think you need to use worksheets, not worksheet, ie appexcel.Worksheets(7).Copy After:=Worksheets(3) HTH Jim Hale -----Original Message----- From: Billy Pang [mailto:tuxedoman888 at gmail.com] Sent: Tuesday, September 12, 2006 1:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] copying worksheets Hello: >From Access, I'm trying to make a copy of a worksheet within an instance of Excel that is created at runtime in VBA. xlsheet.copy after:=activesheet However, I get the following error message. Run-time error '5' Invalid procedure call or argument Any ideas? Many thanks in advance, Billy -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From tuxedoman888 at gmail.com Tue Sep 12 13:50:59 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 12 Sep 2006 11:50:59 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF5F@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF5F@corp-es01.fleetpride.com> Message-ID: <7c8826480609121150s35e42c7as2816da7c43438a64@mail.gmail.com> Thanks Jim. I tried it but I get the same error message. Billy On 9/12/06, Hale, Jim wrote: > > I think you need to use worksheets, not worksheet, ie > appexcel.Worksheets(7).Copy After:=Worksheets(3) > HTH > Jim Hale > > > -----Original Message----- > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > Sent: Tuesday, September 12, 2006 1:19 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] copying worksheets > > > Hello: > > >From Access, I'm trying to make a copy of a worksheet within an instance > of > Excel that is created at runtime in VBA. > > xlsheet.copy after:=activesheet > > However, I get the following error message. > > Run-time error '5' > > Invalid procedure call or argument > Any ideas? > > Many thanks in advance, > Billy > > -- > Billy Pang > http://dbnotes.blogspot.com/ > "Once the game is over, the King and the pawn go back in the same box." - > Italian proverb > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From martyconnelly at shaw.ca Tue Sep 12 14:24:55 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 12 Sep 2006 12:24:55 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> Message-ID: <45070987.3030309@shaw.ca> Use the Object Browser Luke! There is more than one copy method or it maybe you haven't set the activesheet in your method Sub CopyAndName() ' This creates a new sheet, ' copies the data from the first sheet, Dim sName As String, sht1 As Worksheet, sht2 As Worksheet Set sht1 = ActiveSheet Set sht2 = Worksheets.Add(after:=ActiveSheet) sht2.Name = "MyNewName " sht1.UsedRange.Copy Destination:=sht2.Range("A1") End Sub Billy Pang wrote: >Hello: > >>From Access, I'm trying to make a copy of a worksheet within an instance of >Excel that is created at runtime in VBA. > >xlsheet.copy after:=activesheet > >However, I get the following error message. > >Run-time error '5' > >Invalid procedure call or argument >Any ideas? > >Many thanks in advance, >Billy > > > -- Marty Connelly Victoria, B.C. Canada From Jim.Hale at FleetPride.com Tue Sep 12 14:28:26 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 12 Sep 2006 14:28:26 -0500 Subject: [AccessD] copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF61@corp-es01.fleetpride.com> you are using the worksheets object and not the worksheet object and you still get the error? Are you sure the workbook is not protected? Jim Hale -----Original Message----- From: Billy Pang [mailto:tuxedoman888 at gmail.com] Sent: Tuesday, September 12, 2006 1:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] copying worksheets Thanks Jim. I tried it but I get the same error message. Billy On 9/12/06, Hale, Jim wrote: > > I think you need to use worksheets, not worksheet, ie > appexcel.Worksheets(7).Copy After:=Worksheets(3) > HTH > Jim Hale > > > -----Original Message----- > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > Sent: Tuesday, September 12, 2006 1:19 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] copying worksheets > > > Hello: > > >From Access, I'm trying to make a copy of a worksheet within an instance > of > Excel that is created at runtime in VBA. > > xlsheet.copy after:=activesheet > > However, I get the following error message. > > Run-time error '5' > > Invalid procedure call or argument > Any ideas? > > Many thanks in advance, > Billy > > -- > Billy Pang > http://dbnotes.blogspot.com/ > "Once the game is over, the King and the pawn go back in the same box." - > Italian proverb > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From tuxedoman888 at gmail.com Tue Sep 12 16:40:20 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 12 Sep 2006 14:40:20 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <45070987.3030309@shaw.ca> References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> <45070987.3030309@shaw.ca> Message-ID: <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> Thanks Marty and may the force be with you. I tried the different copy method but I still get the same result (error message). However, I noticed that the excel app still exists after I destroyed it. That is... Dim xlApp As Excel.Application Set xlApp = CreateObject("Excel.Application") some code for adding data to the the worksheet some code for copying the worksheet xlApp.Quit Set xlApp = Nothing (that is, after stepping through set xlApp = nothing, I can still see Excel.exe in my windows task manager) However, if I remove the code that copies the worksheet, excel.exe is properly removed after set xlApp = nothing. Billy On 9/12/06, MartyConnelly wrote: > > Use the Object Browser Luke! > There is more than one copy method > or it maybe you haven't set the activesheet > in your method > > Sub CopyAndName() > ' This creates a new sheet, > ' copies the data from the first sheet, > > Dim sName As String, sht1 As Worksheet, sht2 As Worksheet > Set sht1 = ActiveSheet > Set sht2 = Worksheets.Add(after:=ActiveSheet) > sht2.Name = "MyNewName " > sht1.UsedRange.Copy Destination:=sht2.Range("A1") > End Sub > > > Billy Pang wrote: > > >Hello: > > > >>From Access, I'm trying to make a copy of a worksheet within an instance > of > >Excel that is created at runtime in VBA. > > > >xlsheet.copy after:=activesheet > > > >However, I get the following error message. > > > >Run-time error '5' > > > >Invalid procedure call or argument > >Any ideas? > > > >Many thanks in advance, > >Billy > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From tuxedoman888 at gmail.com Tue Sep 12 16:42:14 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 12 Sep 2006 14:42:14 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF61@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF61@corp-es01.fleetpride.com> Message-ID: <7c8826480609121442k4dbe0ca1t64070cc8839abb71@mail.gmail.com> Yes, I tried the worksheets property but same result (error message). Also, I ensured that the worksheet is not protected. On 9/12/06, Hale, Jim wrote: > > you are using the worksheets object and not the worksheet object and you > still get the error? Are you sure the workbook is not protected? > Jim Hale > > -----Original Message----- > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > Sent: Tuesday, September 12, 2006 1:51 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] copying worksheets > > > Thanks Jim. > > I tried it but I get the same error message. > > Billy > > > On 9/12/06, Hale, Jim wrote: > > > > I think you need to use worksheets, not worksheet, ie > > appexcel.Worksheets(7).Copy After:=Worksheets(3) > > HTH > > Jim Hale > > > > > > -----Original Message----- > > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > > Sent: Tuesday, September 12, 2006 1:19 PM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] copying worksheets > > > > > > Hello: > > > > >From Access, I'm trying to make a copy of a worksheet within an > instance > > of > > Excel that is created at runtime in VBA. > > > > xlsheet.copy after:=activesheet > > > > However, I get the following error message. > > > > Run-time error '5' > > > > Invalid procedure call or argument > > Any ideas? > > > > Many thanks in advance, > > Billy > > > > -- > > Billy Pang > > http://dbnotes.blogspot.com/ > > "Once the game is over, the King and the pawn go back in the same box." > - > > Italian proverb > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > *********************************************************************** > > The information transmitted is intended solely for the individual or > > entity to which it is addressed and may contain confidential and/or > > privileged material. Any review, retransmission, dissemination or > > other use of or taking action in reliance upon this information by > > persons or entities other than the intended recipient is prohibited. > > If you have received this email in error please contact the sender and > > delete the material from any computer. As a recipient of this email, > > you are responsible for screening its contents and the contents of any > > attachments for the presence of viruses. No liability is accepted for > > any damages caused by any virus transmitted by this email. > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > Billy Pang > http://dbnotes.blogspot.com/ > "Once the game is over, the King and the pawn go back in the same box." - > Italian proverb > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From david.gray at tpg.com.au Tue Sep 12 17:37:18 2006 From: david.gray at tpg.com.au (David Gray) Date: Wed, 13 Sep 2006 08:37:18 +1000 Subject: [AccessD] Append properties to a new field Message-ID: <000201c6d6bc$02171260$0101a8c0@server> Hi, Would anyone have some code to create properties for a newly created field in a table def using DAO. My code allows me to create properties for an existing field but if i try to test for the existence of a property in the newly created and appended field my error handler which will handle error 3270 'Property not found' stops working and I get the error message error 3270 'Property not found'. I am refreshing the Fields collection after appending the field. Thanks in advance David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software ? From darrend at nimble.com.au Tue Sep 12 18:11:06 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 13 Sep 2006 09:11:06 +1000 Subject: [AccessD] A2003: Replace the Hash Character Message-ID: <20060912231109.QWUU11832.omta05sl.mx.bigpond.com@DENZILLAP> Hi All I am trying to replace the # character in a table I have about 3 hundred records and one of the fields in that 300 or so records has data in it similar to #123-ABC I want to Find and Replace the # with nothing so the data in the fields looks like 123-ABC When I do open the table and Use find and replace and use # as the searchable item it actually finds all the numbers EG 3 4 6 etc in each record Not the actual character I have tried '#' and "#" in my search field - no joy Anyone know how to do a find and replace on the actual character # not on numbers? MTIA Darren From DWUTKA at marlow.com Tue Sep 12 18:15:36 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 12 Sep 2006 18:15:36 -0500 Subject: [AccessD] A2003: Replace the Hash Character Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0100EA46@MARLOW_MAIN2.marlow.com> In your query, let's say the field's name is 'DataField'. Create an update table, and put the following as the UpdateTo portion: Replace([DataField],"#","") That will remove all the number sign characters. Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Tuesday, September 12, 2006 6:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Replace the Hash Character Hi All I am trying to replace the # character in a table I have about 3 hundred records and one of the fields in that 300 or so records has data in it similar to #123-ABC I want to Find and Replace the # with nothing so the data in the fields looks like 123-ABC When I do open the table and Use find and replace and use # as the searchable item it actually finds all the numbers EG 3 4 6 etc in each record Not the actual character I have tried '#' and "#" in my search field - no joy Anyone know how to do a find and replace on the actual character # not on numbers? MTIA Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Sep 12 18:43:53 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 12 Sep 2006 16:43:53 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> <45070987.3030309@shaw.ca> <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> Message-ID: <45074639.4080307@shaw.ca> Let's see the intermediate code. Billy Pang wrote: >Thanks Marty and may the force be with you. I tried the different >copy method but I still get the same result (error message). >However, I noticed that the excel app still exists after I destroyed it. >That is... > > Dim xlApp As Excel.Application > Set xlApp = CreateObject("Excel.Application") > > some code for adding data to the the worksheet > some code for copying the worksheet > xlApp.Quit > Set xlApp = Nothing > >(that is, after stepping through set xlApp = nothing, I can still see >Excel.exe in my windows task manager) > >However, if I remove the code that copies the worksheet, excel.exe is >properly removed after set xlApp = nothing. > >Billy > >On 9/12/06, MartyConnelly wrote: > > >>Use the Object Browser Luke! >>There is more than one copy method >>or it maybe you haven't set the activesheet >>in your method >> >>Sub CopyAndName() >>' This creates a new sheet, >>' copies the data from the first sheet, >> >>Dim sName As String, sht1 As Worksheet, sht2 As Worksheet >>Set sht1 = ActiveSheet >>Set sht2 = Worksheets.Add(after:=ActiveSheet) >>sht2.Name = "MyNewName " >>sht1.UsedRange.Copy Destination:=sht2.Range("A1") >>End Sub >> >> >>Billy Pang wrote: >> >> >> >>>Hello: >>> >>>>From Access, I'm trying to make a copy of a worksheet within an instance >>> >>> >>of >> >> >>>Excel that is created at runtime in VBA. >>> >>>xlsheet.copy after:=activesheet >>> >>>However, I get the following error message. >>> >>>Run-time error '5' >>> >>>Invalid procedure call or argument >>>Any ideas? >>> >>>Many thanks in advance, >>>Billy >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > > > -- Marty Connelly Victoria, B.C. Canada From darrend at nimble.com.au Tue Sep 12 19:01:07 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 13 Sep 2006 10:01:07 +1000 Subject: [AccessD] A2003: Replace the Hash Character In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0100EA46@MARLOW_MAIN2.marlow.com> Message-ID: <20060913000111.KYOX3131.omta04sl.mx.bigpond.com@DENZILLAP> Excellent Worked like a charm Many thanks Darren ------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Wednesday, 13 September 2006 9:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A2003: Replace the Hash Character In your query, let's say the field's name is 'DataField'. Create an update table, and put the following as the UpdateTo portion: Replace([DataField],"#","") That will remove all the number sign characters. Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Tuesday, September 12, 2006 6:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Replace the Hash Character Hi All I am trying to replace the # character in a table I have about 3 hundred records and one of the fields in that 300 or so records has data in it similar to #123-ABC I want to Find and Replace the # with nothing so the data in the fields looks like 123-ABC When I do open the table and Use find and replace and use # as the searchable item it actually finds all the numbers EG 3 4 6 etc in each record Not the actual character I have tried '#' and "#" in my search field - no joy Anyone know how to do a find and replace on the actual character # not on numbers? MTIA Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Sep 12 20:02:57 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 12 Sep 2006 18:02:57 -0700 Subject: [AccessD] Append properties to a new field In-Reply-To: <000201c6d6bc$02171260$0101a8c0@server> Message-ID: You have to trap the error and add the property for that field when the error is thrown. There used to be code in the help file showing you how to create a property that included the handling for trapping the error. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Gray Sent: Tuesday, September 12, 2006 3:37 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Append properties to a new field Hi, Would anyone have some code to create properties for a newly created field in a table def using DAO. My code allows me to create properties for an existing field but if i try to test for the existence of a property in the newly created and appended field my error handler which will handle error 3270 'Property not found' stops working and I get the error message error 3270 'Property not found'. I am refreshing the Fields collection after appending the field. Thanks in advance David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From david.gray at tpg.com.au Tue Sep 12 20:47:54 2006 From: david.gray at tpg.com.au (David Gray) Date: Wed, 13 Sep 2006 11:47:54 +1000 Subject: [AccessD] Append properties to a new field In-Reply-To: Message-ID: <000401c6d6d6$a2351110$0101a8c0@server> Hi Charlotte, Thanks for replying. Yes my code traps the 3270 'Property not found' error succesfully while adding properties for existing fields but if I add a new field and then try to add properties to that field my error trap is ignored and I get a standard error message. The same thing happens if I try to add a second field. David Gray -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, 13 September 2006 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Append properties to a new field You have to trap the error and add the property for that field when the error is thrown. There used to be code in the help file showing you how to create a property that included the handling for trapping the error. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Gray Sent: Tuesday, September 12, 2006 3:37 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Append properties to a new field Hi, Would anyone have some code to create properties for a newly created field in a table def using DAO. My code allows me to create properties for an existing field but if i try to test for the existence of a property in the newly created and appended field my error handler which will handle error 3270 'Property not found' stops working and I get the error message error 3270 'Property not found'. I am refreshing the Fields collection after appending the field. Thanks in advance David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Sep 13 02:13:32 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 13 Sep 2006 08:13:32 +0100 Subject: [AccessD] Append properties to a new field In-Reply-To: <000201c6d6bc$02171260$0101a8c0@server> Message-ID: <01ee01c6d704$22689c80$943c70c3@minster33c3r25> David, Broadly speaking it's like this (lifted from the Backend Updater which you might find useful, see http://www.databaseadvisors.com/downloads.htm ) Dim tdf As DAO.TableDef Dim fld As DAO.Field Dim prp As DAO.Property Set tdf = db.TableDefs("Tablename") 'assumes db already set of course Set fld = tdf.Fields("FldName") Set prp = fld.CreateProperty("Description") prp.Type = dbText prp.Value = "This is description" fld.Properties.Append prp Set prp = Nothing Set fld = Nothing Set tdf = Nothing Set db = Nothing Cheers -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Gray > Sent: 12 September 2006 23:37 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Append properties to a new field > > > Hi, > > Would anyone have some code to create properties for a newly > created field in a table def using DAO. > > My code allows me to create properties for an existing field > but if i try to test for the existence of a property in the > newly created and appended field my error handler which will > handle error 3270 'Property not found' stops working and I > get the error message error 3270 'Property not found'. I am > refreshing the Fields collection after appending the field. > > Thanks in advance > > David Gray > 96 Springacre Rd > Thornlands QLD > Yahoo ID: flock_it_software > ? > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Gustav at cactus.dk Wed Sep 13 03:22:39 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 13 Sep 2006 10:22:39 +0200 Subject: [AccessD] MSDE and Vista, a no-no Message-ID: Hi all Did you know that MSDE is not supported on Vista? http://blogs.msdn.com/ericnel/archive/2006/07/12/663201.aspx Time to move on from MSDE to SQL Server 2005 Express MSDE is the free lightweight version of SQL Server 2000 which many ISV use as part of their overall architecture - typically for roaming users or "edge" data synch. Its limitations are that it is purely a database engine with no management tools, it has a maximum size of 2GB and it has a workload governor that seriously inhibits throughput. Thankfully we have a much better alternative - SQL Server 2005 Express: - Increased DB Size to 4GB - Removal of workload governor - Better integration with Visual Studio - Free integrated Management Tool; SQL Server Management Studio Express - SQL Server 2005 Reporting Services If you are still not convinced then perhaps there is another reason you should look at migrating. Microsoft is working hard to help customers achieve the highest levels of security. As part of this push we have made the decision to not support MSDE on Windows Vista as we believe the combination of SQL Server 2005 Express and Vista is a better choice. We therefore recommend that you begin migration planning to SQL Server 2005 Express for any applications developed using MSDE that you believe will need to run on Windows Vista. Thankfully for most applications this will be relatively straightforward and we have resources to help. This is not a decision taken lightly - but reflects the emphasis we place on making our products as secure as possible. /gustav From adtp at hotmail.com Wed Sep 13 02:37:42 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 13 Sep 2006 13:07:42 +0530 Subject: [AccessD] copying worksheets References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com><45070987.3030309@shaw.ca> <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> Message-ID: Billy, Apparently you wish to create a new excel workbook, copy some data into the first worksheet and then create a copy of this worksheet, followed by positioning of newly copied sheet at the very end. It also seems you wish to implement this job in the background, and quit excel in a clean manner. For executing jobs with hidden instance of excel, reference to active state of objects MUST BE AVOIDED. Otherwise, you might encounter error and the excel application might refuse to die, despite using explicit Quit command. Sample code as given below, carries out the jobs listed in first para, in a hidden manner and ensures clean termination of excel application, saving the workbook as Test.xls. If it is desired that the new workbook becomes available for further direct action by the user, statement (A) should be enabled, at the same time disabling statement (D). In such a situation, you do have the option of using statement (C) with ActiveSheet style, instead of statement (B), if desired. However as already stated, (B) is considered the preferred style. Best wishes, A.D.Tejpal --------------- ===================================== Sub P_NewWbCopySheet() Dim exp As Excel.Application Dim wb As Excel.Workbook Dim ws As Excel.Worksheet Set exp = New Excel.Application 'exp.Visible = True ' (A) Set wb = exp.Workbooks.Add Set ws = wb.Worksheets(1) ' (B) 'Set ws = wb.ActiveSheet ' (C) - Avoid ActiveSheet ' (See Note Below) ws.Cells(1, 1) = "ABC" ws.Copy After:=wb.Worksheets(wb.Worksheets.Count) Set ws = wb.Worksheets(wb.Worksheets.Count) ws.Name = "Ws_FreshCopy" On Error Resume Next Kill "C:\Temp\Test.xls" wb.SaveAs "C:\Temp\Test.xls" Set ws = Nothing Set wb = Nothing exp.Quit ' (D) Set exp = Nothing ' Note - (a) For background work, where Excel is ' required to do its job & then quit unseen, ' use of ActiveSheet object MUST BE ' AVOIDED. ' (b) If statement (C) is to be used in lieu of (B), ' statement (A) must be kept enabled. ' Otherwise, scope for error and the ' application may refuse to die ' (despite presence of statement (D)) End Sub ===================================== ----- Original Message ----- From: Billy Pang To: Access Developers discussion and problem solving Sent: Wednesday, September 13, 2006 03:10 Subject: Re: [AccessD] copying worksheets Thanks Marty and may the force be with you. I tried the different copy method but I still get the same result (error message). However, I noticed that the excel app still exists after I destroyed it. That is... Dim xlApp As Excel.Application Set xlApp = CreateObject("Excel.Application") some code for adding data to the the worksheet some code for copying the worksheet xlApp.Quit Set xlApp = Nothing (that is, after stepping through set xlApp = nothing, I can still see Excel.exe in my windows task manager) However, if I remove the code that copies the worksheet, excel.exe is properly removed after set xlApp = nothing. Billy On 9/12/06, MartyConnelly wrote: > > Use the Object Browser Luke! > There is more than one copy method > or it maybe you haven't set the activesheet > in your method > > Sub CopyAndName() > ' This creates a new sheet, > ' copies the data from the first sheet, > > Dim sName As String, sht1 As Worksheet, sht2 As Worksheet > Set sht1 = ActiveSheet > Set sht2 = Worksheets.Add(after:=ActiveSheet) > sht2.Name = "MyNewName " > sht1.UsedRange.Copy Destination:=sht2.Range("A1") > End Sub > > > Billy Pang wrote: > > >Hello: > > > >>From Access, I'm trying to make a copy of a worksheet within an instance > of > >Excel that is created at runtime in VBA. > > > >xlsheet.copy after:=activesheet > > > >However, I get the following error message. > > > >Run-time error '5' > > > >Invalid procedure call or argument > >Any ideas? > > > >Many thanks in advance, > >Billy From Gustav at cactus.dk Wed Sep 13 05:13:43 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 13 Sep 2006 12:13:43 +0200 Subject: [AccessD] Append properties to a new field Message-ID: Hi David Perhaps you need to refresh the Properties collection too? /gustav > .. I am refreshing the Fields collection after appending the field. From carbonnb at gmail.com Wed Sep 13 08:17:20 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 13 Sep 2006 09:17:20 -0400 Subject: [AccessD] Missing E-Mail Message-ID: Good morning, Yesterday we had a series of people that had their list subscriptions disabled due to bounces from their mail server. It turned out that Databaseadvisors.com's mail server got listed in SpamCop's Black list temporarily, which caused some accounts to be temporarily disabled. I believe that I have restored all the affected accounts. If you are chatting off-list with anyone that isn't getting list mail when they should be please have them contact me and I will make sure that their account is restored. My sincere apologies to anyone affected. Hopefully this won't happen again. If you want to catch up on the posts from yesterday to now, please goto our archives at: http://databaseadvisors.com/pipermail/accessd/2006-September/date.html Again, my sincerest apologies to all those affected. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Wed Sep 13 09:02:25 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 13 Sep 2006 10:02:25 -0400 Subject: [AccessD] Combo default value strange Message-ID: <000b01c6d73d$3f0a62e0$657aa8c0@m6805> I use a highly modified version of Julie Schwalm's date picker code. I use a combo instead of the radio button group that she used and added a bunch of new possibilities. The combo I use to select the date range I want has a row source type of "Value list" and a row source of: 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last Year;11;Last 12 Months;13;Today;16;Yesterday In my time tracking / billing database I want to open a time data entry form to filter to today. If I put a default value of 1 in the combo (the "ordinal value" for "Include all dates"), I get the correct thing, "include all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it should select "CURRENT MONTH". IOW, the integer value should select the text immediately AFTER the integer value (in the value list string), but seems to be selecting the value immediately BEFORE the integer value. Any thoughts on this? John W. Colby Colby Consulting www.ColbyConsulting.com From adtp at hotmail.com Wed Sep 13 09:30:47 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 13 Sep 2006 20:00:47 +0530 Subject: [AccessD] Open Database Method References: <20060911200015.4991.qmail@web83005.mail.mud.yahoo.com> Message-ID: Jeremy, Your subroutine, slightly modified as shown below, was tested on Access 2K as well as 2K3. There was no problem. Modifications pertain to: (a) Statement (A) - workspace qualifier has been provided. It would work even otherwise, but since you have taken the trouble of specially creating one, it has been used. (b) Spelling correction in statement (B) Note - OpenDatabase method does not open the target db. It provides a pointer, through which, you can act upon the properties & methods available to CurrentDb object in the target db. Best wishes, A.D.Tejpal --------------- Sample sub-routine ================================= Sub TestThis() Dim wrkJet As DAO.Workspace Dim db As DAO.Database Dim sDB As String sDB = "C:\Test\Test.mdb" Set wrkJet = CreateWorkspace("wrkSpace", "admin", "", dbUseJet) Set db = wrkJet.OpenDatabase(sDB, True) ' (A) Debug.Print db.Name Debug.Print db.TableDefs.Count Set db = Nothing Set wrkJet = Nothing ' (B) End Sub ================================= ----- Original Message ----- From: Jeremy Toves To: AccessD Sent: Tuesday, September 12, 2006 01:30 Subject: [AccessD] Open Database Method I hit a snag with a process I'm putting together. I'm trying to use the OpenDatabase method in an Access 2000 database to open a second Access 2000 database so that I can enumerate indices. I want to delete indices and reindex on demand from the first database. I'm getting an error that the database is an unrecognized format. I can open the 2nd database without problem if I go to it directly. Here is the code I'm using. Ideas? Has anyone done this before? Thanks, Jeremy Sub TestThis() Dim wrkJet As DAO.Workspace Dim db As DAO.Database Dim sDB As String sDB = "C:\Test\BackEnd.mdb" Set wrkJet = CreateWorkspace("wrkSpace", "admin", "", dbUseJet) Set db = OpenDatabase(sDB, True) Set db = Nothing Set wrkject = Nothing End Sub From Gustav at cactus.dk Wed Sep 13 10:17:06 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 13 Sep 2006 17:17:06 +0200 Subject: [AccessD] Combo default value strange Message-ID: Hi John What happens if you use two digits for all entries: 10;Include All Dates;12;Custom Date Range;14;Current Week;20;Current Month;30;Current Quarter;40;Current Year;50;Month To Date;60; .. or: 01;Include All Dates;12;Custom Date Range;14;Current Week;02;Current Month;03;Current Quarter;04;Current Year;05;Month To Date;06; .. /gustav >>> jwcolby at colbyconsulting.com 13-09-2006 16:02:25 >>> I use a highly modified version of Julie Schwalm's date picker code. I use a combo instead of the radio button group that she used and added a bunch of new possibilities. The combo I use to select the date range I want has a row source type of "Value list" and a row source of: 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last Year;11;Last 12 Months;13;Today;16;Yesterday In my time tracking / billing database I want to open a time data entry form to filter to today. If I put a default value of 1 in the combo (the "ordinal value" for "Include all dates"), I get the correct thing, "include all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it should select "CURRENT MONTH". IOW, the integer value should select the text immediately AFTER the integer value (in the value list string), but seems to be selecting the value immediately BEFORE the integer value. Any thoughts on this? John W. Colby Colby Consulting www.ColbyConsulting.com From Lambert.Heenan at AIG.com Wed Sep 13 10:41:01 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 13 Sep 2006 10:41:01 -0500 Subject: [AccessD] Combo default value strange Message-ID: John, Are you using code to plug in the 'ordinal value', or just setting the default value in the property sheet? When I tested this, using your value list as the data source for a combo it works exactly as you would want it to: 2 => Current Month, 3=> Current Quarter, 4 => Current Year, etc. This works whether I use the Default Value property, or run code to assign a value (in the Current Event for example). Code wise all I'm doing is "ComboControl = NumericValue". That's with a two column combo and column widths of 0";3", bound to column 1 - in other words totally standard stuff. If this is not working out for you then I'm inclined to suspect a corrupt form. Decompile? Rebuild the form? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, September 13, 2006 10:02 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo default value strange I use a highly modified version of Julie Schwalm's date picker code. I use a combo instead of the radio button group that she used and added a bunch of new possibilities. The combo I use to select the date range I want has a row source type of "Value list" and a row source of: 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last Year;11;Last 12 Months;13;Today;16;Yesterday In my time tracking / billing database I want to open a time data entry form to filter to today. If I put a default value of 1 in the combo (the "ordinal value" for "Include all dates"), I get the correct thing, "include all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it should select "CURRENT MONTH". IOW, the integer value should select the text immediately AFTER the integer value (in the value list string), but seems to be selecting the value immediately BEFORE the integer value. Any thoughts on this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 13 11:12:27 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 13 Sep 2006 12:12:27 -0400 Subject: [AccessD] Combo default value strange In-Reply-To: Message-ID: <002701c6d74f$6924b780$657aa8c0@m6805> I am setting the default value of the combo. Changing the default value of the combo changes the result seen as the form opens so I suspect that code is not modifying this at run time. The fact that it works correctly for you makes me suspicious of my form though, for sure. Thanks, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 13, 2006 11:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo default value strange John, Are you using code to plug in the 'ordinal value', or just setting the default value in the property sheet? When I tested this, using your value list as the data source for a combo it works exactly as you would want it to: 2 => Current Month, 3=> Current Quarter, 4 => Current Year, etc. This works whether I use the Default Value property, or run code to assign a value (in the Current Event for example). Code wise all I'm doing is "ComboControl = NumericValue". That's with a two column combo and column widths of 0";3", bound to column 1 - in other words totally standard stuff. If this is not working out for you then I'm inclined to suspect a corrupt form. Decompile? Rebuild the form? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, September 13, 2006 10:02 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo default value strange I use a highly modified version of Julie Schwalm's date picker code. I use a combo instead of the radio button group that she used and added a bunch of new possibilities. The combo I use to select the date range I want has a row source type of "Value list" and a row source of: 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last Year;11;Last 12 Months;13;Today;16;Yesterday In my time tracking / billing database I want to open a time data entry form to filter to today. If I put a default value of 1 in the combo (the "ordinal value" for "Include all dates"), I get the correct thing, "include all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it should select "CURRENT MONTH". IOW, the integer value should select the text immediately AFTER the integer value (in the value list string), but seems to be selecting the value immediately BEFORE the integer value. Any thoughts on this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 13 12:25:38 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 13 Sep 2006 10:25:38 -0700 Subject: [AccessD] Missing E-Mail In-Reply-To: Message-ID: <0J5J00NI4KDU0H40@l-daemon> Hi Bryan: Thank you for taking care of that. Great work to find the problem so soon. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, September 13, 2006 6:17 AM To: Access Developers discussion and problem solving Subject: [AccessD] Missing E-Mail Good morning, Yesterday we had a series of people that had their list subscriptions disabled due to bounces from their mail server. It turned out that Databaseadvisors.com's mail server got listed in SpamCop's Black list temporarily, which caused some accounts to be temporarily disabled. I believe that I have restored all the affected accounts. If you are chatting off-list with anyone that isn't getting list mail when they should be please have them contact me and I will make sure that their account is restored. My sincere apologies to anyone affected. Hopefully this won't happen again. If you want to catch up on the posts from yesterday to now, please goto our archives at: http://databaseadvisors.com/pipermail/accessd/2006-September/date.html Again, my sincerest apologies to all those affected. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tuxedoman888 at gmail.com Wed Sep 13 13:53:17 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 11:53:17 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <45074639.4080307@shaw.ca> References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> <45070987.3030309@shaw.ca> <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> <45074639.4080307@shaw.ca> Message-ID: <7c8826480609131153w3ea08d83k936fb3f852b33910@mail.gmail.com> ok.. here is it. what this does is it creates a brand new excel workbook, write something to sheet2 and then make copy of sheet2. what i have noticed is that when copy sheet2 code is there, the xlApp object is indestructible! (ie. cannot be destroyed; like superman). you can still see that excel.exe still exists in windows task manager after execution. xlapp survived the set xlApp=nothing onslaught. however, if you comment out the copy sheet2 code, xlApp can be destroyed. the kryponite. Public Function fCopyYoWorksheet() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Debug.Print "starting..." Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Add Set xlSheet = xlBook.Worksheets("Sheet2") xlSheet.Range("B2").Value = "Yo! numbers" xlSheet.Copy after:=Worksheets("Sheet1") xlBook.Close ' it will prompt you to save Set xlBook = Nothing xlApp.Quit Set xlApp = Nothing Debug.Print "finished!" End Function On 9/12/06, MartyConnelly wrote: > > Let's see the intermediate code. > > Billy Pang wrote: > > >Thanks Marty and may the force be with you. I tried the different > >copy method but I still get the same result (error message). > >However, I noticed that the excel app still exists after I destroyed it. > >That is... > > > > Dim xlApp As Excel.Application > > Set xlApp = CreateObject("Excel.Application") > > > > some code for adding data to the the worksheet > > some code for copying the worksheet > > xlApp.Quit > > Set xlApp = Nothing > > > >(that is, after stepping through set xlApp = nothing, I can still see > >Excel.exe in my windows task manager) > > > >However, if I remove the code that copies the worksheet, excel.exe is > >properly removed after set xlApp = nothing. > > > >Billy > > > >On 9/12/06, MartyConnelly wrote: > > > > > >>Use the Object Browser Luke! > >>There is more than one copy method > >>or it maybe you haven't set the activesheet > >>in your method > >> > >>Sub CopyAndName() > >>' This creates a new sheet, > >>' copies the data from the first sheet, > >> > >>Dim sName As String, sht1 As Worksheet, sht2 As Worksheet > >>Set sht1 = ActiveSheet > >>Set sht2 = Worksheets.Add(after:=ActiveSheet) > >>sht2.Name = "MyNewName " > >>sht1.UsedRange.Copy Destination:=sht2.Range("A1") > >>End Sub > >> > >> > >>Billy Pang wrote: > >> > >> > >> > >>>Hello: > >>> > >>>>From Access, I'm trying to make a copy of a worksheet within an > instance > >>> > >>> > >>of > >> > >> > >>>Excel that is created at runtime in VBA. > >>> > >>>xlsheet.copy after:=activesheet > >>> > >>>However, I get the following error message. > >>> > >>>Run-time error '5' > >>> > >>>Invalid procedure call or argument > >>>Any ideas? > >>> > >>>Many thanks in advance, > >>>Billy > >>> > >>> > >>> > >>> > >>> > >>-- > >>Marty Connelly > >>Victoria, B.C. > >>Canada > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > >> > >> > >> > > > > > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From Jim.Hale at FleetPride.com Wed Sep 13 14:02:50 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 13 Sep 2006 14:02:50 -0500 Subject: [AccessD] copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF71@corp-es01.fleetpride.com> you need to set xlSheet to nothing as well. I have found that all variable objects (excel related or not) need to be set to nothing or more often than not excel will stay in memory. Jim Hale -----Original Message----- From: Billy Pang [mailto:tuxedoman888 at gmail.com] Sent: Wednesday, September 13, 2006 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] copying worksheets ok.. here is it. what this does is it creates a brand new excel workbook, write something to sheet2 and then make copy of sheet2. what i have noticed is that when copy sheet2 code is there, the xlApp object is indestructible! (ie. cannot be destroyed; like superman). you can still see that excel.exe still exists in windows task manager after execution. xlapp survived the set xlApp=nothing onslaught. however, if you comment out the copy sheet2 code, xlApp can be destroyed. the kryponite. Public Function fCopyYoWorksheet() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Debug.Print "starting..." Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Add Set xlSheet = xlBook.Worksheets("Sheet2") xlSheet.Range("B2").Value = "Yo! numbers" xlSheet.Copy after:=Worksheets("Sheet1") xlBook.Close ' it will prompt you to save Set xlBook = Nothing xlApp.Quit Set xlApp = Nothing Debug.Print "finished!" End Function *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From tuxedoman888 at gmail.com Wed Sep 13 14:04:11 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 12:04:11 -0700 Subject: [AccessD] copying worksheets In-Reply-To: References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> <45070987.3030309@shaw.ca> <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> Message-ID: <7c8826480609131204p7c7d78f1seb5bbfed85c51eeb@mail.gmail.com> Thanks A.D. My original code did included the activesheet reference (only because it was easier to write) so I rewrote the code but it appears that excel application still refuses to die. I have also noticed that this phenomenon also occurs when I (via automation) create a new excel application and do nothing but insert a new worksheet from a second excel template (eg. Sheets.Add Type:="C:\myTemplate.xlt"). Billy On 9/13/06, A.D.TEJPAL wrote: > > Billy, > > Apparently you wish to create a new excel workbook, copy some data into > the first worksheet and then create a copy of this worksheet, followed by > positioning of newly copied sheet at the very end. It also seems you wish to > implement this job in the background, and quit excel in a clean manner. > > For executing jobs with hidden instance of excel, reference to active > state of objects MUST BE AVOIDED. Otherwise, you might encounter error and > the excel application might refuse to die, despite using explicit Quit > command. > > Sample code as given below, carries out the jobs listed in first para, > in a hidden manner and ensures clean termination of excel application, > saving the workbook as Test.xls. > > If it is desired that the new workbook becomes available for further > direct action by the user, statement (A) should be enabled, at the same time > disabling statement (D). In such a situation, you do have the option of > using statement (C) with ActiveSheet style, instead of statement (B), if > desired. However as already stated, (B) is considered the preferred style. > > Best wishes, > A.D.Tejpal > --------------- > > ===================================== > Sub P_NewWbCopySheet() > Dim exp As Excel.Application > Dim wb As Excel.Workbook > Dim ws As Excel.Worksheet > > Set exp = New Excel.Application > 'exp.Visible = True ' (A) > Set wb = exp.Workbooks.Add > > Set ws = wb.Worksheets(1) ' (B) > 'Set ws = wb.ActiveSheet ' (C) - Avoid ActiveSheet > ' (See Note > Below) > ws.Cells(1, 1) = "ABC" > > ws.Copy After:=wb.Worksheets(wb.Worksheets.Count) > Set ws = wb.Worksheets(wb.Worksheets.Count) > ws.Name = "Ws_FreshCopy" > > On Error Resume Next > Kill "C:\Temp\Test.xls" > wb.SaveAs "C:\Temp\Test.xls" > > Set ws = Nothing > Set wb = Nothing > exp.Quit ' (D) > Set exp = Nothing > > ' Note - (a) For background work, where Excel is > ' required to do its job & then quit unseen, > ' use of ActiveSheet object MUST BE > ' AVOIDED. > ' (b) If statement (C) is to be used in lieu of (B), > ' statement (A) must be kept enabled. > ' Otherwise, scope for error and the > ' application may refuse to die > ' (despite presence of statement (D)) > End Sub > ===================================== > > ----- Original Message ----- > From: Billy Pang > To: Access Developers discussion and problem solving > Sent: Wednesday, September 13, 2006 03:10 > Subject: Re: [AccessD] copying worksheets > > > Thanks Marty and may the force be with you. I tried the different > copy method but I still get the same result (error message). > However, I noticed that the excel app still exists after I destroyed it. > That is... > > Dim xlApp As Excel.Application > Set xlApp = CreateObject("Excel.Application") > > some code for adding data to the the worksheet > some code for copying the worksheet > xlApp.Quit > Set xlApp = Nothing > > (that is, after stepping through set xlApp = nothing, I can still see > Excel.exe in my windows task manager) > > However, if I remove the code that copies the worksheet, excel.exe is > properly removed after set xlApp = nothing. > > Billy > > On 9/12/06, MartyConnelly wrote: > > > > Use the Object Browser Luke! > > There is more than one copy method > > or it maybe you haven't set the activesheet > > in your method > > > > Sub CopyAndName() > > ' This creates a new sheet, > > ' copies the data from the first sheet, > > > > Dim sName As String, sht1 As Worksheet, sht2 As Worksheet > > Set sht1 = ActiveSheet > > Set sht2 = Worksheets.Add(after:=ActiveSheet) > > sht2.Name = "MyNewName " > > sht1.UsedRange.Copy Destination:=sht2.Range("A1") > > End Sub > > > > > > Billy Pang wrote: > > > > >Hello: > > > > > >>From Access, I'm trying to make a copy of a worksheet within an > instance > > of > > >Excel that is created at runtime in VBA. > > > > > >xlsheet.copy after:=activesheet > > > > > >However, I get the following error message. > > > > > >Run-time error '5' > > > > > >Invalid procedure call or argument > > >Any ideas? > > > > > >Many thanks in advance, > > >Billy > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From tuxedoman888 at gmail.com Wed Sep 13 14:05:41 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 12:05:41 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <7c8826480609131153w3ea08d83k936fb3f852b33910@mail.gmail.com> References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> <45070987.3030309@shaw.ca> <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> <45074639.4080307@shaw.ca> <7c8826480609131153w3ea08d83k936fb3f852b33910@mail.gmail.com> Message-ID: <7c8826480609131205x3a9fd393l867bbe9640e1b8cb@mail.gmail.com> err... kryptonite, not kryponite. On 9/13/06, Billy Pang wrote: > > ok.. here is it. what this does is it creates a brand new excel > workbook, write something to sheet2 and then make copy of sheet2. > > what i have noticed is that when copy sheet2 code is there, the xlApp > object is indestructible! (ie. cannot be destroyed; like superman). you can > still see that excel.exe still exists in windows task manager after > execution. xlapp survived the set xlApp=nothing onslaught. > > however, if you comment out the copy sheet2 code, xlApp can be destroyed. > the kryponite. > > Public Function fCopyYoWorksheet() > > Dim xlApp As Excel.Application > Dim xlBook As Excel.Workbook > Dim xlSheet As Excel.Worksheet > > Debug.Print "starting..." > > Set xlApp = CreateObject("Excel.Application") > Set xlBook = xlApp.Workbooks.Add > Set xlSheet = xlBook.Worksheets("Sheet2") > xlSheet.Range("B2").Value = "Yo! numbers" > xlSheet.Copy after:=Worksheets("Sheet1") > xlBook.Close ' it will prompt you to save > Set xlBook = Nothing > > xlApp.Quit > Set xlApp = Nothing > > Debug.Print "finished!" > > End Function > > > > > On 9/12/06, MartyConnelly wrote: > > > > Let's see the intermediate code. > > > > Billy Pang wrote: > > > > >Thanks Marty and may the force be with you. I tried the different > > >copy method but I still get the same result (error message). > > >However, I noticed that the excel app still exists after I destroyed > > it. > > >That is... > > > > > > Dim xlApp As Excel.Application > > > Set xlApp = CreateObject("Excel.Application") > > > > > > some code for adding data to the the worksheet > > > some code for copying the worksheet > > > xlApp.Quit > > > Set xlApp = Nothing > > > > > >(that is, after stepping through set xlApp = nothing, I can still see > > >Excel.exe in my windows task manager) > > > > > >However, if I remove the code that copies the worksheet, excel.exe is > > >properly removed after set xlApp = nothing. > > > > > >Billy > > > > > >On 9/12/06, MartyConnelly wrote: > > > > > > > > >>Use the Object Browser Luke! > > >>There is more than one copy method > > >>or it maybe you haven't set the activesheet > > >>in your method > > >> > > >>Sub CopyAndName() > > >>' This creates a new sheet, > > >>' copies the data from the first sheet, > > >> > > >>Dim sName As String, sht1 As Worksheet, sht2 As Worksheet > > >>Set sht1 = ActiveSheet > > >>Set sht2 = Worksheets.Add(after:=ActiveSheet) > > >>sht2.Name = "MyNewName " > > >>sht1.UsedRange.Copy Destination:=sht2.Range("A1") > > >>End Sub > > >> > > >> > > >>Billy Pang wrote: > > >> > > >> > > >> > > >>>Hello: > > >>> > > >>>>From Access, I'm trying to make a copy of a worksheet within an > > instance > > >>> > > >>> > > >>of > > >> > > >> > > >>>Excel that is created at runtime in VBA. > > >>> > > >>>xlsheet.copy after:=activesheet > > >>> > > >>>However, I get the following error message. > > >>> > > >>>Run-time error '5' > > >>> > > >>>Invalid procedure call or argument > > >>>Any ideas? > > >>> > > >>>Many thanks in advance, > > >>>Billy > > >>> > > >>> > > >>> > > >>> > > >>> > > >>-- > > >>Marty Connelly > > >>Victoria, B.C. > > >>Canada > > >> > > >>-- > > >>AccessD mailing list > > >>AccessD at databaseadvisors.com > > >> http://databaseadvisors.com/mailman/listinfo/accessd > > >>Website: http://www.databaseadvisors.com > > >> > > >> > > >> > > > > > > > > > > > > > > > > > > > -- > > Marty Connelly > > Victoria, B.C. > > Canada > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > Billy Pang > http://dbnotes.blogspot.com/ > "Once the game is over, the King and the pawn go back in the same box." - > Italian proverb > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From tuxedoman888 at gmail.com Wed Sep 13 14:10:30 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 12:10:30 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF71@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF71@corp-es01.fleetpride.com> Message-ID: <7c8826480609131210rb00a9b5kd8634c5ccf91a690@mail.gmail.com> Thanks Jim. ah yes. forgot to put that in an email but it was in my original code. however, excel.exe still exists even with Set xlSheet = Nothing when copying the worksheet. On 9/13/06, Hale, Jim wrote: > > you need to set xlSheet to nothing as well. I have found that all variable > objects (excel related or not) need to be set to nothing or more often > than > not excel will stay in memory. > Jim Hale > > -----Original Message----- > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > Sent: Wednesday, September 13, 2006 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] copying worksheets > > > ok.. here is it. what this does is it creates a brand new excel workbook, > write something to sheet2 and then make copy of sheet2. > > what i have noticed is that when copy sheet2 code is there, the xlApp > object > is indestructible! (ie. cannot be destroyed; like superman). you can > still > see that excel.exe still exists in windows task manager after execution. > xlapp survived the set xlApp=nothing onslaught. > > however, if you comment out the copy sheet2 code, xlApp can be destroyed. > the kryponite. > > Public Function fCopyYoWorksheet() > > Dim xlApp As Excel.Application > Dim xlBook As Excel.Workbook > Dim xlSheet As Excel.Worksheet > > Debug.Print "starting..." > Set xlApp = CreateObject("Excel.Application") > Set xlBook = xlApp.Workbooks.Add > Set xlSheet = xlBook.Worksheets("Sheet2") > xlSheet.Range("B2").Value = "Yo! numbers" > xlSheet.Copy after:=Worksheets("Sheet1") > xlBook.Close ' it will prompt you to save > Set xlBook = Nothing > xlApp.Quit > Set xlApp = Nothing > > Debug.Print "finished!" > > End Function > > > > > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From tuxedoman888 at gmail.com Wed Sep 13 14:23:35 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 12:23:35 -0700 Subject: [AccessD] Combo default value strange In-Reply-To: <000b01c6d73d$3f0a62e0$657aa8c0@m6805> References: <000b01c6d73d$3f0a62e0$657aa8c0@m6805> Message-ID: <7c8826480609131223m5a18ee31xb3510dabe120d20@mail.gmail.com> what happens if we rearrange the values in the value list? does it still come up as "current week"? On 9/13/06, JWColby wrote: > > I use a highly modified version of Julie Schwalm's date picker code. I > use > a combo instead of the radio button group that she used and added a bunch > of > new possibilities. The combo I use to select the date range I want has a > row source type of "Value list" and a row source of: > > 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current > Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To > Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last > Year;11;Last 12 Months;13;Today;16;Yesterday > > In my time tracking / billing database I want to open a time data entry > form > to filter to today. If I put a default value of 1 in the combo (the > "ordinal value" for "Include all dates"), I get the correct thing, > "include > all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it > should select "CURRENT MONTH". IOW, the integer value should select the > text immediately AFTER the integer value (in the value list string), but > seems to be selecting the value immediately BEFORE the integer value. > > Any thoughts on this? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From Jim.Hale at FleetPride.com Wed Sep 13 14:29:17 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 13 Sep 2006 14:29:17 -0500 Subject: [AccessD] copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF72@corp-es01.fleetpride.com> use xlSheet.Copy after:=xlApp.Worksheets("Sheet1") This is one of my pet hair pullers- Excel hates to give up being the center of attention. Explicit referencing as shown above should solve the problem. Jim Hale -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Wednesday, September 13, 2006 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] copying worksheets you need to set xlSheet to nothing as well. I have found that all variable objects (excel related or not) need to be set to nothing or more often than not excel will stay in memory. Jim Hale -----Original Message----- From: Billy Pang [mailto:tuxedoman888 at gmail.com] Sent: Wednesday, September 13, 2006 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] copying worksheets ok.. here is it. what this does is it creates a brand new excel workbook, write something to sheet2 and then make copy of sheet2. what i have noticed is that when copy sheet2 code is there, the xlApp object is indestructible! (ie. cannot be destroyed; like superman). you can still see that excel.exe still exists in windows task manager after execution. xlapp survived the set xlApp=nothing onslaught. however, if you comment out the copy sheet2 code, xlApp can be destroyed. the kryponite. Public Function fCopyYoWorksheet() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Debug.Print "starting..." Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Add Set xlSheet = xlBook.Worksheets("Sheet2") xlSheet.Range("B2").Value = "Yo! numbers" xlSheet.Copy after:=Worksheets("Sheet1") xlBook.Close ' it will prompt you to save Set xlBook = Nothing xlApp.Quit Set xlApp = Nothing Debug.Print "finished!" End Function *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From tuxedoman888 at gmail.com Wed Sep 13 14:49:16 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 12:49:16 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF72@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF72@corp-es01.fleetpride.com> Message-ID: <7c8826480609131249x13f9e131y2f0fb2a23d430453@mail.gmail.com> Sweet! that did it! Thanks Jim! Billy On 9/13/06, Hale, Jim wrote: > > use xlSheet.Copy after:=xlApp.Worksheets("Sheet1") > This is one of my pet hair pullers- Excel hates to give up being the > center > of attention. Explicit referencing as shown above should solve the > problem. > Jim Hale > > -----Original Message----- > From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] > Sent: Wednesday, September 13, 2006 2:03 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] copying worksheets > > > you need to set xlSheet to nothing as well. I have found that all variable > objects (excel related or not) need to be set to nothing or more often > than > not excel will stay in memory. > Jim Hale > > -----Original Message----- > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > Sent: Wednesday, September 13, 2006 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] copying worksheets > > > ok.. here is it. what this does is it creates a brand new excel workbook, > write something to sheet2 and then make copy of sheet2. > > what i have noticed is that when copy sheet2 code is there, the xlApp > object > is indestructible! (ie. cannot be destroyed; like superman). you can > still > see that excel.exe still exists in windows task manager after execution. > xlapp survived the set xlApp=nothing onslaught. > > however, if you comment out the copy sheet2 code, xlApp can be destroyed. > the kryponite. > > Public Function fCopyYoWorksheet() > > Dim xlApp As Excel.Application > Dim xlBook As Excel.Workbook > Dim xlSheet As Excel.Worksheet > > Debug.Print "starting..." > Set xlApp = CreateObject("Excel.Application") > Set xlBook = xlApp.Workbooks.Add > Set xlSheet = xlBook.Worksheets("Sheet2") > xlSheet.Range("B2").Value = "Yo! numbers" > xlSheet.Copy after:=Worksheets("Sheet1") > xlBook.Close ' it will prompt you to save > Set xlBook = Nothing > xlApp.Quit > Set xlApp = Nothing > > Debug.Print "finished!" > > End Function > > > > > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From accessd at shaw.ca Wed Sep 13 15:19:42 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 13 Sep 2006 13:19:42 -0700 Subject: [AccessD] OT copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF72@corp-es01.fleetpride.com> Message-ID: <0J5J009CZSFXM1E0@l-daemon> Hi All: There is also the absolute 'kill; an application. Used back when Access97 kept failing to die. Brutally Kill an application Option Explicit Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Sub Kill ExcelApplication() Dim lHwnd As Long Dim lPid As Long, Dim lReturn As Long, Dim lhwndProcess As Long Dim lpClassName As String Const PROCESS_ALL_ACCESS = &H1F0FFF ' check to see if application alive and running ' Believe that XLMain is the appropriate class ' but could be wrong.. please check. lpClassName = "XLMain" lHwnd = FindWindow(lpClassName, vbNullString) If lHwnd > 0 Then 'Get the PID (process ID) from the application handle lReturn = GetWindowThreadProcessId(lHwnd, lPid) 'Terminate the application lhwndProcess = OpenProcess(PROCESS_ALL_ACCESS, 0&, lPid) if (TerminateProcess(lhwndProcess, 0&) <> 0) = True then MsgBox "Excel has been sucessfully terminated" Else MsgBox "Excel has not been sucessfully terminated" End if lReturn = CloseHandle(lhwndProcess) Else MsgBox "Excel is not running or Class name is wrong" End if End Sub Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Wednesday, September 13, 2006 12:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] copying worksheets use xlSheet.Copy after:=xlApp.Worksheets("Sheet1") This is one of my pet hair pullers- Excel hates to give up being the center of attention. Explicit referencing as shown above should solve the problem. Jim Hale -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Wednesday, September 13, 2006 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] copying worksheets you need to set xlSheet to nothing as well. I have found that all variable objects (excel related or not) need to be set to nothing or more often than not excel will stay in memory. Jim Hale -----Original Message----- From: Billy Pang [mailto:tuxedoman888 at gmail.com] Sent: Wednesday, September 13, 2006 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] copying worksheets ok.. here is it. what this does is it creates a brand new excel workbook, write something to sheet2 and then make copy of sheet2. what i have noticed is that when copy sheet2 code is there, the xlApp object is indestructible! (ie. cannot be destroyed; like superman). you can still see that excel.exe still exists in windows task manager after execution. xlapp survived the set xlApp=nothing onslaught. however, if you comment out the copy sheet2 code, xlApp can be destroyed. the kryponite. Public Function fCopyYoWorksheet() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Debug.Print "starting..." Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Add Set xlSheet = xlBook.Worksheets("Sheet2") xlSheet.Range("B2").Value = "Yo! numbers" xlSheet.Copy after:=Worksheets("Sheet1") xlBook.Close ' it will prompt you to save Set xlBook = Nothing xlApp.Quit Set xlApp = Nothing Debug.Print "finished!" End Function *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Wed Sep 13 15:34:25 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 13 Sep 2006 15:34:25 -0500 Subject: [AccessD] OT copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF74@corp-es01.fleetpride.com> Cool! Excel will sleep with the fishes tonight Jim -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, September 13, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT copying worksheets Hi All: There is also the absolute 'kill; an application. Used back when Access97 kept failing to die. Brutally Kill an application Option Explicit Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Sub Kill ExcelApplication() Dim lHwnd As Long Dim lPid As Long, Dim lReturn As Long, Dim lhwndProcess As Long Dim lpClassName As String Const PROCESS_ALL_ACCESS = &H1F0FFF ' check to see if application alive and running ' Believe that XLMain is the appropriate class ' but could be wrong.. please check. lpClassName = "XLMain" lHwnd = FindWindow(lpClassName, vbNullString) If lHwnd > 0 Then 'Get the PID (process ID) from the application handle lReturn = GetWindowThreadProcessId(lHwnd, lPid) 'Terminate the application lhwndProcess = OpenProcess(PROCESS_ALL_ACCESS, 0&, lPid) if (TerminateProcess(lhwndProcess, 0&) <> 0) = True then MsgBox "Excel has been sucessfully terminated" Else MsgBox "Excel has not been sucessfully terminated" End if lReturn = CloseHandle(lhwndProcess) Else MsgBox "Excel is not running or Class name is wrong" End if End Sub Jim *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From stuart at lexacorp.com.pg Wed Sep 13 16:11:07 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 14 Sep 2006 07:11:07 +1000 Subject: [AccessD] Missing E-Mail In-Reply-To: References: Message-ID: <4509008B.22670.8198912@stuart.lexacorp.com.pg> On 13 Sep 2006 at 9:17, Bryan Carbonnell wrote: > Good morning, > > Yesterday we had a series of people that had their list subscriptions > disabled due to bounces from their mail server. > > It turned out that Databaseadvisors.com's mail server got listed in > SpamCop's Black list temporarily, which caused some accounts to be > temporarily disabled. > > I believe that I have restored all the affected accounts. If you are > chatting off-list with anyone that isn't getting list mail when they > should be please have them contact me and I will make sure that their > account is restored. > > My sincere apologies to anyone affected. > Don't apologise! Anyone that allows a third party such as SpamCop to decide for them what email to reject has no reason to complain when they lose mail. > Hopefully this won't happen again. Another Blacklisting probably will :-( -- Stuart From stuart at lexacorp.com.pg Wed Sep 13 16:16:20 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 14 Sep 2006 07:16:20 +1000 Subject: [AccessD] Combo default value strange In-Reply-To: <000b01c6d73d$3f0a62e0$657aa8c0@m6805> References: <000b01c6d73d$3f0a62e0$657aa8c0@m6805> Message-ID: <450901C4.26541.81E4FAB@stuart.lexacorp.com.pg> What are the values of ColumnCount, ColumnWidths and BoundColumn ? (actual values on the form, now what you think they should be ) On 13 Sep 2006 at 10:02, JWColby wrote: > I use a highly modified version of Julie Schwalm's date picker code. I use > a combo instead of the radio button group that she used and added a bunch of > new possibilities. The combo I use to select the date range I want has a > row source type of "Value list" and a row source of: > > 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current > Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To > Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last > Year;11;Last 12 Months;13;Today;16;Yesterday > > In my time tracking / billing database I want to open a time data entry form > to filter to today. If I put a default value of 1 in the combo (the > "ordinal value" for "Include all dates"), I get the correct thing, "include > all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it > should select "CURRENT MONTH". IOW, the integer value should select the > text immediately AFTER the integer value (in the value list string), but > seems to be selecting the value immediately BEFORE the integer value. -- Stuart From Jim.Hale at FleetPride.com Wed Sep 13 16:23:10 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 13 Sep 2006 16:23:10 -0500 Subject: [AccessD] OT copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF75@corp-es01.fleetpride.com> The only problem I see is this is an indiscriminate killer. If a user has Excel open and is using it there will be one unhappy camper when the contracted hitman gets the wrong instance. Jim Hale -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, September 13, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT copying worksheets Hi All: There is also the absolute 'kill; an application. Used back when Access97 kept failing to die. Brutally Kill an application Option Explicit Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Sub Kill ExcelApplication() Dim lHwnd As Long Dim lPid As Long, Dim lReturn As Long, Dim lhwndProcess As Long Dim lpClassName As String Const PROCESS_ALL_ACCESS = &H1F0FFF ' check to see if application alive and running ' Believe that XLMain is the appropriate class ' but could be wrong.. please check. lpClassName = "XLMain" lHwnd = FindWindow(lpClassName, vbNullString) If lHwnd > 0 Then 'Get the PID (process ID) from the application handle lReturn = GetWindowThreadProcessId(lHwnd, lPid) 'Terminate the application lhwndProcess = OpenProcess(PROCESS_ALL_ACCESS, 0&, lPid) if (TerminateProcess(lhwndProcess, 0&) <> 0) = True then MsgBox "Excel has been sucessfully terminated" Else MsgBox "Excel has not been sucessfully terminated" End if lReturn = CloseHandle(lhwndProcess) Else MsgBox "Excel is not running or Class name is wrong" End if End Sub Jim *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From ssharkins at setel.com Wed Sep 13 16:34:43 2006 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 13 Sep 2006 17:34:43 -0400 Subject: [AccessD] Missing E-Mail In-Reply-To: <4509008B.22670.8198912@stuart.lexacorp.com.pg> Message-ID: <001701c6d77c$6db25c80$7934fad1@SUSANONE> Anyone that allows a third party such as SpamCop to decide for them what email to reject has no reason to complain when they lose mail. ========I didn't get any mail for over 24 hours and I don't use SpamCop -- my problem's probably unrelated to the SpamCop problem, but I have no idea what happened. Susan H. From rusty.hammond at cpiqpc.com Wed Sep 13 16:47:21 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 13 Sep 2006 16:47:21 -0500 Subject: [AccessD] Missing E-Mail Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8A7D@cpixchng-1.cpiqpc.net> Susan, You might check with your ISP. Some ISP's are starting to use the blacklisting service for any e-mails coming into any of their servers. It's a "service" provided for their clients. It's caused us some headaches before. We have automated e-mails going to some home e-mail addresses of our I.T. folks and their ISP is using the blacklisting service. We ended up on the blacklist because of our use of automated replies and our automated notifications didn't get received. That could be why you didn't receive any for a while. Another thing to remember to check when someone can't get an e-mail through to you. Rusty -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Wednesday, September 13, 2006 4:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing E-Mail Anyone that allows a third party such as SpamCop to decide for them what email to reject has no reason to complain when they lose mail. ========I didn't get any mail for over 24 hours and I don't use SpamCop -- my problem's probably unrelated to the SpamCop problem, but I have no idea what happened. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From cfoust at infostatsystems.com Wed Sep 13 16:49:19 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 13 Sep 2006 14:49:19 -0700 Subject: [AccessD] Missing E-Mail In-Reply-To: <001701c6d77c$6db25c80$7934fad1@SUSANONE> Message-ID: There are a number of ISPs who use SpamCop's lists, so you don't need to actually use SpamCop to be bitten. I had a similar problem recently with this list and my office address definitely doesn't go through SpamCop. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 13, 2006 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing E-Mail Anyone that allows a third party such as SpamCop to decide for them what email to reject has no reason to complain when they lose mail. ========I didn't get any mail for over 24 hours and I don't use SpamCop -- my problem's probably unrelated to the SpamCop problem, but I have no idea what happened. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Wed Sep 13 19:43:42 2006 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 13 Sep 2006 20:43:42 -0400 Subject: [AccessD] Missing E-Mail In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8A7D@cpixchng-1.cpiqpc.net> Message-ID: <001301c6d796$d45c68d0$5232fad1@SUSANONE> Thanks Charlotte and Rusty -- I had no idea. :( Any way to get my ISP not to use blacklisting for me? Susan H. Susan, You might check with your ISP. Some ISP's are starting to use the blacklisting service for any e-mails coming into any of their servers. It's a "service" provided for their clients. It's caused us some headaches before. We have automated e-mails going to some home e-mail addresses of our I.T. folks and their ISP is using the blacklisting service. We ended up on the blacklist because of our use of automated replies and our automated notifications didn't get received. That could be why you didn't receive any for a while. Another thing to remember to check when someone can't get an e-mail through to you. Rusty -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Wednesday, September 13, 2006 4:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing E-Mail Anyone that allows a third party such as SpamCop to decide for them what email to reject has no reason to complain when they lose mail. ========I didn't get any mail for over 24 hours and I don't use SpamCop -- my problem's probably unrelated to the SpamCop problem, but I have no idea what happened. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 8/25/2006 From accessd at shaw.ca Thu Sep 14 00:03:20 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 13 Sep 2006 22:03:20 -0700 Subject: [AccessD] OT copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF75@corp-es01.fleetpride.com> Message-ID: <0J5K003ALGOPXNC0@l-daemon> Jim: I guess that is what can be described as collateral damage. It is effective not selective. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Wednesday, September 13, 2006 2:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT copying worksheets The only problem I see is this is an indiscriminate killer. If a user has Excel open and is using it there will be one unhappy camper when the contracted hitman gets the wrong instance. Jim Hale -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, September 13, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT copying worksheets Hi All: There is also the absolute 'kill; an application. Used back when Access97 kept failing to die. Brutally Kill an application Option Explicit Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Sub Kill ExcelApplication() Dim lHwnd As Long Dim lPid As Long, Dim lReturn As Long, Dim lhwndProcess As Long Dim lpClassName As String Const PROCESS_ALL_ACCESS = &H1F0FFF ' check to see if application alive and running ' Believe that XLMain is the appropriate class ' but could be wrong.. please check. lpClassName = "XLMain" lHwnd = FindWindow(lpClassName, vbNullString) If lHwnd > 0 Then 'Get the PID (process ID) from the application handle lReturn = GetWindowThreadProcessId(lHwnd, lPid) 'Terminate the application lhwndProcess = OpenProcess(PROCESS_ALL_ACCESS, 0&, lPid) if (TerminateProcess(lhwndProcess, 0&) <> 0) = True then MsgBox "Excel has been sucessfully terminated" Else MsgBox "Excel has not been sucessfully terminated" End if lReturn = CloseHandle(lhwndProcess) Else MsgBox "Excel is not running or Class name is wrong" End if End Sub Jim *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Thu Sep 14 07:52:11 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 14 Sep 2006 08:52:11 -0400 Subject: [AccessD] Missing E-Mail In-Reply-To: <4509008B.22670.8198912@stuart.lexacorp.com.pg> References: <4509008B.22670.8198912@stuart.lexacorp.com.pg> Message-ID: On 9/13/06, Stuart McLachlan wrote: > Anyone that allows a third party such as SpamCop to decide for them what > email to reject has no reason to complain when they lose mail. Unfortunately, these were all ISP level rejections not user level rejections, but yea I personally agree. > > Hopefully this won't happen again. > > Another Blacklisting probably will :-( Don't doubt it. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Sep 14 07:54:06 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 14 Sep 2006 08:54:06 -0400 Subject: [AccessD] Missing E-Mail In-Reply-To: <001301c6d796$d45c68d0$5232fad1@SUSANONE> References: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8A7D@cpixchng-1.cpiqpc.net> <001301c6d796$d45c68d0$5232fad1@SUSANONE> Message-ID: On 9/13/06, Susan Harkins wrote: > Thanks Charlotte and Rusty -- I had no idea. :( Any way to get my ISP not to > use blacklisting for me? Ask them not to. And if they don't stop filtering, change ISPs if you can, and tel them why you left. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Thu Sep 14 11:18:10 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 14 Sep 2006 12:18:10 -0400 Subject: [AccessD] editable word document Message-ID: <000e01c6d819$600aa450$657aa8c0@m6805> Does anyone have an example data collection word document they could send me, with text and check box controls that are editable surrounded by noneditable text and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com From carbonnb at gmail.com Thu Sep 14 11:23:56 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 14 Sep 2006 12:23:56 -0400 Subject: [AccessD] editable word document In-Reply-To: <000e01c6d819$600aa450$657aa8c0@m6805> References: <000e01c6d819$600aa450$657aa8c0@m6805> Message-ID: On 9/14/06, JWColby wrote: > Does anyone have an example data collection word document they could send > me, with text and check box controls that are editable surrounded by > noneditable text and stuff. John, Grab the sample files from http://www.databaseadvisors.com/newsletters/newsletter112003/0311RemoteDataCollection.htm The Word doc in there contains text boxes, radio buttons, combos & text boxes with non editable text as well -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Thu Sep 14 14:03:01 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 14 Sep 2006 15:03:01 -0400 Subject: [AccessD] editable word document In-Reply-To: Message-ID: <000201c6d830$681b0970$657aa8c0@m6805> Thanks. I knew you would be the one. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, September 14, 2006 12:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] editable word document On 9/14/06, JWColby wrote: > Does anyone have an example data collection word document they could > send me, with text and check box controls that are editable surrounded > by noneditable text and stuff. John, Grab the sample files from http://www.databaseadvisors.com/newsletters/newsletter112003/0311RemoteDataC ollection.htm The Word doc in there contains text boxes, radio buttons, combos & text boxes with non editable text as well -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Thu Sep 14 15:08:39 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 14 Sep 2006 16:08:39 -0400 Subject: [AccessD] editable word document In-Reply-To: <000201c6d830$681b0970$657aa8c0@m6805> References: <000201c6d830$681b0970$657aa8c0@m6805> Message-ID: On 9/14/06, JWColby wrote: > Thanks. I knew you would be the one. You were lucky that I actually read the list today. First day in a week orr o :) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Thu Sep 14 15:49:32 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 14 Sep 2006 16:49:32 -0400 Subject: [AccessD] editable word document In-Reply-To: Message-ID: <001101c6d83f$48e11e50$657aa8c0@m6805> Hmmm, makin money! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, September 14, 2006 4:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] editable word document On 9/14/06, JWColby wrote: > Thanks. I knew you would be the one. You were lucky that I actually read the list today. First day in a week orr o :) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 14 20:20:36 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 14 Sep 2006 21:20:36 -0400 Subject: [AccessD] DNS Lookup Message-ID: <000001c6d865$26d35b40$657aa8c0@m6805> Folks, I just ran across this: http://www.broadbandreports.com/forum/remark,13154925 and the link inside: http://www.dslreports.com/faq/8164 I followed the directions to change to a specified DNS server and holy smoke!!! The browsing difference is night and day!!! I have recently moved down to NC and in the process to a new ISP (the local cable company). My service in CT was stellar in terms of bandwidth, whereas here in NC it is merely passable. However by specifying the DNS server as described in the links (I used the 4.2.2.1 and 4.2.2.2) the difference in browse speed is simply startling. Try it!!! John W. Colby Colby Consulting www.ColbyConsulting.com From carbonnb at gmail.com Fri Sep 15 05:07:27 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 15 Sep 2006 06:07:27 -0400 Subject: [AccessD] editable word document In-Reply-To: <001101c6d83f$48e11e50$657aa8c0@m6805> References: <001101c6d83f$48e11e50$657aa8c0@m6805> Message-ID: On 9/14/06, JWColby wrote: > Hmmm, makin money! ;-) Me, naw. I'm salaried, so if I work or not I still get paid. Between stupid busy at work and a new lady in my life, I've been too damn busy to read the list. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Gustav at cactus.dk Fri Sep 15 05:19:36 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 15 Sep 2006 12:19:36 +0200 Subject: [AccessD] editable word document Message-ID: Hi Bryan - but now when she is not "new" anymore ... /gustav >>> carbonnb at gmail.com 15-09-2006 12:07:27 >>> On 9/14/06, JWColby wrote: > Hmmm, makin money! ;-) Me, naw. I'm salaried, so if I work or not I still get paid. Between stupid busy at work and a new lady in my life, I've been too damn busy to read the list. From carbonnb at gmail.com Fri Sep 15 07:43:03 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 15 Sep 2006 08:43:03 -0400 Subject: [AccessD] editable word document In-Reply-To: References: Message-ID: On 9/15/06, Gustav Brock wrote: > Hi Bryan > > - but now when she is not "new" anymore ... I dunno. She'll be the new one for a long time. :) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From markamatte at hotmail.com Fri Sep 15 09:11:59 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 15 Sep 2006 14:11:59 +0000 Subject: [AccessD] Delete from FTP In-Reply-To: Message-ID: Hello All, In A2K I'm using DoCmd.Transfertext wih an FTP site as the target path to import a text file. This works fine. I need to delete the text file from the FTP site after the transfer/import. I've used an FTP module in the past where you open the connection/delete or what ever/ and then close the connection. Its a large complicated module. Since I'm able to get the data easily...I was wondering if there was a way just as simple to delete? Thanks, Mark A. Matte From askolits at ot.com Fri Sep 15 09:26:25 2006 From: askolits at ot.com (John Skolits) Date: Fri, 15 Sep 2006 10:26:25 -0400 Subject: [AccessD] Report Group Page Breaks with no break for the Report Footer In-Reply-To: <000001c6d865$26d35b40$657aa8c0@m6805> Message-ID: <000e01c6d8d2$f0704860$6a01a8c0@LaptopXP> I have a report with a group header/footer. I tell the group Footer to force a new page "After Section' No problem. Breaks after each group. There is also a 'Report footer'. That page gets printed last. But, if I have only one group and it fits on the first page with plenty of room for the report footer to fit, how can I prevent a page break? All the 'Keep together' properties of the Groups and Sections are True. All the 'Can Shrinks' are set to true. All the other 'Force New Page' properties are set to None I've tried modifying the footer-'Force New Page' property in code during the format of the detail section, but that doesn't seem to work. Any ideas? Thanks, John From Gustav at cactus.dk Fri Sep 15 10:06:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 15 Sep 2006 17:06:08 +0200 Subject: [AccessD] Delete from FTP Message-ID: Hi Mark You can attach the FTP folder as a driver letter using Novell NetDrive (free): http://www.rsync.net/resources/howto/windows_map.html Then you can use normal file operations from VBA using that drive letter. /gustav >>> markamatte at hotmail.com 15-09-2006 16:11:59 >>> Hello All, In A2K I'm using DoCmd.Transfertext wih an FTP site as the target path to import a text file. This works fine. I need to delete the text file from the FTP site after the transfer/import. I've used an FTP module in the past where you open the connection/delete or what ever/ and then close the connection. Its a large complicated module. Since I'm able to get the data easily...I was wondering if there was a way just as simple to delete? Thanks, Mark A. Matte From markamatte at hotmail.com Fri Sep 15 10:15:46 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 15 Sep 2006 15:15:46 +0000 Subject: [AccessD] Delete from FTP In-Reply-To: Message-ID: Gustav, Thanks for the site...it looks like an interesting solution...but I will not have the ability to load additional software on the PCs that will be utilizing this DB. Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Delete from FTP >Date: Fri, 15 Sep 2006 17:06:08 +0200 > >Hi Mark > >You can attach the FTP folder as a driver letter using Novell NetDrive >(free): > >http://www.rsync.net/resources/howto/windows_map.html > >Then you can use normal file operations from VBA using that drive letter. > >/gustav > > > >>> markamatte at hotmail.com 15-09-2006 16:11:59 >>> >Hello All, > >In A2K I'm using DoCmd.Transfertext wih an FTP site as the target path to >import a text file. This works fine. I need to delete the text file from >the FTP site after the transfer/import. I've used an FTP module in the >past >where you open the connection/delete or what ever/ and then close the >connection. Its a large complicated module. > >Since I'm able to get the data easily...I was wondering if there was a way >just as simple to delete? > >Thanks, > >Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 15 11:30:14 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 15 Sep 2006 18:30:14 +0200 Subject: [AccessD] Delete from FTP Message-ID: Hi Mark Then you have to fall back to writing a small script for the command line FTP.EXE included in all Windows versions. Browse the archive for examples - this has been discussed many times. /gustav >>> markamatte at hotmail.com 15-09-2006 17:15:46 >>> Gustav, Thanks for the site...it looks like an interesting solution...but I will not have the ability to load additional software on the PCs that will be utilizing this DB. Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Delete from FTP >Date: Fri, 15 Sep 2006 17:06:08 +0200 > >Hi Mark > >You can attach the FTP folder as a driver letter using Novell NetDrive >(free): > >http://www.rsync.net/resources/howto/windows_map.html > >Then you can use normal file operations from VBA using that drive letter. > >/gustav > > > >>> markamatte at hotmail.com 15-09-2006 16:11:59 >>> >Hello All, > >In A2K I'm using DoCmd.Transfertext wih an FTP site as the target path to >import a text file. This works fine. I need to delete the text file from >the FTP site after the transfer/import. I've used an FTP module in the >past >where you open the connection/delete or what ever/ and then close the >connection. Its a large complicated module. > >Since I'm able to get the data easily...I was wondering if there was a way >just as simple to delete? > >Thanks, > >Mark A. Matte From accessd at shaw.ca Fri Sep 15 11:31:30 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 15 Sep 2006 09:31:30 -0700 Subject: [AccessD] Delete from FTP In-Reply-To: Message-ID: <0J5N00LA877DSR20@l-daemon> Wow Gustav, that is a nice little gem. Could have used that some time ago... even made a request to the list at the time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 8:06 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Mark You can attach the FTP folder as a driver letter using Novell NetDrive (free): http://www.rsync.net/resources/howto/windows_map.html Then you can use normal file operations from VBA using that drive letter. /gustav >>> markamatte at hotmail.com 15-09-2006 16:11:59 >>> Hello All, In A2K I'm using DoCmd.Transfertext wih an FTP site as the target path to import a text file. This works fine. I need to delete the text file from the FTP site after the transfer/import. I've used an FTP module in the past where you open the connection/delete or what ever/ and then close the connection. Its a large complicated module. Since I'm able to get the data easily...I was wondering if there was a way just as simple to delete? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 15 11:39:42 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 15 Sep 2006 18:39:42 +0200 Subject: [AccessD] Delete from FTP Message-ID: Hi Jim Don't get too excited. It won't allow you to attach databases at a FTP server as it just hides the transfer between the FTP server and a local temp folder by a clever caching mechanism. /gustav >>> accessd at shaw.ca 15-09-2006 18:31:30 >>> Wow Gustav, that is a nice little gem. Could have used that some time ago... even made a request to the list at the time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 8:06 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Mark You can attach the FTP folder as a driver letter using Novell NetDrive (free): http://www.rsync.net/resources/howto/windows_map.html Then you can use normal file operations from VBA using that drive letter. /gustav From accessd at shaw.ca Fri Sep 15 12:30:43 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 15 Sep 2006 10:30:43 -0700 Subject: [AccessD] OT: Delete from FTP In-Reply-To: Message-ID: <0J5N00GQH9Y2KP50@l-daemon> Hi Gustav: ..But if it provides a connection between a couple of folders, on remote/LAN drives, that would not normally be connectable through standard 'map network drives' is it not tunneling? Currently I have a number of drive letters connected to shares on remote sites, off the server (2003), with no extra software. To actually run remote software it still requires, TermServer, XP Remote or Hamachi/UltraVNC. As I have not tested the Novell software yet, am I making assumptions or am I missing something? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 9:40 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Jim Don't get too excited. It won't allow you to attach databases at a FTP server as it just hides the transfer between the FTP server and a local temp folder by a clever caching mechanism. /gustav >>> accessd at shaw.ca 15-09-2006 18:31:30 >>> Wow Gustav, that is a nice little gem. Could have used that some time ago... even made a request to the list at the time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 8:06 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Mark You can attach the FTP folder as a driver letter using Novell NetDrive (free): http://www.rsync.net/resources/howto/windows_map.html Then you can use normal file operations from VBA using that drive letter. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 15 13:01:01 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 15 Sep 2006 20:01:01 +0200 Subject: [AccessD] OT: Delete from FTP Message-ID: Hi Jim Yes, NetDrive only creates and "opens" a drive letter to the remote FTP server. It doesn't allow you to run an application on the server - it is not a remote-op thing. However, that single feature is very useful, indeed for "normal" users. /gustav >>> accessd at shaw.ca 15-09-2006 19:30 >>> Hi Gustav: ..But if it provides a connection between a couple of folders, on remote/LAN drives, that would not normally be connectable through standard 'map network drives' is it not tunneling? Currently I have a number of drive letters connected to shares on remote sites, off the server (2003), with no extra software. To actually run remote software it still requires, TermServer, XP Remote or Hamachi/UltraVNC. As I have not tested the Novell software yet, am I making assumptions or am I missing something? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 9:40 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Jim Don't get too excited. It won't allow you to attach databases at a FTP server as it just hides the transfer between the FTP server and a local temp folder by a clever caching mechanism. /gustav >>> accessd at shaw.ca 15-09-2006 18:31:30 >>> Wow Gustav, that is a nice little gem. Could have used that some time ago... even made a request to the list at the time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 8:06 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Mark You can attach the FTP folder as a driver letter using Novell NetDrive (free): http://www.rsync.net/resources/howto/windows_map.html Then you can use normal file operations from VBA using that drive letter. /gustav From markamatte at hotmail.com Fri Sep 15 15:54:33 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 15 Sep 2006 20:54:33 +0000 Subject: [AccessD] Delete from FTP In-Reply-To: Message-ID: Hello All, Thanks for the feedback. In the ftp demo I had originally used...I couldn't find where the file was actually deleted from the ftp site. I found a .DelFile in the module but it was never called. I opnly used the .GetFile and apparently the .GetFile deletes the ftp file after it gets it? So...since I didn't need to GET having already used docmd.transfertext I just used teh same module and replace the .GetFile with the .DelFile and everthing is OK. I am still curious why the .GetFile deletes thew source file...or I might just be overlooking ...but I know the .DelFile is never called in the original demo. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Delete from FTP >Date: Fri, 15 Sep 2006 18:39:42 +0200 > >Hi Jim > >Don't get too excited. It won't allow you to attach databases at a FTP >server as it just hides the transfer between the FTP server and a local >temp folder by a clever caching mechanism. > >/gustav > > >>> accessd at shaw.ca 15-09-2006 18:31:30 >>> >Wow Gustav, that is a nice little gem. > >Could have used that some time ago... even made a request to the list at >the >time. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Friday, September 15, 2006 8:06 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Delete from FTP > >Hi Mark > >You can attach the FTP folder as a driver letter using Novell NetDrive >(free): > >http://www.rsync.net/resources/howto/windows_map.html > >Then you can use normal file operations from VBA using that drive letter. > >/gustav > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Sun Sep 17 16:15:21 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Sun, 17 Sep 2006 14:15:21 -0700 Subject: [AccessD] Is system down? Message-ID: <000e01c6da9e$62b70f90$0202fea9@BPCS> is this working? From djkr at msn.com Sun Sep 17 16:30:09 2006 From: djkr at msn.com (DJK(John) Robinson) Date: Sun, 17 Sep 2006 22:30:09 +0100 Subject: [AccessD] Is system down? In-Reply-To: <000e01c6da9e$62b70f90$0202fea9@BPCS> Message-ID: Yup! J Hang on - you asked opposite questions: No to the first, Yes to the second! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: 17 September 2006 22:15 To: accessd at databaseadvisors.com Subject: [AccessD] Is system down? is this working? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Sun Sep 17 17:55:48 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Sun, 17 Sep 2006 15:55:48 -0700 Subject: [AccessD] Is system down? References: Message-ID: <001201c6daac$6af2b980$0202fea9@BPCS> Thanks John, it was so quiet the past few days I thought I'd check, B ----- Original Message ----- From: "DJK(John) Robinson" To: "'Access Developers discussion and problem solving'" Sent: Sunday, September 17, 2006 2:30 PM Subject: Re: [AccessD] Is system down? Yup! J Hang on - you asked opposite questions: No to the first, Yes to the second! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: 17 September 2006 22:15 To: accessd at databaseadvisors.com Subject: [AccessD] Is system down? is this working? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Sun Sep 17 20:04:35 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sun, 17 Sep 2006 18:04:35 -0700 Subject: [AccessD] Is system down? In-Reply-To: <000e01c6da9e$62b70f90$0202fea9@BPCS> Message-ID: It is here in Lost Angeles. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Sunday, September 17, 2006 2:15 PM To: accessd at databaseadvisors.com Subject: [AccessD] Is system down? is this working? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Sep 18 10:44:15 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 18 Sep 2006 15:44:15 +0000 Subject: [AccessD] Global Variable??? In-Reply-To: <000e01c6da9e$62b70f90$0202fea9@BPCS> Message-ID: Hello All, I have an A2k db...and apparently am having a brain cramp. On a form...click a button...uses Dlookup to find which path to a folder we are going to use... Location = dlookup("location","tblLocations","ID=2") The Dlookup works fine...but I need to pass this value to a function in a module...whenever I put "location" in the Module...it says variable not defined. I've tried everything I can think of. Please help? Thanks, Mark A. Matte From Robin at rolledgold.net Mon Sep 18 10:43:48 2006 From: Robin at rolledgold.net (Robin ) Date: Mon, 18 Sep 2006 16:43:48 +0100 Subject: [AccessD] Global Variable??? Message-ID: <560E2B80EC8F624B93A87B943B7A9CD542432F@rgiserv.rg.local> Hi Mark, If I understand you correctly you need to assign the dlookup value to a variable.... eg strlocation = dlookup("location","tblLocations","ID=2") Then use strlocation in your module.... Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: 18 September 2006 16:44 To: accessd at databaseadvisors.com Subject: [AccessD] Global Variable??? Hello All, I have an A2k db...and apparently am having a brain cramp. On a form...click a button...uses Dlookup to find which path to a folder we are going to use... Location = dlookup("location","tblLocations","ID=2") The Dlookup works fine...but I need to pass this value to a function in a module...whenever I put "location" in the Module...it says variable not defined. I've tried everything I can think of. Please help? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Sep 18 11:22:47 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 18 Sep 2006 16:22:47 +0000 Subject: [AccessD] Global Variable??? In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD542432F@rgiserv.rg.local> Message-ID: Thanks for the feedback...I found my brain cramp...you have to declare a global variable in a module...not a class module?.?.?...I think...lol But it works now. Thanks, Mark A. Matte >From: "Robin " >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Global Variable??? >Date: Mon, 18 Sep 2006 16:43:48 +0100 > >Hi Mark, >If I understand you correctly you need to assign the dlookup value to a >variable.... > >eg strlocation = dlookup("location","tblLocations","ID=2") > >Then use strlocation in your module.... >Rgds >Robin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: 18 September 2006 16:44 >To: accessd at databaseadvisors.com >Subject: [AccessD] Global Variable??? > > >Hello All, > >I have an A2k db...and apparently am having a brain cramp. On a >form...click a button...uses Dlookup to find which path to a folder we >are >going to use... Location = dlookup("location","tblLocations","ID=2") > >The Dlookup works fine...but I need to pass this value to a function in >a >module...whenever I put "location" in the Module...it says variable not >defined. I've tried everything I can think of. > > >Please help? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From adtp at hotmail.com Mon Sep 18 12:48:07 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Mon, 18 Sep 2006 23:18:07 +0530 Subject: [AccessD] Report Group Page Breaks with no break for the ReportFooter References: <000e01c6d8d2$f0704860$6a01a8c0@LaptopXP> Message-ID: John, Apparently you wish to force page break after the group footer in such a manner that normally, such break gets forced compulsorily, while at the end of report, there should be no forced page break if adequate space is available to accommodate the report footer as well. It is suggested that you should avoid setting any page break in report design via properties dialog box of group footer. Instead, insert the sample code given below, in format event of appropriate group footer. TxtCount is the name of calculated text box in Detail section (with the expression =1). Its running sum property should be set to Overall. Best wishes, A.D.Tejpal --------------- ================================ Private Sub GroupFooter1_Format(Cancel As Integer, _ FormatCount As Integer) If TxtCount < DCount("*", Me.RecordSource) Then ' Not yet yet reached the end of report. Force ' new page after group footer. Me.GroupFooter1.ForceNewPage = 2 Else ' End of report has been reached. No need to ' force new page. Access will take care of ' placing the report footer either on current page ' or the next one, depending upon room available. Me.GroupFooter1.ForceNewPage = 0 End If End Sub ================================ ----- Original Message ----- From: John Skolits To: 'Access Developers discussion and problem solving' Sent: Friday, September 15, 2006 19:56 Subject: [AccessD] Report Group Page Breaks with no break for the ReportFooter I have a report with a group header/footer. I tell the group Footer to force a new page "After Section' No problem. Breaks after each group. There is also a 'Report footer'. That page gets printed last. But, if I have only one group and it fits on the first page with plenty of room for the report footer to fit, how can I prevent a page break? All the 'Keep together' properties of the Groups and Sections are True. All the 'Can Shrinks' are set to true. All the other 'Force New Page' properties are set to None I've tried modifying the footer-'Force New Page' property in code during the format of the detail section, but that doesn't seem to work. Any ideas? Thanks, John From askolits at ot.com Mon Sep 18 14:23:03 2006 From: askolits at ot.com (John Skolits) Date: Mon, 18 Sep 2006 15:23:03 -0400 Subject: [AccessD] Report Group Page Breaks with no break for theReportFooter In-Reply-To: Message-ID: <016401c6db57$df963a40$6a01a8c0@LaptopXP> I'll give it a shot. I'll let you know how it goes. Thanks, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Monday, September 18, 2006 1:48 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Report Group Page Breaks with no break for theReportFooter John, Apparently you wish to force page break after the group footer in such a manner that normally, such break gets forced compulsorily, while at the end of report, there should be no forced page break if adequate space is available to accommodate the report footer as well. It is suggested that you should avoid setting any page break in report design via properties dialog box of group footer. Instead, insert the sample code given below, in format event of appropriate group footer. TxtCount is the name of calculated text box in Detail section (with the expression =1). Its running sum property should be set to Overall. Best wishes, A.D.Tejpal --------------- ================================ Private Sub GroupFooter1_Format(Cancel As Integer, _ FormatCount As Integer) If TxtCount < DCount("*", Me.RecordSource) Then ' Not yet yet reached the end of report. Force ' new page after group footer. Me.GroupFooter1.ForceNewPage = 2 Else ' End of report has been reached. No need to ' force new page. Access will take care of ' placing the report footer either on current page ' or the next one, depending upon room available. Me.GroupFooter1.ForceNewPage = 0 End If End Sub ================================ ----- Original Message ----- From: John Skolits To: 'Access Developers discussion and problem solving' Sent: Friday, September 15, 2006 19:56 Subject: [AccessD] Report Group Page Breaks with no break for the ReportFooter I have a report with a group header/footer. I tell the group Footer to force a new page "After Section' No problem. Breaks after each group. There is also a 'Report footer'. That page gets printed last. But, if I have only one group and it fits on the first page with plenty of room for the report footer to fit, how can I prevent a page break? All the 'Keep together' properties of the Groups and Sections are True. All the 'Can Shrinks' are set to true. All the other 'Force New Page' properties are set to None I've tried modifying the footer-'Force New Page' property in code during the format of the detail section, but that doesn't seem to work. Any ideas? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 18 20:45:24 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 18 Sep 2006 21:45:24 -0400 Subject: [AccessD] pretty quiet out there Message-ID: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Is there anybody out there (to a pink floyd melody) John W. Colby Colby Consulting www.ColbyConsulting.com From jmhecht at earthlink.net Mon Sep 18 20:49:39 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 18 Sep 2006 18:49:39 -0700 Subject: [AccessD] pretty quiet out there In-Reply-To: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Message-ID: We are awake here in Los Angeles. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 18, 2006 6:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] pretty quiet out there Is there anybody out there (to a pink floyd melody) John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Sep 18 20:52:26 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 19 Sep 2006 11:52:26 +1000 Subject: [AccessD] pretty quiet out there In-Reply-To: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> References: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Message-ID: <450FD9FA.25394.85181426@stuart.lexacorp.com.pg> On 18 Sep 2006 at 21:45, JWColby wrote: > Is there anybody out there (to a pink floyd melody) What, did you miss the Rapture too? From rusty.hammond at cpiqpc.com Mon Sep 18 21:59:08 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Mon, 18 Sep 2006 21:59:08 -0500 Subject: [AccessD] pretty quiet out there Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8AA3@cpixchng-1.cpiqpc.net> Looks like you've covered everything about access anyone needs to know. There are no more questions ;-) -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Monday, September 18, 2006 8:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] pretty quiet out there Is there anybody out there (to a pink floyd melody) John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From david.gray at tpg.com.au Mon Sep 18 22:37:37 2006 From: david.gray at tpg.com.au (David Gray) Date: Tue, 19 Sep 2006 13:37:37 +1000 Subject: [AccessD] Slider Control Message-ID: <000001c6db9c$f4674eb0$0101a8c0@server> OK I'll ask a question just to get the ball rolling again. I'm trying to use the slider control to change the scale on a Graph10 control and got it all working only to find it only handles long integers which means I cant set its value to say 1.5. Is this so or have I missed something? David Gray Yahoo ID: flock_it_software ? From mmattys at rochester.rr.com Mon Sep 18 22:50:59 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 18 Sep 2006 23:50:59 -0400 Subject: [AccessD] pretty quiet out there References: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8AA3@cpixchng-1.cpiqpc.net> Message-ID: <000801c6db9e$d33eecf0$0202a8c0@default> ... you are only coming through in waves ... www.mattysconsulting.com > -----Original Message----- > From: JWColby [mailto:jwcolby at colbyconsulting.com] > Sent: Monday, September 18, 2006 8:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] pretty quiet out there > > > Is there anybody out there (to a pink floyd melody) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com From andy at minstersystems.co.uk Tue Sep 19 01:36:54 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 19 Sep 2006 07:36:54 +0100 Subject: [AccessD] pretty quiet out there In-Reply-To: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Message-ID: <005d01c6dbb5$ff6c50d0$342270c3@minster33c3r25> All present and correct the other side of the pond -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: 19 September 2006 02:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] pretty quiet out there > > > Is there anybody out there (to a pink floyd melody) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From askolits at ot.com Tue Sep 19 05:54:48 2006 From: askolits at ot.com (John Skolits) Date: Tue, 19 Sep 2006 06:54:48 -0400 Subject: [AccessD] Report Group Page Breaks with no break for theReportFooter In-Reply-To: Message-ID: <000401c6dbda$067e6ce0$6d01a8c0@LaptopXP> That seemed to work. Thanks! The only change was that I created a local variable for the report module called lng_rsCount and loaded the Dcount Value into it, during the "OnOpen" event of the report. In that way the Dcount didn't run multiple times as it does in the format event. It was making the report open up too slowly. Thanks again. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Monday, September 18, 2006 1:48 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Report Group Page Breaks with no break for theReportFooter John, Apparently you wish to force page break after the group footer in such a manner that normally, such break gets forced compulsorily, while at the end of report, there should be no forced page break if adequate space is available to accommodate the report footer as well. It is suggested that you should avoid setting any page break in report design via properties dialog box of group footer. Instead, insert the sample code given below, in format event of appropriate group footer. TxtCount is the name of calculated text box in Detail section (with the expression =1). Its running sum property should be set to Overall. Best wishes, A.D.Tejpal --------------- ================================ Private Sub GroupFooter1_Format(Cancel As Integer, _ FormatCount As Integer) If TxtCount < DCount("*", Me.RecordSource) Then ' Not yet yet reached the end of report. Force ' new page after group footer. Me.GroupFooter1.ForceNewPage = 2 Else ' End of report has been reached. No need to ' force new page. Access will take care of ' placing the report footer either on current page ' or the next one, depending upon room available. Me.GroupFooter1.ForceNewPage = 0 End If End Sub ================================ ----- Original Message ----- From: John Skolits To: 'Access Developers discussion and problem solving' Sent: Friday, September 15, 2006 19:56 Subject: [AccessD] Report Group Page Breaks with no break for the ReportFooter I have a report with a group header/footer. I tell the group Footer to force a new page "After Section' No problem. Breaks after each group. There is also a 'Report footer'. That page gets printed last. But, if I have only one group and it fits on the first page with plenty of room for the report footer to fit, how can I prevent a page break? All the 'Keep together' properties of the Groups and Sections are True. All the 'Can Shrinks' are set to true. All the other 'Force New Page' properties are set to None I've tried modifying the footer-'Force New Page' property in code during the format of the detail section, but that doesn't seem to work. Any ideas? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 19 06:45:23 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 19 Sep 2006 07:45:23 -0400 Subject: [AccessD] Slider Control In-Reply-To: <000001c6db9c$f4674eb0$0101a8c0@server> Message-ID: <004801c6dbe1$1891ca10$657aa8c0@m6805> I've never used it. But if true, it seems you could work around this by setting the scale to 10x as large (use 10 times as many "points" on the scale) and then divide by 10 to get the float number. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Gray Sent: Monday, September 18, 2006 11:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slider Control OK I'll ask a question just to get the ball rolling again. I'm trying to use the slider control to change the scale on a Graph10 control and got it all working only to find it only handles long integers which means I cant set its value to say 1.5. Is this so or have I missed something? David Gray Yahoo ID: flock_it_software ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 19 06:45:55 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 19 Sep 2006 07:45:55 -0400 Subject: [AccessD] pretty quiet out there In-Reply-To: <000801c6db9e$d33eecf0$0202a8c0@default> Message-ID: <004901c6dbe1$2b408110$657aa8c0@m6805> ... you are only coming through in waves ... 8~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Monday, September 18, 2006 11:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] pretty quiet out there ... you are only coming through in waves ... www.mattysconsulting.com > -----Original Message----- > From: JWColby [mailto:jwcolby at colbyconsulting.com] > Sent: Monday, September 18, 2006 8:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] pretty quiet out there > > > Is there anybody out there (to a pink floyd melody) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Sep 19 09:06:59 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 19 Sep 2006 07:06:59 -0700 Subject: [AccessD] pretty quiet out there In-Reply-To: <450FD9FA.25394.85181426@stuart.lexacorp.com.pg> Message-ID: ROTFLMAO! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 18, 2006 6:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] pretty quiet out there On 18 Sep 2006 at 21:45, JWColby wrote: > Is there anybody out there (to a pink floyd melody) What, did you miss the Rapture too? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Tue Sep 19 09:28:16 2006 From: pharold at proftesting.com (Perry L Harold) Date: Tue, 19 Sep 2006 10:28:16 -0400 Subject: [AccessD] pretty quiet out there In-Reply-To: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD2D94FF@EXCHANGE.ptiorl.local> All in all you're just another brick in the wall. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 18, 2006 9:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] pretty quiet out there Is there anybody out there (to a pink floyd melody) John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Tue Sep 19 09:31:49 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 19 Sep 2006 07:31:49 -0700 Subject: [AccessD] pretty quiet out there In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD2D94FF@EXCHANGE.ptiorl.local> Message-ID: All in all, I hope my bricks stay put here in Los Angeles Joe Hecht jmhecht at earthlink.net All in all you're just another brick in the wall. Perry Harold From andy at minstersystems.co.uk Tue Sep 19 10:58:05 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 19 Sep 2006 15:58:05 +0000 Subject: [AccessD] pretty quiet out there Message-ID: <20060919145812.4A393E616CB@smtp.nildram.co.uk> personally I preferred the quiet -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] pretty quiet out there Date: 19/09/06 14:32 All in all, I hope my bricks stay put here in Los Angeles Joe Hecht jmhecht at earthlink.net All in all you're just another brick in the wall. Perry Harold -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From john at winhaven.net Tue Sep 19 10:36:29 2006 From: john at winhaven.net (John Bartow) Date: Tue, 19 Sep 2006 10:36:29 -0500 Subject: [AccessD] pretty quiet out there In-Reply-To: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Message-ID: <001601c6dc01$6073aef0$6501a8c0@ScuzzPaq> Hey all, The dba-OT list is as chatty as ever, head on over there for a spell... From artful at rogers.com Tue Sep 19 10:42:08 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 19 Sep 2006 08:42:08 -0700 (PDT) Subject: [AccessD] pretty quiet out there In-Reply-To: <20060919145812.4A393E616CB@smtp.nildram.co.uk> Message-ID: <20060919154208.99141.qmail@web88207.mail.re2.yahoo.com> Apparently all Access questions have now been solved, and we are now reduced to quoting song lyrics. Fine, but if so we must elevate the level to Tom Waits at least: "Get down off the cross, we need the wood." A. ----- Original Message ---- From: Andy Lacey To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 11:58:05 AM Subject: Re: [AccessD] pretty quiet out there personally I preferred the quiet From cfoust at infostatsystems.com Tue Sep 19 11:45:48 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 19 Sep 2006 09:45:48 -0700 Subject: [AccessD] pretty quiet out there In-Reply-To: <20060919154208.99141.qmail@web88207.mail.re2.yahoo.com> Message-ID: Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, September 19, 2006 8:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] pretty quiet out there Apparently all Access questions have now been solved, and we are now reduced to quoting song lyrics. Fine, but if so we must elevate the level to Tom Waits at least: "Get down off the cross, we need the wood." A. ----- Original Message ---- From: Andy Lacey To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 11:58:05 AM Subject: Re: [AccessD] pretty quiet out there personally I preferred the quiet -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Sep 19 11:54:59 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 19 Sep 2006 11:54:59 -0500 Subject: [AccessD] Switching to VB.net In-Reply-To: <21521864.1158684598873.JavaMail.root@sniper46> Message-ID: <000c01c6dc0c$582a8e20$0200a8c0@danwaters> OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte From adtp at hotmail.com Tue Sep 19 07:14:28 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Tue, 19 Sep 2006 17:44:28 +0530 Subject: [AccessD] Report Group Page Breaks with no break fortheReportFooter References: <000401c6dbda$067e6ce0$6d01a8c0@LaptopXP> Message-ID: You are most welcome John! I am glad your problem stands resolved. You have done a nice job of adapting the suggested solution in an optimum manner. Using a report level global variable for storing the total count is an excellent step. A.D.Tejpal --------------- ----- Original Message ----- From: John Skolits To: 'Access Developers discussion and problem solving' Sent: Tuesday, September 19, 2006 16:24 Subject: Re: [AccessD] Report Group Page Breaks with no break fortheReportFooter That seemed to work. Thanks! The only change was that I created a local variable for the report module called lng_rsCount and loaded the Dcount Value into it, during the "OnOpen" event of the report. In that way the Dcount didn't run multiple times as it does in the format event. It was making the report open up too slowly. Thanks again. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Monday, September 18, 2006 1:48 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Report Group Page Breaks with no break for theReportFooter John, Apparently you wish to force page break after the group footer in such a manner that normally, such break gets forced compulsorily, while at the end of report, there should be no forced page break if adequate space is available to accommodate the report footer as well. It is suggested that you should avoid setting any page break in report design via properties dialog box of group footer. Instead, insert the sample code given below, in format event of appropriate group footer. TxtCount is the name of calculated text box in Detail section (with the expression =1). Its running sum property should be set to Overall. Best wishes, A.D.Tejpal --------------- ================================ Private Sub GroupFooter1_Format(Cancel As Integer, _ FormatCount As Integer) If TxtCount < DCount("*", Me.RecordSource) Then ' Not yet yet reached the end of report. Force ' new page after group footer. Me.GroupFooter1.ForceNewPage = 2 Else ' End of report has been reached. No need to ' force new page. Access will take care of ' placing the report footer either on current page ' or the next one, depending upon room available. Me.GroupFooter1.ForceNewPage = 0 End If End Sub ================================ From Chester_Kaup at kindermorgan.com Tue Sep 19 12:50:41 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Sep 2006 12:50:41 -0500 Subject: [AccessD] Why does the query equate these two fields? Message-ID: The contents of the two joined text fields are not the same but the query equates them. Here is the query and the results. Never seen this before. SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID FROM ConfigMaster INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = dbo_DSS_WellMaster.PID WHERE (((ConfigMaster.PID)="PAT 101-1")) ORDER BY ConfigMaster.PID; Funky Ptrn and Wells to Alloc CO2PAT ChildPID PID PAT 101-1 42415016740001 4241501674 PAT 101-1 42415016770001 4241501677 PAT 101-1 42415017470001 4241501747 PAT 101-1 42415017490001 4241501749 PAT 101-1 42415017610001 4241501761 Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From Chester_Kaup at kindermorgan.com Tue Sep 19 12:57:05 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Sep 2006 12:57:05 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: Lets try this again. Message reformatted itself. The contents of the two joined text fields are not the same but the query equates them. Here is the query and the results. Never seen this before. SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID FROM ConfigMaster INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = dbo_DSS_WellMaster.PID WHERE (((ConfigMaster.PID)="PAT 101-1")) ORDER BY ConfigMaster.PID; CO2PAT ChildPID PID PAT 101-1 42415016740001 4241501674 PAT 101-1 42415016770001 4241501677 PAT 101-1 42415017470001 4241501747 PAT 101-1 42415017490001 4241501749 PAT 101-1 42415017610001 4241501761 Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Sep 19 13:04:27 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 19 Sep 2006 19:04:27 +0100 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: <000a01c6dc16$0c15bbe0$342270c3@minster33c3r25> Whoa that's weird. I've never seen that either. I can't suggest an explanation but I'm going to be interested in the solution. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Kaup, Chester > Sent: 19 September 2006 18:57 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same > but the query equates them. Here is the query and the > results. Never seen this before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However > a large number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From markamatte at hotmail.com Tue Sep 19 13:29:35 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 19 Sep 2006 18:29:35 +0000 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: <000a01c6dc16$0c15bbe0$342270c3@minster33c3r25> Message-ID: Chester, I recreated your scenario...but not you results. In looking at my example...I have 1 question... Q: Are "ConfigMaster" and "dbo_DSS_WellMaster" both tables in a local db...or are they queries/linked table/other? Thanks, Mark A. Matte >From: "Andy Lacey" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Why does the query equate these two fields? >Date: Tue, 19 Sep 2006 19:04:27 +0100 > >Whoa that's weird. I've never seen that either. I can't suggest an >explanation but I'm going to be interested in the solution. > >-- Andy Lacey >http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Kaup, Chester > > Sent: 19 September 2006 18:57 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > > > > > > Lets try this again. Message reformatted itself. > > > > > > The contents of the two joined text fields are not the same > > but the query equates them. Here is the query and the > > results. Never seen this before. > > > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > > > FROM ConfigMaster > > > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > > dbo_DSS_WellMaster.PID > > > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > > > ORDER BY ConfigMaster.PID; > > > > > > CO2PAT ChildPID PID > > PAT 101-1 42415016740001 4241501674 > > PAT 101-1 42415016770001 4241501677 > > PAT 101-1 42415017470001 4241501747 > > PAT 101-1 42415017490001 4241501749 > > PAT 101-1 42415017610001 4241501761 > > > > > > > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > > > > > > > > > > > No trees were killed in the sending of this message. However > > a large number of electrons were terribly inconvenienced. > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Tue Sep 19 13:45:51 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 19 Sep 2006 19:45:51 +0100 Subject: [AccessD] String Help References: <000e01c6d8d2$f0704860$6a01a8c0@LaptopXP> Message-ID: Given the string shown below does anyone know how to using VBA Before you can use the GUIDs from the address as arguments in this macro action, you must replace each %7B string with the { character, replace each %2D string with the - character, and replace each %7D string with the } character. Do not include the & (ampersand) character that follows the %7D string in the list GUID. The string would be of the form http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D This is out of the Access 2007 help file. Your response will be published by the way as I cant do it. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From jwcolby at colbyconsulting.com Tue Sep 19 14:07:52 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 19 Sep 2006 15:07:52 -0400 Subject: [AccessD] String Help In-Reply-To: Message-ID: <006f01c6dc1e$e8b2f650$657aa8c0@m6805> Use replace (MyString,"%7B","{") replace (MyString,"%2D","-") replace (MyString,"%7D","}") John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Tuesday, September 19, 2006 2:46 PM To: Access Developers discussion and problem solving Subject: [AccessD] String Help Given the string shown below does anyone know how to using VBA Before you can use the GUIDs from the address as arguments in this macro action, you must replace each %7B string with the { character, replace each %2D string with the - character, and replace each %7D string with the } character. Do not include the & (ampersand) character that follows the %7D string in the list GUID. The string would be of the form http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13 %2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D This is out of the Access 2007 help file. Your response will be published by the way as I cant do it. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Chester_Kaup at kindermorgan.com Tue Sep 19 14:15:22 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Sep 2006 14:15:22 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: ConfigMaster is a local table. dbo_DSS_Wellmaster is SQL server version 2007 table. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, September 19, 2006 1:30 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Why does the query equate these two fields? Chester, I recreated your scenario...but not you results. In looking at my example...I have 1 question... Q: Are "ConfigMaster" and "dbo_DSS_WellMaster" both tables in a local db...or are they queries/linked table/other? Thanks, Mark A. Matte >From: "Andy Lacey" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Why does the query equate these two fields? >Date: Tue, 19 Sep 2006 19:04:27 +0100 > >Whoa that's weird. I've never seen that either. I can't suggest an >explanation but I'm going to be interested in the solution. > >-- Andy Lacey >http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Kaup, Chester > > Sent: 19 September 2006 18:57 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > > > > > > Lets try this again. Message reformatted itself. > > > > > > The contents of the two joined text fields are not the same > > but the query equates them. Here is the query and the > > results. Never seen this before. > > > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > > > FROM ConfigMaster > > > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > > dbo_DSS_WellMaster.PID > > > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > > > ORDER BY ConfigMaster.PID; > > > > > > CO2PAT ChildPID PID > > PAT 101-1 42415016740001 4241501674 > > PAT 101-1 42415016770001 4241501677 > > PAT 101-1 42415017470001 4241501747 > > PAT 101-1 42415017490001 4241501749 > > PAT 101-1 42415017610001 4241501761 > > > > > > > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > > > > > > > > > > > No trees were killed in the sending of this message. However > > a large number of electrons were terribly inconvenienced. > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Sep 19 14:16:07 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 19 Sep 2006 19:16:07 +0000 Subject: [AccessD] String Help In-Reply-To: Message-ID: Martin, I thought your were changing then launching the site...So here's my stab at it. Good luck, Mark A. Matte Private Sub Command0_Click() Dim site As String site = "http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D" site = Replace(site, "%7B", "{") site = Replace(site, "%2D", "-") site = Replace(site, "%7D&", "%7D") site = Replace(site, "%7D", "}") OpenIE site End Sub Public Function OpenIE(vURL As String) On Error GoTo ErrorHandler IEObj.Visible = True With IEObj ..Visible = True ..Navigate vURL Do Until Not .Busy DoEvents Loop End With Exit Function ErrorHandler: On Error GoTo ErrorHandler2 Set IEObj = Nothing Set IEObj = CreateObject("InternetExplorer.Application") ErrorHandler2: Resume Next End Function >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] String Help >Date: Tue, 19 Sep 2006 19:45:51 +0100 > >Given the string shown below does anyone know how to using VBA > >Before you can use the GUIDs from the address as arguments in this macro >action, you must replace each %7B string with the { character, replace each >%2D string with the - character, and replace each %7D string with the } >character. Do not include the & (ampersand) character that follows the %7D >string in the list GUID. > > > >The string would be of the form > >http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D > > >This is out of the Access 2007 help file. Your response will be published >by the way as I cant do it. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Sep 19 14:20:19 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 19 Sep 2006 19:20:19 +0000 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: Chester, It is an odd scenario...I can't replicate those conditions(the software)...I would probably use a make table and create a small version of the dbo_DSS_Wellmaster and see if it still occurs. I would guess that it would not. I really have no idea what is causing this...but if I had to guess...I would look at the linking aspect of the situation. Good luck, Mark A. Matte >From: "Kaup, Chester" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Why does the query equate these two fields? >Date: Tue, 19 Sep 2006 14:15:22 -0500 > >ConfigMaster is a local table. dbo_DSS_Wellmaster is SQL server version >2007 table. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Tuesday, September 19, 2006 1:30 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Why does the query equate these two fields? > >Chester, > >I recreated your scenario...but not you results. In looking at my >example...I have 1 question... > >Q: Are "ConfigMaster" and "dbo_DSS_WellMaster" both tables in a local >db...or are they queries/linked table/other? > >Thanks, > >Mark A. Matte > > > >From: "Andy Lacey" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Why does the query equate these two fields? > >Date: Tue, 19 Sep 2006 19:04:27 +0100 > > > >Whoa that's weird. I've never seen that either. I can't suggest an > >explanation but I'm going to be interested in the solution. > > > >-- Andy Lacey > >http://www.minstersystems.co.uk > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Kaup, Chester > > > Sent: 19 September 2006 18:57 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > > > > > > > > > > > Lets try this again. Message reformatted itself. > > > > > > > > > The contents of the two joined text fields are not the same > > > but the query equates them. Here is the query and the > > > results. Never seen this before. > > > > > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > > > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > > > > > FROM ConfigMaster > > > > > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > > > dbo_DSS_WellMaster.PID > > > > > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > > > > > ORDER BY ConfigMaster.PID; > > > > > > > > > CO2PAT ChildPID PID > > > PAT 101-1 42415016740001 4241501674 > > > PAT 101-1 42415016770001 4241501677 > > > PAT 101-1 42415017470001 4241501747 > > > PAT 101-1 42415017490001 4241501749 > > > PAT 101-1 42415017610001 4241501761 > > > > > > > > > > > > > > > Chester Kaup > > > Engineering Technician > > > Kinder Morgan CO2 Company, LLP > > > Office (432) 688-3797 > > > FAX (432) 688-3799 > > > > > > > > > > > > > > > > > > No trees were killed in the sending of this message. However > > > a large number of electrons were terribly inconvenienced. > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Tue Sep 19 14:29:43 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 19 Sep 2006 20:29:43 +0100 Subject: [AccessD] String Help References: Message-ID: Thanks to both of you Actually its aparameter to link to a sharepoint list form Access. All sorted now using a combination of both your and Johns suggestion. Thanks Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte Sent: Tue 19/09/2006 20:16 To: accessd at databaseadvisors.com Subject: Re: [AccessD] String Help Martin, I thought your were changing then launching the site...So here's my stab at it. Good luck, Mark A. Matte Private Sub Command0_Click() Dim site As String site = "http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D" site = Replace(site, "%7B", "{") site = Replace(site, "%2D", "-") site = Replace(site, "%7D&", "%7D") site = Replace(site, "%7D", "}") OpenIE site End Sub Public Function OpenIE(vURL As String) On Error GoTo ErrorHandler IEObj.Visible = True With IEObj ..Visible = True ..Navigate vURL Do Until Not .Busy DoEvents Loop End With Exit Function ErrorHandler: On Error GoTo ErrorHandler2 Set IEObj = Nothing Set IEObj = CreateObject("InternetExplorer.Application") ErrorHandler2: Resume Next End Function >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] String Help >Date: Tue, 19 Sep 2006 19:45:51 +0100 > >Given the string shown below does anyone know how to using VBA > >Before you can use the GUIDs from the address as arguments in this macro >action, you must replace each %7B string with the { character, replace each >%2D string with the - character, and replace each %7D string with the } >character. Do not include the & (ampersand) character that follows the %7D >string in the list GUID. > > > >The string would be of the form > >http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D > > >This is out of the Access 2007 help file. Your response will be published >by the way as I cant do it. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tuxedoman888 at gmail.com Tue Sep 19 14:45:02 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 19 Sep 2006 12:45:02 -0700 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: References: Message-ID: <7c8826480609191245o339547c1pdf7154d5fb6f28cc@mail.gmail.com> do you get the same result if you convert dbo_DSS_Wellmaster to a local table? On 9/19/06, Kaup, Chester wrote: > > ConfigMaster is a local table. dbo_DSS_Wellmaster is SQL server version > 2007 table. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, September 19, 2006 1:30 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Why does the query equate these two fields? > > Chester, > > I recreated your scenario...but not you results. In looking at my > example...I have 1 question... > > Q: Are "ConfigMaster" and "dbo_DSS_WellMaster" both tables in a local > db...or are they queries/linked table/other? > > Thanks, > > Mark A. Matte > > > >From: "Andy Lacey" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Why does the query equate these two fields? > >Date: Tue, 19 Sep 2006 19:04:27 +0100 > > > >Whoa that's weird. I've never seen that either. I can't suggest an > >explanation but I'm going to be interested in the solution. > > > >-- Andy Lacey > >http://www.minstersystems.co.uk > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Kaup, Chester > > > Sent: 19 September 2006 18:57 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > > > > > > > > > > > Lets try this again. Message reformatted itself. > > > > > > > > > The contents of the two joined text fields are not the same > > > but the query equates them. Here is the query and the > > > results. Never seen this before. > > > > > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > > > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > > > > > FROM ConfigMaster > > > > > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > > > dbo_DSS_WellMaster.PID > > > > > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > > > > > ORDER BY ConfigMaster.PID; > > > > > > > > > CO2PAT ChildPID PID > > > PAT 101-1 42415016740001 4241501674 > > > PAT 101-1 42415016770001 4241501677 > > > PAT 101-1 42415017470001 4241501747 > > > PAT 101-1 42415017490001 4241501749 > > > PAT 101-1 42415017610001 4241501761 > > > > > > > > > > > > > > > Chester Kaup > > > Engineering Technician > > > Kinder Morgan CO2 Company, LLP > > > Office (432) 688-3797 > > > FAX (432) 688-3799 > > > > > > > > > > > > > > > > > > No trees were killed in the sending of this message. However > > > a large number of electrons were terribly inconvenienced. > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From Chester_Kaup at kindermorgan.com Tue Sep 19 14:50:14 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Sep 2006 14:50:14 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: <7c8826480609191245o339547c1pdf7154d5fb6f28cc@mail.gmail.com> Message-ID: The query acts normally if I import the data rather than link to the SQL server view. I don't know what to think about that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Billy Pang Sent: Tuesday, September 19, 2006 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? do you get the same result if you convert dbo_DSS_Wellmaster to a local table? On 9/19/06, Kaup, Chester wrote: > > ConfigMaster is a local table. dbo_DSS_Wellmaster is SQL server version > 2007 table. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, September 19, 2006 1:30 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Why does the query equate these two fields? > > Chester, > > I recreated your scenario...but not you results. In looking at my > example...I have 1 question... > > Q: Are "ConfigMaster" and "dbo_DSS_WellMaster" both tables in a local > db...or are they queries/linked table/other? > > Thanks, > > Mark A. Matte > > > >From: "Andy Lacey" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Why does the query equate these two fields? > >Date: Tue, 19 Sep 2006 19:04:27 +0100 > > > >Whoa that's weird. I've never seen that either. I can't suggest an > >explanation but I'm going to be interested in the solution. > > > >-- Andy Lacey > >http://www.minstersystems.co.uk > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Kaup, Chester > > > Sent: 19 September 2006 18:57 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > > > > > > > > > > > Lets try this again. Message reformatted itself. > > > > > > > > > The contents of the two joined text fields are not the same > > > but the query equates them. Here is the query and the > > > results. Never seen this before. > > > > > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > > > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > > > > > FROM ConfigMaster > > > > > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > > > dbo_DSS_WellMaster.PID > > > > > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > > > > > ORDER BY ConfigMaster.PID; > > > > > > > > > CO2PAT ChildPID PID > > > PAT 101-1 42415016740001 4241501674 > > > PAT 101-1 42415016770001 4241501677 > > > PAT 101-1 42415017470001 4241501747 > > > PAT 101-1 42415017490001 4241501749 > > > PAT 101-1 42415017610001 4241501761 > > > > > > > > > > > > > > > Chester Kaup > > > Engineering Technician > > > Kinder Morgan CO2 Company, LLP > > > Office (432) 688-3797 > > > FAX (432) 688-3799 > > > > > > > > > > > > > > > > > > No trees were killed in the sending of this message. However > > > a large number of electrons were terribly inconvenienced. > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Sep 19 15:35:19 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 20 Sep 2006 06:35:19 +1000 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: References: , Message-ID: <4510E127.5852.2D40DBA@stuart.lexacorp.com.pg> What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From cfoust at infostatsystems.com Tue Sep 19 15:50:23 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 19 Sep 2006 13:50:23 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <000c01c6dc0c$582a8e20$0200a8c0@danwaters> Message-ID: Ye Gads! The best way is to get a good team leader who knows the thing! I'm the veriest novice, but it's my bread and butter. Let me give it some thought. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 19, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Tue Sep 19 15:54:44 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Sep 2006 15:54:44 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: <4510E127.5852.2D40DBA@stuart.lexacorp.com.pg> Message-ID: Actually they are all text fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 19, 2006 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From david.gray at tpg.com.au Tue Sep 19 16:04:17 2006 From: david.gray at tpg.com.au (David Gray) Date: Wed, 20 Sep 2006 07:04:17 +1000 Subject: [AccessD] Slider Control In-Reply-To: <004801c6dbe1$1891ca10$657aa8c0@m6805> Message-ID: <001801c6dc2f$2bd76d70$0101a8c0@server> Thanks John I will try that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, 19 September 2006 9:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Slider Control I've never used it. But if true, it seems you could work around this by setting the scale to 10x as large (use 10 times as many "points" on the scale) and then divide by 10 to get the float number. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Gray Sent: Monday, September 18, 2006 11:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slider Control OK I'll ask a question just to get the ball rolling again. I'm trying to use the slider control to change the scale on a Graph10 control and got it all working only to find it only handles long integers which means I cant set its value to say 1.5. Is this so or have I missed something? David Gray Yahoo ID: flock_it_software ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Sep 19 16:07:15 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 19 Sep 2006 16:07:15 -0500 Subject: [AccessD] Switching to VB.net In-Reply-To: <32770978.1158699330009.JavaMail.root@sniper30> Message-ID: <000301c6dc2f$95d389c0$0200a8c0@danwaters> Or - if you could point to a reference? (no pun intended!) Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net Ye Gads! The best way is to get a good team leader who knows the thing! I'm the veriest novice, but it's my bread and butter. Let me give it some thought. Charlotte -----Original Message----- Subject: Re: [AccessD] Switching to VB.net OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte From ssharkins at setel.com Tue Sep 19 16:14:39 2006 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 19 Sep 2006 17:14:39 -0400 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: <005001c6dc30$9e86c090$5632fad1@SUSANONE> Actually they are all text fields. ========I think I would start by running a few simple queries on the SS side to see if the values equate there too. I just can't help wondering if there's not something in those fields that's evaluating to something SS sees as equal -- rather than this being some kind of odd bug. Susan H. From cfoust at infostatsystems.com Tue Sep 19 18:40:39 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 19 Sep 2006 16:40:39 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <000301c6dc2f$95d389c0$0200a8c0@danwaters> Message-ID: The hills are alive with references. One that still amuses me is the O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages and is 1.5 inches thick! That's one heck of a big nutshell! Rick Dobson's book, Programming Visual Basic .Net for Access Databases", at least starts from familiar territory. There are also some good books in the Microsoft .Net Development Series, including "Data Binding with Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to be confused at first. If you don't understand classes, you'd better learn fast because *everything* in .Net is a class, even a string is a class instance. And if you haven't worked with ADO, you might as well bite the bullet and get ready for ADO.Net. I found it much easier to move to ADO.Net having worked extensively with ADO in addition to DAO. You'll become familiar with XML whether you want to or not because that's where you store stuff that used to go into the registry in Access apps. That means you have to learn to read and write it using the appropriate tools from .Net. The most difficult part of .Net is that you can do so much, in so many possible ways, that you wander around in confusion looking for someone to lead you out of the wilderness. I think this is one language where some training is essential, although finding the right level of training can be a chore too. The AppDev series on .Net is pretty good and takes you through the basics quite well. Rick Dobson's books are good but I haven't been at all impressed with him dvds, which strike me as extremely home-made. Rick is a nice guy and he knows his topic but the videos tend to wander. You'll probably eventually wind up using 3rd party controls, although Microsoft is trying to cover those bases more with every release. The next framework is slated to have a new UI in place of Microsoft Forms (or maybe above or below MS Forms, I haven't figured that out yet) and some nifty developer tools. If you want to do effective database design in .Net, you have to learn not only relational theory but also n-tiered design, since it's pretty pointless to build a .Net app in only one or two tiers. All in all, it's a wild ride, but fun! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 19, 2006 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net Or - if you could point to a reference? (no pun intended!) Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net Ye Gads! The best way is to get a good team leader who knows the thing! I'm the veriest novice, but it's my bread and butter. Let me give it some thought. Charlotte -----Original Message----- Subject: Re: [AccessD] Switching to VB.net OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Tue Sep 19 18:52:56 2006 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 19 Sep 2006 19:52:56 -0400 Subject: [AccessD] Switching to VB.net In-Reply-To: Message-ID: <005a01c6dc46$bb672b80$5632fad1@SUSANONE> I'm glad I'm writing mostly for kids now. :) Susan H. The hills are alive with references. One that still amuses me is the O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages and is 1.5 inches thick! That's one heck of a big nutshell! From martyconnelly at shaw.ca Tue Sep 19 20:43:46 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 19 Sep 2006 18:43:46 -0700 Subject: [AccessD] String Help In-Reply-To: References: Message-ID: <45109CD2.40905@shaw.ca> Haven't got a working WSS to try this against. But you can establish a linked table with following method. I believe you can also interrogate WSS for the GUID of a table with a Lists.GetList method. I may have code lying around from a year ago when I was testing. Gunderloy on Access and Sharepoint http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/odc_OfOfficeSysandWSS.asp To import a SharePoint list to Access, or to add a link to a SharePoint list from an Access database, you can also use the TransferDatabase method but the syntax is somewhat more complex. Here's a Microsoft Visual Basic for Applications (VBA) command to add a link to a SharePoint list named Parts: DoCmd.TransferDatabase acLink, "Windows SharePoint Services", _ "WSS;HDR=NO;IMEX=2;" & _ "DATABASE=http://server_name/sites/site_nam;" & _ "LIST={800BE2B7-FA3C-4CFC-BBB3-8500C4EDCF22};" & _ "VIEW=;RetrieveIds=Yes;TABLE=Parts", acTable, , _ "Parts" Martin Reid wrote: >Thanks to both of you > >Actually its aparameter to link to a sharepoint list form Access. All sorted now using a combination of both your and Johns suggestion. > >Thanks > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte >Sent: Tue 19/09/2006 20:16 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] String Help > > > >Martin, > >I thought your were changing then launching the site...So here's my stab at >it. > >Good luck, > >Mark A. Matte > >Private Sub Command0_Click() >Dim site As String >site = >"http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D" >site = Replace(site, "%7B", "{") >site = Replace(site, "%2D", "-") >site = Replace(site, "%7D&", "%7D") >site = Replace(site, "%7D", "}") >OpenIE site >End Sub > > >Public Function OpenIE(vURL As String) >On Error GoTo ErrorHandler >IEObj.Visible = True >With IEObj >..Visible = True >..Navigate vURL >Do Until Not .Busy >DoEvents >Loop >End With >Exit Function >ErrorHandler: >On Error GoTo ErrorHandler2 >Set IEObj = Nothing >Set IEObj = CreateObject("InternetExplorer.Application") >ErrorHandler2: >Resume Next > >End Function > > > > >>From: "Martin Reid" >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: [AccessD] String Help >>Date: Tue, 19 Sep 2006 19:45:51 +0100 >> >>Given the string shown below does anyone know how to using VBA >> >>Before you can use the GUIDs from the address as arguments in this macro >>action, you must replace each %7B string with the { character, replace each >>%2D string with the - character, and replace each %7D string with the } >>character. Do not include the & (ampersand) character that follows the %7D >>string in the list GUID. >> >> >> >>The string would be of the form >> >>http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D >> >> >>This is out of the Access 2007 help file. Your response will be published >>by the way as I cant do it. >> >>Martin >> >> >> >>Martin WP Reid >>Training and Assessment Unit >>Riddle Hall >>Belfast >> >>tel: 02890 974477 >> >> >> >> -- Marty Connelly Victoria, B.C. Canada From Jim.Hale at FleetPride.com Wed Sep 20 08:34:25 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 20 Sep 2006 08:34:25 -0500 Subject: [AccessD] Switching to VB.net Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF9F@corp-es01.fleetpride.com> You've always written for kids, just some are bigger than others ;-) Jim Hale -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Tuesday, September 19, 2006 6:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net I'm glad I'm writing mostly for kids now. :) Susan H. The hills are alive with references. One that still amuses me is the O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages and is 1.5 inches thick! That's one heck of a big nutshell! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From artful at rogers.com Wed Sep 20 08:44:15 2006 From: artful at rogers.com (artful at rogers.com) Date: Wed, 20 Sep 2006 06:44:15 -0700 (PDT) Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: <20060920134415.73139.qmail@web88208.mail.re2.yahoo.com> Any chance you can copy and paste sufficient rows from the two tables so I can recreate the situation? This one interests me but I don't want to manufacture some pointless data and get it wrong. Probably a dozen rows from each table would suffice. Arthur ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 4:54:44 PM Subject: Re: [AccessD] Why does the query equate these two fields? Actually they are all text fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 19, 2006 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Sep 20 09:07:16 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 10:07:16 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax In-Reply-To: <20060920134415.73139.qmail@web88208.mail.re2.yahoo.com> Message-ID: <002a01c6dcbe$17314640$6d01a8c0@LaptopXP> What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John From artful at rogers.com Wed Sep 20 09:07:54 2006 From: artful at rogers.com (artful at rogers.com) Date: Wed, 20 Sep 2006 07:07:54 -0700 (PDT) Subject: [AccessD] Switching to VB.net In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF9F@corp-es01.fleetpride.com> Message-ID: <20060920140754.13941.qmail@web88206.mail.re2.yahoo.com> Once I asked a kid about 10 years old what he thought was the difference between adults and children, and without a second's hesitation he said, adults have money. ----- Original Message ---- From: "Hale, Jim" To: Access Developers discussion and problem solving Sent: Wednesday, September 20, 2006 9:34:25 AM Subject: Re: [AccessD] Switching to VB.net You've always written for kids, just some are bigger than others ;-) Jim Hale -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Tuesday, September 19, 2006 6:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net I'm glad I'm writing mostly for kids now. :) From andy at minstersystems.co.uk Wed Sep 20 10:34:07 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 20 Sep 2006 15:34:07 +0000 Subject: [AccessD] Why does the query equate these two fields? Message-ID: <20060920143403.8DDA6101C053@smtp.nildram.co.uk> Chester If you swap it round so the FROM is dbo_DSS_WellMaster and you JOIN to ConfigMaster is it still the same? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Why does the query equate these two fields? Date: 20/09/06 13:47 Any chance you can copy and paste sufficient rows from the two tables so I can recreate the situation? This one interests me but I don't want to manufacture some pointless data and get it wrong. Probably a dozen rows from each table would suffice. Arthur ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 4:54:44 PM Subject: Re: [AccessD] Why does the query equate these two fields? Actually they are all text fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 19, 2006 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From cfoust at infostatsystems.com Wed Sep 20 09:38:18 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Sep 2006 07:38:18 -0700 Subject: [AccessD] Quck Question - Report Pageheader Syntax In-Reply-To: <002a01c6dcbe$17314640$6d01a8c0@LaptopXP> Message-ID: Do it in the format event of the page header. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 7:07 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Quck Question - Report Pageheader Syntax What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Sep 20 10:42:35 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 20 Sep 2006 15:42:35 +0000 Subject: [AccessD] Quck Question - Report Pageheader Syntax Message-ID: <20060920144231.238071015D67@smtp.nildram.co.uk> Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From mwp.reid at qub.ac.uk Wed Sep 20 09:47:55 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 20 Sep 2006 15:47:55 +0100 Subject: [AccessD] Your fav Code References: <000e01c6d8d2$f0704860$6a01a8c0@LaptopXP> Message-ID: Folks I was just t hinking. I am due to have soemthing published adn some of you give me permission to use some of your posting on AccessD. What I am also thinking of is a section called Developers Favourite Function/Code I would add in your most useful bit of code with your name beside it. So if anyone would like to do this email me the example of list and I will add it in if I get enough examples. I think Access users etc would enjoy that. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From askolits at ot.com Wed Sep 20 09:51:39 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 10:51:39 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax In-Reply-To: Message-ID: <003901c6dcc4$4ab6ea00$6d01a8c0@LaptopXP> Actually, I want to do it when formatting a group section. But either way, I typed the PageHeader.visible=false in either section and I receive an error. Also tried PageHeaderSection.visible = false and no-go. Must be a syntax error -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Do it in the format event of the page header. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 7:07 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Quck Question - Report Pageheader Syntax What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Sep 20 09:57:52 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 10:57:52 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax In-Reply-To: <20060920144231.238071015D67@smtp.nildram.co.uk> Message-ID: <004001c6dcc5$28fd6140$6d01a8c0@LaptopXP> That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Sep 20 10:23:49 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 11:23:49 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand In-Reply-To: <004001c6dcc5$28fd6140$6d01a8c0@LaptopXP> Message-ID: <004101c6dcc8$c92409f0$6d01a8c0@LaptopXP> I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Sep 20 10:31:40 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Sep 2006 08:31:40 -0700 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand In-Reply-To: <004101c6dcc8$c92409f0$6d01a8c0@LaptopXP> Message-ID: Do you have a report header? If so, you can set the page header not to appear with the report header, which prints on the first page. You don't have to put anything in the report header or make it more than zero height, but if you have one, you can use it to suppress the page header easily. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Sep 20 10:38:28 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 20 Sep 2006 08:38:28 -0700 Subject: [AccessD] Your fav Code In-Reply-To: Message-ID: Mine is Me.holycow.itworked!!!!! Joe Hecht jmhecht at earthlink.net From pcs at azizaz.com Wed Sep 20 10:45:49 2006 From: pcs at azizaz.com (Borge Hansen) Date: Thu, 21 Sep 2006 01:45:49 +1000 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db References: <45109CD2.40905@shaw.ca> Message-ID: <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Hello List, This may be a somewhat OT, but here it is: I've been asked to come up with a solution for showing information coming from an Access Db onto Maps. In a nutshell : We have Acme Enterprises that operates a number of Acme Centres over a large geographical area. Around 20,000 people are employed in total. Each day around 2.5% of the work force due to sickness and other reasons for not turning up need to be replaced by relief staff. We have : permanent relief staff, casual relief staff and relief sourced through agencies We need to show various types of information on a map for a particular region: - all Acme Centres in the region (pinned to their location address) - For a particular Acme Centre the available pool of permanent and casual relief staff (each pinned to their home address) and various info about each person (available or not, highest qualification (worker, team manager, centre manager) etc. .... etc.... So the web page showing a map has to be rendered in a suitable zoom level, and data pulled from an Access Db will give the necessary information to create some pushpins in various shapes and colours ... off the top of my head for example: for staff various shape according to qualification and different colour according to whether available or not; and yet another shape for displaying an Acme Centre..... Now, the question is what tools to use? I've been just starting looking into (i.e. reading about mostly) Mappoint 2006, Mappoint Web Services and Virtual Earth - and all is totally new to me. Microsoft's Mappoint 2006 only have maps for North America and Europe. We need it for Downunder! As I understand it it's a desktop application with a lot of functionality : - Enter an address and it will give you the latitude, longitude coordinates - Different types of pushpins to display on the maps - Many built in functions and 3rd party add ins for performing a wide variety of tasks and optimization calculations ?? Does anyone know if and when an Australia / New Zealand map set will be available? Then there is MS Mappoint Webservices - I've downloaded the SDK and established a developer account with MS and will have a closer look.... but I understand a subscription license is somewhere in the five digit figures.... Any one having experience with this? Then there is MS Virtual Earth..... which is the application (?) I've been poking at the most: I came across the following example of overlaying pushpins from Mappoint 2006 onto Virtual Eath Map: http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm Gilles' add-in can be found here: http://www.gilleskohl.de/mappoint/PinsToFile2006/ I imported the source from the htm web page above into Frontpage, allowed active content, and pre-viewing it in the browser I get the same map rendering. Too easy... But I can't make use of his pinstofile function because... no map set for Australia! I read the following article by Chandu Thota introducing Virtual Earth APIs: http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx which gives a very good intro to the whole subject... Now, instead of viewing all of US as the starting map by changing (from the source view of Addressestable.htm) : the ShowMap function to the following, we are now rendering a map starting in our backyard and zoomed to a suitable level *****code snip ***** function ShowMap() { map = new VEMap('pinsToFileMap'); map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", false); AddPins(); } *********************** and if you want some pushpins to appear on the eastcoast of Australia you can try to insert these lines in the function Addpins() ****snip**** beware of linebreaks AddPin(-28.025344,153.412311,'Sherri Hart Trey Research','
Street Address501 Corporate Centre Drive
CityFranklin
StateTN
ZIP Code37067
CountryUS
','000'); AddPin(-28.050344,153.412311,'Paul West Litware, Inc.','
Street Address312 Walnut Street
CityCincinatti
StateOH
ZIP Code45202
CountryUS
','000'); AddPin(-28.075344,153.412311,'John Fortune Wide World Importers','
Street Address205 North Williamsburg
CityBloomington
StateIL
ZIP Code61704
CountryUS
','000'); AddPin(-28.100344,153.412311,'Don Funk Woodgrove Bank','
Street AddressOne City Place Drive
CityCreve Coeur
StateMO
ZIP Code63141
CountryUS
','000'); AddPin(-28.125344,153.412311,'Kim Akers A. Datum Corporation','
Street Address8300 Norman Center Drive
CityBloomington
StateMN
ZIP Code55437
CountryUS
','000'); AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of Science','
Street Address10260 SW Greenburg Road
CityPortland
StateOR
ZIP Code97223
CountryUS
','000'); AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne Publishing','
Street Address205 108th Ave NE
CityBellevue
StateWA
ZIP Code98004
CountryUS
','000'); AddPin(-28.200344,153.412311,'John Kelly Adventure Works','
Street AddressOne Perimeter Park South
CityBirmingham
StateAL
ZIP Code35243
CountryUS
','000'); ********* So, what I am thinking at this point is that the API set for Virtual Earth appear easy to work with and it's free! ???? But: 1) How do we get latitude and longitude coordinates for a large number of records? Is there any third party software that will go through address information file and return lat long coordinates for an Australian map set? 2) Sample of code structure that will read Access table / query and give us data - similar to the data 'hardcoded' into the function "function AddPins()" in the htm source code: ..... Thanks for reading on .... If any one has input or pointers where to get more information .... much appreciated..... Regards Borge From askolits at ot.com Wed Sep 20 10:46:09 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 11:46:09 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand In-Reply-To: Message-ID: <004701c6dccb$e7971d70$6d01a8c0@LaptopXP> Actually I have a report header but more importantly, I have a group header. In reality, my ultimate goal is that if there is a group header, I do not want to see the page header, If there is a page header, then the group header shouldn't be displayed. One or the other but not both. At the very least, if I can suppress the page header on the first page, that will do for now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Do you have a report header? If so, you can set the page header not to appear with the report header, which prints on the first page. You don't have to put anything in the report header or make it more than zero height, but if you have one, you can use it to suppress the page header easily. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Sep 20 10:52:47 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Sep 2006 08:52:47 -0700 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand In-Reply-To: <004701c6dccb$e7971d70$6d01a8c0@LaptopXP> Message-ID: The page header formats ahead of the group header, so you can't turn it off in the group header, if that's what you're trying to do. You would need to find another way to handle it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Actually I have a report header but more importantly, I have a group header. In reality, my ultimate goal is that if there is a group header, I do not want to see the page header, If there is a page header, then the group header shouldn't be displayed. One or the other but not both. At the very least, if I can suppress the page header on the first page, that will do for now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Do you have a report header? If so, you can set the page header not to appear with the report header, which prints on the first page. You don't have to put anything in the report header or make it more than zero height, but if you have one, you can use it to suppress the page header easily. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Sep 20 10:56:14 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 20 Sep 2006 10:56:14 -0500 Subject: [AccessD] Your fav Code Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0100EFBA@MARLOW_MAIN2.marlow.com> I believe that should be: Me.HolyCow.ItWorked "!!!!!" ;) Drew -----Original Message----- From: Joe Hecht [mailto:jmhecht at earthlink.net] Sent: Wednesday, September 20, 2006 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Sep 20 10:59:07 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 11:59:07 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand In-Reply-To: Message-ID: <004d01c6dccd$b71f5c50$6d01a8c0@LaptopXP> Hmmm.. Thanks for the info. I'll have to think about it a bit. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand The page header formats ahead of the group header, so you can't turn it off in the group header, if that's what you're trying to do. You would need to find another way to handle it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Actually I have a report header but more importantly, I have a group header. In reality, my ultimate goal is that if there is a group header, I do not want to see the page header, If there is a page header, then the group header shouldn't be displayed. One or the other but not both. At the very least, if I can suppress the page header on the first page, that will do for now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Do you have a report header? If so, you can set the page header not to appear with the report header, which prints on the first page. You don't have to put anything in the report header or make it more than zero height, but if you have one, you can use it to suppress the page header easily. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Sep 20 12:03:48 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 20 Sep 2006 17:03:48 +0000 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand Message-ID: <20060920160344.3C12D10160AE@smtp.nildram.co.uk> Well I'm not sure about what you describe, but putting the Me.Section("PageHeader").Visible = False code in the Report Open will suppress the 1st Page Header. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Date: 20/09/06 16:01 Hmmm.. Thanks for the info. I'll have to think about it a bit. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand The page header formats ahead of the group header, so you can't turn it off in the group header, if that's what you're trying to do. You would need to find another way to handle it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Actually I have a report header but more importantly, I have a group header. In reality, my ultimate goal is that if there is a group header, I do not want to see the page header, If there is a page header, then the group header shouldn't be displayed. One or the other but not both. At the very least, if I can suppress the page header on the first page, that will do for now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Do you have a report header? If so, you can set the page header not to appear with the report header, which prints on the first page. You don't have to put anything in the report header or make it more than zero height, but if you have one, you can use it to suppress the page header easily. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From john at winhaven.net Wed Sep 20 12:02:36 2006 From: john at winhaven.net (John Bartow) Date: Wed, 20 Sep 2006 12:02:36 -0500 Subject: [AccessD] Your fav Code In-Reply-To: Message-ID: <013801c6dcd6$92f01f00$6501a8c0@ScuzzPaq> LOL :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! From paul.baumann at rtctech.com Wed Sep 20 12:46:44 2006 From: paul.baumann at rtctech.com (Paul Baumann) Date: Wed, 20 Sep 2006 12:46:44 -0500 Subject: [AccessD] Email format? Message-ID: <002101c6dcdc$bd328b80$6465a8c0@scrptrkr.local> What are the format options for receiving the AccessD Digest? I used to receive it in a more readable format but now it is in plain sequential text. There must be a better way. Thanks for the help in advance. Paul O. Baumann RTC Technologies, Inc. Tel. 262-925-1300 Fax 262-925-1299 Email: paulb at rtctech.com From mmattys at rochester.rr.com Wed Sep 20 13:05:00 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Wed, 20 Sep 2006 14:05:00 -0400 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db References: <45109CD2.40905@shaw.ca> <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Message-ID: <02e001c6dcdf$4d70be90$0202a8c0@default> ----- Original Message ----- From: "Borge Hansen" To: "Access Developers discussion and problem solving" Sent: Wednesday, September 20, 2006 11:45 AM Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db > Hello List, > This may be a somewhat OT, but here it is: > > I've been asked to come up with a solution for showing information coming > from an Access Db onto Maps. . > We need it for Downunder! > Regards > Borge Long question! :) Borge, I suggest you ask at www.mapforums.com or microsoft.public.mappoint (news) You should at least get pointed in the right direction. Here is a friendly, but probably useless gesture: http://www.mattysconsulting.com/country-australia.htm Michael R. Mattys A MapPoint Developer www.mattysconsulting.com From mwp.reid at qub.ac.uk Wed Sep 20 13:04:31 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 20 Sep 2006 19:04:31 +0100 Subject: [AccessD] Your fav Code References: Message-ID: That goes in first. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Joe Hecht Sent: Wed 20/09/2006 16:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 20 13:13:08 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 20 Sep 2006 11:13:08 -0700 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db In-Reply-To: <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Message-ID: <0J5W00GJNL8M6GE0@l-daemon> Hi Borge: Have you looked at Google world wide free geocoder? http://digg.com/programming/Google_Maps_FREE_Worldwide_Geocoder HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Wednesday, September 20, 2006 8:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db Hello List, This may be a somewhat OT, but here it is: I've been asked to come up with a solution for showing information coming from an Access Db onto Maps. In a nutshell : We have Acme Enterprises that operates a number of Acme Centres over a large geographical area. Around 20,000 people are employed in total. Each day around 2.5% of the work force due to sickness and other reasons for not turning up need to be replaced by relief staff. We have : permanent relief staff, casual relief staff and relief sourced through agencies We need to show various types of information on a map for a particular region: - all Acme Centres in the region (pinned to their location address) - For a particular Acme Centre the available pool of permanent and casual relief staff (each pinned to their home address) and various info about each person (available or not, highest qualification (worker, team manager, centre manager) etc. .... etc.... So the web page showing a map has to be rendered in a suitable zoom level, and data pulled from an Access Db will give the necessary information to create some pushpins in various shapes and colours ... off the top of my head for example: for staff various shape according to qualification and different colour according to whether available or not; and yet another shape for displaying an Acme Centre..... Now, the question is what tools to use? I've been just starting looking into (i.e. reading about mostly) Mappoint 2006, Mappoint Web Services and Virtual Earth - and all is totally new to me. Microsoft's Mappoint 2006 only have maps for North America and Europe. We need it for Downunder! As I understand it it's a desktop application with a lot of functionality : - Enter an address and it will give you the latitude, longitude coordinates - Different types of pushpins to display on the maps - Many built in functions and 3rd party add ins for performing a wide variety of tasks and optimization calculations ?? Does anyone know if and when an Australia / New Zealand map set will be available? Then there is MS Mappoint Webservices - I've downloaded the SDK and established a developer account with MS and will have a closer look.... but I understand a subscription license is somewhere in the five digit figures.... Any one having experience with this? Then there is MS Virtual Earth..... which is the application (?) I've been poking at the most: I came across the following example of overlaying pushpins from Mappoint 2006 onto Virtual Eath Map: http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm Gilles' add-in can be found here: http://www.gilleskohl.de/mappoint/PinsToFile2006/ I imported the source from the htm web page above into Frontpage, allowed active content, and pre-viewing it in the browser I get the same map rendering. Too easy... But I can't make use of his pinstofile function because... no map set for Australia! I read the following article by Chandu Thota introducing Virtual Earth APIs: http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx which gives a very good intro to the whole subject... Now, instead of viewing all of US as the starting map by changing (from the source view of Addressestable.htm) : the ShowMap function to the following, we are now rendering a map starting in our backyard and zoomed to a suitable level *****code snip ***** function ShowMap() { map = new VEMap('pinsToFileMap'); map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", false); AddPins(); } *********************** and if you want some pushpins to appear on the eastcoast of Australia you can try to insert these lines in the function Addpins() ****snip**** beware of linebreaks AddPin(-28.025344,153.412311,'Sherri Hart Trey Research','< /table>','000'); AddPin(-28.050344,153.412311,'Paul West Litware, Inc.','
Street Address501 Corporate Centre Drive
CityFranklin
Stat eTN
ZIP Code37067
CountryUS
< /table>','000'); AddPin(-28.075344,153.412311,'John Fortune Wide World Importers','
Street Address312 Walnut Street
CityCincinatti
S tateOH
ZIP Code45202
CountryUS
< td>State< /table>','000'); AddPin(-28.100344,153.412311,'Don Funk Woodgrove Bank','
Street Address205 North Williamsburg
CityBloomington
IL
ZIP Code61704
CountryUS
< /table>','000'); AddPin(-28.125344,153.412311,'Kim Akers A. Datum Corporation','
Street AddressOne City Place Drive
CityCreve Coeur
StateMO
ZIP Code63141
CountryUS
< /table>','000'); AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of Science','
Street Address8300 Norman Center Drive
CityBloomington
S tateMN
ZIP Code55437
CountryUS
< /table>','000'); AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne Publishing','
Street Address10260 SW Greenburg Road
CityPortland
State OR
ZIP Code97223
CountryUS
< /table>','000'); AddPin(-28.200344,153.412311,'John Kelly Adventure Works','
Street Address205 108th Ave NE
CityBellevue
State WA
ZIP Code98004
CountryUS
< /table>','000'); ********* So, what I am thinking at this point is that the API set for Virtual Earth appear easy to work with and it's free! ???? But: 1) How do we get latitude and longitude coordinates for a large number of records? Is there any third party software that will go through address information file and return lat long coordinates for an Australian map set? 2) Sample of code structure that will read Access table / query and give us data - similar to the data 'hardcoded' into the function "function AddPins()" in the htm source code: ..... Thanks for reading on .... If any one has input or pointers where to get more information .... much appreciated..... Regards Borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Sep 20 13:19:11 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 20 Sep 2006 11:19:11 -0700 Subject: [AccessD] Your fav Code In-Reply-To: Message-ID: <004701c6dce1$4612d730$0a01a8c0@desktop> Thanks Martin. I am glad I could contribute to list instead of take for a change. : ) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 20, 2006 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Your fav Code That goes in first. Martin [Joe Hecht] Mine is Me.holycow.itworked!!!!! Joe Hecht jmhecht at earthlink.net From jmhecht at earthlink.net Wed Sep 20 13:19:51 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 20 Sep 2006 11:19:51 -0700 Subject: [AccessD] Your fav Code In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0100EFBA@MARLOW_MAIN2.marlow.com> Message-ID: <004801c6dce1$5dd9b960$0a01a8c0@desktop> Darn, I can never get the syntax in one ; ( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Wednesday, September 20, 2006 8:56 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Your fav Code I believe that should be: Me.HolyCow.ItWorked "!!!!!" ;) Drew -----Original Message----- From: Joe Hecht [mailto:jmhecht at earthlink.net] Sent: Wednesday, September 20, 2006 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Wed Sep 20 13:26:46 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 20 Sep 2006 23:56:46 +0530 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand References: <004701c6dccb$e7971d70$6d01a8c0@LaptopXP> Message-ID: John, You are apparently aiming at the following objectives (for a report having page header as well as group header sections): (a) If page header as well as group header sections both have significant content, only the group header should get displayed. (b) Otherwise, either the page header or the group header (only one out of the two) should get displayed, depending upon which section has significant content. Sample code in report's open event, as given at A) below, should get you the desired results. If you simply wish to suppress the page header on first page, use of Cancel statement in format event of page header section, as given at B) below, should be adequate. Best wishes, A.D.Tejpal --------------- A) - Conditional hiding of Page Header section (If Group Header section is available) ================================ Private Sub Report_Open(Cancel As Integer) If Me.PageHeaderSection.Height > 100 _ And Me.GroupHeader0.Height > 100 Then Me.PageHeaderSection.Visible = False Me.GroupHeader0.Visible = True Else If Me.PageHeaderSection.Height > 100 Then Me.PageHeaderSection.Visible = True Me.GroupHeader0.Visible = False Else Me.PageHeaderSection.Visible = False Me.GroupHeader0.Visible = True End If End If End Sub ================================ B) - Hiding Page Header on first page only ================================ Private Sub PageHeaderSection_Format( _ Cancel As Integer, FormatCount As Integer) If Page = 1 Then Cancel = True End If End Sub ================================ ----- Original Message ----- From: John Skolits To: 'Access Developers discussion and problem solving' Sent: Wednesday, September 20, 2006 21:16 Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Actually I have a report header but more importantly, I have a group header. In reality, my ultimate goal is that if there is a group header, I do not want to see the page header, If there is a page header, then the group header shouldn't be displayed. One or the other but not both. At the very least, if I can suppress the page header on the first page, that will do for now. From DElam at jenkens.com Wed Sep 20 13:43:34 2006 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 20 Sep 2006 13:43:34 -0500 Subject: [AccessD] Your fav Code Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DE61A@natexch.jenkens.com> A few years back I was taking a VBA course at work. Two of my coworkers, Yo and Rob who were in the class also, take the same train into work. Yo bought bagels to share with the class. It had snowed the night before, so Rob took the (rare) opportunity to throw a snowball at Yo. She yelled back: Rob.Bagel = False. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From carbonnb at gmail.com Wed Sep 20 13:53:23 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 20 Sep 2006 14:53:23 -0400 Subject: [AccessD] Email format? In-Reply-To: <002101c6dcdc$bd328b80$6465a8c0@scrptrkr.local> References: <002101c6dcdc$bd328b80$6465a8c0@scrptrkr.local> Message-ID: On 9/20/06, Paul Baumann wrote: > What are the format options for receiving the AccessD Digest? I used to > receive it in a more readable format but now it is in plain sequential text. > There must be a better way. Paul, There are 2 types of digest. Plain Text or MIME. Plain text is just on long e-mail, as you are receiving now. How the MIME digest gets displayed depends on your e-mail client. Quite often it's a single message with attachments. To chage your settings just goto: http://databaseadvisors.com/mailman/options/accessd/paul.baumann--at--rtctech.com Log in with your password and Scroll down to Get MIME or Plain Text Digests? and change it to MIME. You will need cookies enabled and not blocked for the settings to change and stick. Any problems making the change, please contact me off list. Your friendly neighbourhood Listmaster, -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jmhecht at earthlink.net Wed Sep 20 13:56:13 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 20 Sep 2006 11:56:13 -0700 Subject: [AccessD] Your fav Code In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DE61A@natexch.jenkens.com> Message-ID: <004d01c6dce6$72142730$0a01a8c0@desktop> That goes through my personnel debugger ok -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Wednesday, September 20, 2006 11:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code A few years back I was taking a VBA course at work. Two of my coworkers, Yo and Rob who were in the class also, take the same train into work. Yo bought bagels to share with the class. It had snowed the night before, so Rob took the (rare) opportunity to throw a snowball at Yo. She yelled back: Rob.Bagel = False. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Sep 20 14:09:34 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 20 Sep 2006 20:09:34 +0100 Subject: [AccessD] Your fav Code References: <004d01c6dce6$72142730$0a01a8c0@desktop> Message-ID: ah come on guys!! Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Joe Hecht Sent: Wed 20/09/2006 19:56 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code That goes through my personnel debugger ok -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Wednesday, September 20, 2006 11:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code A few years back I was taking a VBA course at work. Two of my coworkers, Yo and Rob who were in the class also, take the same train into work. Yo bought bagels to share with the class. It had snowed the night before, so Rob took the (rare) opportunity to throw a snowball at Yo. She yelled back: Rob.Bagel = False. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Sep 20 14:11:22 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 20 Sep 2006 12:11:22 -0700 Subject: [AccessD] Your fav Code In-Reply-To: References: <000e01c6d8d2$f0704860$6a01a8c0@LaptopXP> Message-ID: <4511925A.6060605@shaw.ca> Well here are 3 example routines to call up an IE window from access I use to display long text lists in a scrollable window, or to display things like pdf, xls, xml or tiff files obtained either locally or remote. or grab you ip address. Also avoids MS web browser control. I don't mind if you use any of my code. Sub IEHotfixes() '------------------ 'List Windows Hotfixes in IE Window via WMI 'Need two references set 'WMI Extension to DS 1.0 Type Library ' C:\Windows\System32\wbem\wbemads.tlb 'WMICntl 1.0 Type Library ' C:\Windows\System32\wbem\wbemcntl.dll 'takes 10 seconds for first wmi query Dim objExplorer As Object Dim objDocument As Object Dim strComputer As String Dim objWMIService As Object Dim colLoggedEvents As Object Dim objEvent As Object Dim dtmDate As Variant Dim strReturn As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" objExplorer.Toolbar = 1 objExplorer.StatusBar = 0 objExplorer.Width = 800 objExplorer.Height = 570 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open objDocument.Writeln "Automatic Updates Installation History" objDocument.Writeln "" objDocument.Writeln "
Street AddressOne Perimeter Park South
CityBirmingham
St ateAL
ZIP Code35243
CountryUS
" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 'IE Event code=19 WinXP=4377 Set colLoggedEvents = objWMIService.ExecQuery _ ("SELECT * FROM Win32_NTLogEvent WHERE Logfile = 'System' AND " _ & "EventCode = '19' OR EventCode = '4377'") Dim i As Long For Each objEvent In colLoggedEvents dtmDate = objEvent.TimeWritten strReturn = WMIDateStringToDate(dtmDate) objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" i = i + 1 Next Debug.Print "no of events=" & i objDocument.Writeln "
Computer NameInstalled Update(s)Date and Time Installed
" & objEvent.ComputerName & "" & objEvent.Message & "" & strReturn & "
" objDocument.Writeln "" 'objDocument.Write() objDocument.Close MsgBox "finished" Set objExplorer = Nothing Set objDocument = Nothing Set objWMIService = Nothing Set colLoggedEvents = Nothing Set objEvent = Nothing End Sub Function WMIDateStringToDate(dtmDate) Debug.Print dtmDate WMIDateStringToDate = CDate(Mid(dtmDate, 5, 2) & "/" & _ Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _ & " " & Mid(dtmDate, 9, 2) & ":" & _ Mid(dtmDate, 11, 2) & ":" & Mid(dtmDate, _ 13, 2)) End Function Function GrabIPaddress() '------------------ 'Get IP address from dynds.org Dim objExplorer As Object Dim objDocument As Object Dim strHTML As String Set objExplorer = CreateObject("InternetExplorer.Application") 'Set objDocument = objExplorer.Document objExplorer.Navigate "about:blank" objExplorer.Toolbar = 0 objExplorer.StatusBar = 0 objExplorer.Width = 800 objExplorer.Height = 570 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 objExplorer.Navigate "http://checkip.dyndns.org/" Do While (objExplorer.Busy) Loop strHTML = objExplorer.Document.BODY.parentElement.outerHTML Debug.Print strHTML GrabIPaddress = strHTML 'MsgBox "finished" Set objExplorer = Nothing End Function Sub testIEvarious() '------------------ ' display various formats Tiffs PDF XLS local or remote 'If you add a reference to "Microsoft Internet Controls" '(SHDOCVW.DLL) you should be able to do: 'Public IE as .... and find "InternetExplorer" in the popup menu. 'So then you have what you wrote, which is early-bound, 'and you can use that as follows: ' Public IE As InternetExplorer ' Set IE = New InternetExplorer Dim objExplorer As Object Dim strReturn As String Set objExplorer = CreateObject("InternetExplorer.Application") 'Set objDocument = objExplorer.Document objExplorer.Navigate "about:blank" objExplorer.Toolbar = False objExplorer.StatusBar = False objExplorer.MenuBar = True objExplorer.FullScreen = False objExplorer.AddressBar = False objExplorer.Width = 800 objExplorer.Height = 570 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 'objExplorer.Navigate "http://www.databaseadvisors.com/" 'objExplorer.Navigate "192.168.0.1/st_devic.html" 'objExplorer.navigate "http://checkip.dyndns.org/" objExplorer.Navigate "http://www.adobe.com/prodlist.pdf#page=3" 'objExplorer.navigate "C:\records management\aircanadacasestudy.pdf#page=4" 'objExplorer.Navigate "C:\records management\Copy of rim_guide_sarbanes.xls" 'objExplorer.Navigate "http://www.swimseattle.org/Forms/ScholorshipPolicy2003-2004.pdf" 'objExplorer.Navigate "file://C:\records management\aircanadacasestudy.pdf#page=3" 'objExplorer.navigate "C:\records management\aircanadacasestudy.pdf#page=2" 'objExplorer.Navigate "http://www.adobe.com/products/server/pdfs/customer_FAQ.pdf#page=3&zoom=200,250,100" 'objExplorer.Navigate "C:\Documents and Settings\marty\My Documents\My Pictures\VS.tif" 'objExplorer.Navigate "res://msxml.dll/defaultss.xsl" Do While (objExplorer.Busy) Loop MsgBox "finished" Set objExplorer = Nothing End Sub Martin Reid wrote: >Folks > >I was just t hinking. I am due to have soemthing published adn some of you give me permission to use some of your posting on AccessD. What I am also thinking of is a section called Developers Favourite Function/Code > >I would add in your most useful bit of code with your name beside it. > >So if anyone would like to do this email me the example of list and I will add it in if I get enough examples. > >I think Access users etc would enjoy that. > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.405 / Virus Database: 268.12.5/451 - Release Date: 19/09/2006 > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Wed Sep 20 16:23:11 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 20 Sep 2006 14:23:11 -0700 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db In-Reply-To: <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> References: <45109CD2.40905@shaw.ca> <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Message-ID: <4511B13F.1050801@shaw.ca> If you have an address you can get a geocoded Lat/Long from the address postal code It will get you within shooting distance, I know Canada Post sells this type of database. Well I tried looking through Australia Post site I couldn't find it, maybe they sell through third party so phone them. If you have a lot of addresses maybe best. Although I see Australia moving to a more granular DPID than postal code. Here is some xml test code to hit a web service that returns Lat/Long internationally for a postal code and country. if you post in their forums they may give you australian postal code one, it is not posted to avoid spammers posting a web site with all place names in australia. They have other web services to find codes within 10 Km etc. http://www.geonames.org/export/ Public Sub aussiepostalcode() 'Web service location for countries postal codes to return 'latitude and longitude, should write up more generically 'web service descriptions 'http://www.geonames.org/export/#ws 'don't hammer the site with 1000's of postal codes maybe a daily site limit 'see also 'http://support.microsoft.com/?kbid=313372 'need to set reference to XML 4.0 + Dim objHTTP As New MSXML2.XMLHTTP Dim strWebPage As String 'On Error Resume Next 'Retrieve Web Page ' note upper-lowercase important in URL string especially service name ' insert postal code and iso country 2 letter name 'ISO-3166 alpha2 country codes. ' to check just stick url below in IE strWebPage = "http://ws.geonames.org/postalCodeSearch?postalcode=2089&country=AU" ' don't get many postal codes at 90 Lat 0 Long in Canada, but it is there ha ha 'strWebPage = "http://ws.geonames.org/postalCodeSearch?postalcode=H0H0H0&country=CA" objHTTP.Open "POST", strWebPage, False ' stick in your web page url above , file type can be anything asp txt xml html etc. 'depends partially on content type ' generally request header is first line below for forms objHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" 'objHttp.setRequestHeader "Content-Type", "text/xml" 'Post variables depending on html form objHTTP.send strWebPage 'Check status of page If Err.Number Or objHTTP.status <> "200" Then MsgBox Err.Number & Err.Description MsgBox "Cannot retrieve page!" Exit Sub End If ' look at the responses Debug.Print "1*" & objHTTP.getAllResponseHeaders Debug.Print "2*" & objHTTP.statusText Debug.Print "3*" & objHTTP.status Debug.Print "4*" & objHTTP.responseText Dim xmlDoc As New MSXML2.DOMDocument40 Dim objNodeList As IXMLDOMNodeList Dim GeoNode As MSXML2.IXMLDOMNode xmlDoc.async = False xmlDoc.loadXML objHTTP.responseText 'error check dom load here and use XPath method for node selection xmlDoc.setProperty "SelectionLanguage", "XPath" Set objNodeList = xmlDoc.documentElement.selectNodes("//lat") Debug.Print objNodeList.length For Each GeoNode In objNodeList Debug.Print "Latitude : " & GeoNode.Text Next Set objNodeList = xmlDoc.documentElement.selectNodes("//lng") Debug.Print objNodeList.length For Each GeoNode In objNodeList Debug.Print "Longitude : " & GeoNode.Text Next End Sub Borge Hansen wrote: >Hello List, >This may be a somewhat OT, but here it is: > >I've been asked to come up with a solution for showing information coming from an Access Db onto Maps. > >In a nutshell : >We have Acme Enterprises that operates a number of Acme Centres over a large geographical area. >Around 20,000 people are employed in total. >Each day around 2.5% of the work force due to sickness and other reasons for not turning up need to be replaced by relief staff. >We have : permanent relief staff, casual relief staff and relief sourced through agencies > >We need to show various types of information on a map for a particular region: >- all Acme Centres in the region (pinned to their location address) >- For a particular Acme Centre the available pool of permanent and casual relief staff (each pinned to their home address) and >various info about each person (available or not, highest qualification (worker, team manager, centre manager) etc. >.... etc.... > >So the web page showing a map has to be rendered in a suitable zoom level, and data pulled from an Access Db will give the necessary >information to create some pushpins in various shapes and colours ... off the top of my head for example: for staff various shape >according to qualification and different colour according to whether available or not; and yet another shape for displaying an Acme >Centre..... > >Now, the question is what tools to use? > >I've been just starting looking into (i.e. reading about mostly) Mappoint 2006, Mappoint Web Services and Virtual Earth - and all is >totally new to me. > >Microsoft's Mappoint 2006 only have maps for North America and Europe. >We need it for Downunder! >As I understand it it's a desktop application with a lot of functionality : >- Enter an address and it will give you the latitude, longitude coordinates >- Different types of pushpins to display on the maps >- Many built in functions and 3rd party add ins for performing a wide variety of tasks and optimization calculations > >?? Does anyone know if and when an Australia / New Zealand map set will be available? > >Then there is MS Mappoint Webservices - I've downloaded the SDK and established a developer account with MS and will have a closer >look.... but I understand a subscription license is somewhere in the five digit figures.... Any one having experience with this? > >Then there is MS Virtual Earth..... which is the application (?) I've been poking at the most: > >I came across the following example of overlaying pushpins from Mappoint 2006 onto Virtual Eath Map: >http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm > >Gilles' add-in can be found here: http://www.gilleskohl.de/mappoint/PinsToFile2006/ > >I imported the source from the htm web page above into Frontpage, allowed active content, and pre-viewing it in the browser I get >the same map rendering. >Too easy... > >But I can't make use of his pinstofile function because... no map set for Australia! > >I read the following article by Chandu Thota introducing Virtual Earth APIs: >http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx > >which gives a very good intro to the whole subject... > >Now, instead of viewing all of US as the starting map by changing (from the source view of Addressestable.htm) : >the ShowMap function to the following, we are now rendering a map starting in our backyard and zoomed to a suitable level > >*****code snip ***** > function ShowMap() > { > map = new VEMap('pinsToFileMap'); > map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", false); > > AddPins(); > } >*********************** > >and if you want some pushpins to appear on the eastcoast of Australia you can try to insert these lines in the function Addpins() > > >****snip**** beware of linebreaks > AddPin(-28.025344,153.412311,'Sherri Hart Trey Research','
Street Address501 Corporate >Centre Drive
CityFranklin
StateTN
ZIP >Code37067
CountryUS
','000'); > AddPin(-28.100344,153.412311,'Don Funk Woodgrove Bank','
Street AddressOne City Place >Drive
CityCreve Coeur
StateMO
ZIP >Code63141
CountryUS
','000'); > AddPin(-28.200344,153.412311,'John Kelly Adventure Works','
Street AddressOne Perimeter >Park South
CityBirmingham
StateAL
ZIP >Code35243
CountryUS
','000'); >********* > >So, what I am thinking at this point is that the API set for Virtual Earth appear easy to work with and it's free! > >???? >But: > >1) How do we get latitude and longitude coordinates for a large number of records? >Is there any third party software that will go through address information file and return lat long coordinates for an Australian >map set? > >2) Sample of code structure that will read Access table / query and give us data - similar to the data 'hardcoded' into the function >"function AddPins()" in the htm source code: > >..... >Thanks for reading on .... If any one has input or pointers where to get more information .... much appreciated..... > >Regards >Borge > > > > > > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Wed Sep 20 18:00:12 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 20 Sep 2006 19:00:12 -0400 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db References: <45109CD2.40905@shaw.ca> <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Message-ID: <014f01c6dd08$8832df30$153ce944@50NM721> ...borge ...there are a couple really professional gis mapping ocx's available open source that do almost exactly what you want ...at least one has access sample code ...google on gis map ocx. ...if you don't turn something up let me know and I'll see if I still have them installed. William Hindman ----- Original Message ----- From: "Borge Hansen" To: "Access Developers discussion and problem solving" Sent: Wednesday, September 20, 2006 11:45 AM Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db > Hello List, > This may be a somewhat OT, but here it is: > > I've been asked to come up with a solution for showing information coming > from an Access Db onto Maps. > > In a nutshell : > We have Acme Enterprises that operates a number of Acme Centres over a > large geographical area. > Around 20,000 people are employed in total. > Each day around 2.5% of the work force due to sickness and other reasons > for not turning up need to be replaced by relief staff. > We have : permanent relief staff, casual relief staff and relief sourced > through agencies > > We need to show various types of information on a map for a particular > region: > - all Acme Centres in the region (pinned to their location address) > - For a particular Acme Centre the available pool of permanent and casual > relief staff (each pinned to their home address) and > various info about each person (available or not, highest qualification > (worker, team manager, centre manager) etc. > .... etc.... > > So the web page showing a map has to be rendered in a suitable zoom level, > and data pulled from an Access Db will give the necessary > information to create some pushpins in various shapes and colours ... off > the top of my head for example: for staff various shape > according to qualification and different colour according to whether > available or not; and yet another shape for displaying an Acme > Centre..... > > Now, the question is what tools to use? > > I've been just starting looking into (i.e. reading about mostly) Mappoint > 2006, Mappoint Web Services and Virtual Earth - and all is > totally new to me. > > Microsoft's Mappoint 2006 only have maps for North America and Europe. > We need it for Downunder! > As I understand it it's a desktop application with a lot of functionality > : > - Enter an address and it will give you the latitude, longitude > coordinates > - Different types of pushpins to display on the maps > - Many built in functions and 3rd party add ins for performing a wide > variety of tasks and optimization calculations > > ?? Does anyone know if and when an Australia / New Zealand map set will be > available? > > Then there is MS Mappoint Webservices - I've downloaded the SDK and > established a developer account with MS and will have a closer > look.... but I understand a subscription license is somewhere in the five > digit figures.... Any one having experience with this? > > Then there is MS Virtual Earth..... which is the application (?) I've been > poking at the most: > > I came across the following example of overlaying pushpins from Mappoint > 2006 onto Virtual Eath Map: > http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm > > Gilles' add-in can be found here: > http://www.gilleskohl.de/mappoint/PinsToFile2006/ > > I imported the source from the htm web page above into Frontpage, allowed > active content, and pre-viewing it in the browser I get > the same map rendering. > Too easy... > > But I can't make use of his pinstofile function because... no map set for > Australia! > > I read the following article by Chandu Thota introducing Virtual Earth > APIs: > http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx > > which gives a very good intro to the whole subject... > > Now, instead of viewing all of US as the starting map by changing (from > the source view of Addressestable.htm) : > the ShowMap function to the following, we are now rendering a map starting > in our backyard and zoomed to a suitable level > > *****code snip ***** > function ShowMap() > { > map = new VEMap('pinsToFileMap'); > map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", > false); > > AddPins(); > } > *********************** > > and if you want some pushpins to appear on the eastcoast of Australia you > can try to insert these lines in the function Addpins() > > > ****snip**** beware of linebreaks > AddPin(-28.025344,153.412311,'Sherri Hart Trey > Research','
Street Address501 Corporate > Centre > Drive
CityFranklin
StateTN
ZIP > Code37067
CountryUS
','000'); > AddPin(-28.050344,153.412311,'Paul West Litware, > Inc.','
Street Address312 Walnut > Street
CityCincinatti
StateOH
ZIP > Code45202
CountryUS
','000'); > AddPin(-28.075344,153.412311,'John Fortune Wide World > Importers','
Street Address205 North > Williamsburg
CityBloomington
StateIL
ZIP > Code61704
CountryUS
','000'); > AddPin(-28.100344,153.412311,'Don Funk Woodgrove > Bank','
Street AddressOne City Place > Drive
CityCreve > Coeur
StateMO
ZIP > Code63141
CountryUS
','000'); > AddPin(-28.125344,153.412311,'Kim Akers A. Datum > Corporation','
Street Address8300 Norman > Center > Drive
CityBloomington
StateMN
ZIP > Code55437
CountryUS
','000'); > AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of > Science','
Street Address10260 > SW Greenburg Road >
CityPortland
StateOR
ZIP > Code97223
CountryUS
','000'); > AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne > Publishing','
Street Address205 > 108th Ave NE >
CityBellevue
StateWA
ZIP > Code98004
CountryUS
','000'); > AddPin(-28.200344,153.412311,'John Kelly Adventure > Works','
Street AddressOne Perimeter > Park > South
CityBirmingham
StateAL
ZIP > Code35243
CountryUS
','000'); > ********* > > So, what I am thinking at this point is that the API set for Virtual Earth > appear easy to work with and it's free! > > ???? > But: > > 1) How do we get latitude and longitude coordinates for a large number of > records? > Is there any third party software that will go through address information > file and return lat long coordinates for an Australian > map set? > > 2) Sample of code structure that will read Access table / query and give > us data - similar to the data 'hardcoded' into the function > "function AddPins()" in the htm source code: > > ..... > Thanks for reading on .... If any one has input or pointers where to get > more information .... much appreciated..... > > Regards > Borge > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From david.gray at tpg.com.au Wed Sep 20 22:42:26 2006 From: david.gray at tpg.com.au (David Gray) Date: Thu, 21 Sep 2006 13:42:26 +1000 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db In-Reply-To: <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Message-ID: <008601c6dd2f$f5a090e0$0101a8c0@server> Try http://dev.live.com/virtualearth/sdk/ and http://local.live.com/ David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software ? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Thursday, 21 September 2006 1:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db Hello List, This may be a somewhat OT, but here it is: I've been asked to come up with a solution for showing information coming from an Access Db onto Maps. In a nutshell : We have Acme Enterprises that operates a number of Acme Centres over a large geographical area. Around 20,000 people are employed in total. Each day around 2.5% of the work force due to sickness and other reasons for not turning up need to be replaced by relief staff. We have : permanent relief staff, casual relief staff and relief sourced through agencies We need to show various types of information on a map for a particular region: - all Acme Centres in the region (pinned to their location address) - For a particular Acme Centre the available pool of permanent and casual relief staff (each pinned to their home address) and various info about each person (available or not, highest qualification (worker, team manager, centre manager) etc. .... etc.... So the web page showing a map has to be rendered in a suitable zoom level, and data pulled from an Access Db will give the necessary information to create some pushpins in various shapes and colours ... off the top of my head for example: for staff various shape according to qualification and different colour according to whether available or not; and yet another shape for displaying an Acme Centre..... Now, the question is what tools to use? I've been just starting looking into (i.e. reading about mostly) Mappoint 2006, Mappoint Web Services and Virtual Earth - and all is totally new to me. Microsoft's Mappoint 2006 only have maps for North America and Europe. We need it for Downunder! As I understand it it's a desktop application with a lot of functionality : - Enter an address and it will give you the latitude, longitude coordinates - Different types of pushpins to display on the maps - Many built in functions and 3rd party add ins for performing a wide variety of tasks and optimization calculations ?? Does anyone know if and when an Australia / New Zealand map set will be available? Then there is MS Mappoint Webservices - I've downloaded the SDK and established a developer account with MS and will have a closer look.... but I understand a subscription license is somewhere in the five digit figures.... Any one having experience with this? Then there is MS Virtual Earth..... which is the application (?) I've been poking at the most: I came across the following example of overlaying pushpins from Mappoint 2006 onto Virtual Eath Map: http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm Gilles' add-in can be found here: http://www.gilleskohl.de/mappoint/PinsToFile2006/ I imported the source from the htm web page above into Frontpage, allowed active content, and pre-viewing it in the browser I get the same map rendering. Too easy... But I can't make use of his pinstofile function because... no map set for Australia! I read the following article by Chandu Thota introducing Virtual Earth APIs: http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx which gives a very good intro to the whole subject... Now, instead of viewing all of US as the starting map by changing (from the source view of Addressestable.htm) : the ShowMap function to the following, we are now rendering a map starting in our backyard and zoomed to a suitable level *****code snip ***** function ShowMap() { map = new VEMap('pinsToFileMap'); map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", false); AddPins(); } *********************** and if you want some pushpins to appear on the eastcoast of Australia you can try to insert these lines in the function Addpins() ****snip**** beware of linebreaks AddPin(-28.025344,153.412311,'Sherri Hart Trey Research','< /table>','000'); AddPin(-28.050344,153.412311,'Paul West Litware, Inc.','
Street Address501 Corporate Centre Drive
CityFranklin
Stat eTN
ZIP Code37067
CountryUS
< /table>','000'); AddPin(-28.075344,153.412311,'John Fortune Wide World Importers','
Street Address312 Walnut Street
CityCincinatti
S tateOH
ZIP Code45202
CountryUS
< td>State< /table>','000'); AddPin(-28.100344,153.412311,'Don Funk Woodgrove Bank','
Street Address205 North Williamsburg
CityBloomington
IL
ZIP Code61704
CountryUS
< /table>','000'); AddPin(-28.125344,153.412311,'Kim Akers A. Datum Corporation','
Street AddressOne City Place Drive
CityCreve Coeur
StateMO
ZIP Code63141
CountryUS
< /table>','000'); AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of Science','
Street Address8300 Norman Center Drive
CityBloomington
S tateMN
ZIP Code55437
CountryUS
< /table>','000'); AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne Publishing','
Street Address10260 SW Greenburg Road
CityPortland
State OR
ZIP Code97223
CountryUS
< /table>','000'); AddPin(-28.200344,153.412311,'John Kelly Adventure Works','
Street Address205 108th Ave NE
CityBellevue
State WA
ZIP Code98004
CountryUS
< /table>','000'); ********* So, what I am thinking at this point is that the API set for Virtual Earth appear easy to work with and it's free! ???? But: 1) How do we get latitude and longitude coordinates for a large number of records? Is there any third party software that will go through address information file and return lat long coordinates for an Australian map set? 2) Sample of code structure that will read Access table / query and give us data - similar to the data 'hardcoded' into the function "function AddPins()" in the htm source code: ..... Thanks for reading on .... If any one has input or pointers where to get more information .... much appreciated..... Regards Borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Thu Sep 21 00:37:32 2006 From: viner at EUnet.yu (Ervin Brindza) Date: Thu, 21 Sep 2006 07:37:32 +0200 Subject: [AccessD] Switching to VB.net References: <005a01c6dc46$bb672b80$5632fad1@SUSANONE> Message-ID: <00a201c6dd40$263ec090$0100a8c0@RazvojErvin> VB.Net for kids?! ;-) Ervin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, September 20, 2006 1:52 AM Subject: Re: [AccessD] Switching to VB.net > I'm glad I'm writing mostly for kids now. :) > > Susan H. > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Sep 21 02:58:23 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 21 Sep 2006 09:58:23 +0200 Subject: [AccessD] odd problem field to short updating SQL server from an access MDB. Message-ID: I got a strange problem. I have an update routine that updates articles and prices in my webshop (SQL server) from my Access database (MDB 2003). Its a plain Update query that updates prices and descriptions that I first downloaded and processed from my supplier. This routine gets executed every night running Access 2K3 on my W2K server. Since a week or so, I get every morning a error 3163, "The field is too small to Accept the amount of data you attempted to add. Try inserting or pasting less data." It is posible that a new article has got a longer descriptiontext, so I'm trying to find where the problem is. And now the odd thing, when running the same database and query on my notebook computer the query runs fine without any error!!! So I don't understand why the same database(s), same query runs fine on my notebook computer and fails on my server. Erwin Craps Zaakvoerder Nieuwe internetwinkel op www.ithelps.be/shop www.ithelps.be/onsgezin bezoek ook eens de website van mijn zus www.friedacraps.be This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Chester_Kaup at kindermorgan.com Thu Sep 21 07:24:10 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 21 Sep 2006 07:24:10 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: <20060920134415.73139.qmail@web88208.mail.re2.yahoo.com> Message-ID: I could send you some data but if the data is native to access it works correctly. Only does it fail if the data source of dbo_DSS_Wellmaser is SQL Server 2007 version. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, September 20, 2006 8:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? Any chance you can copy and paste sufficient rows from the two tables so I can recreate the situation? This one interests me but I don't want to manufacture some pointless data and get it wrong. Probably a dozen rows from each table would suffice. Arthur ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 4:54:44 PM Subject: Re: [AccessD] Why does the query equate these two fields? Actually they are all text fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 19, 2006 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Thu Sep 21 07:38:47 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 21 Sep 2006 07:38:47 -0500 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: References: Message-ID: <6.2.3.4.2.20060921073644.022c78b0@pop3.highstream.net> Broge, Take a look at the .Net control from ThinkGeo.com. I have used the one for Windows VB applications with great success. I am sure they will work with you on the geo-coding. I think they have a tool for that. Robert At 03:06 AM 9/21/2006, you wrote: >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen >Sent: Wednesday, September 20, 2006 8:46 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db > >Hello List, >This may be a somewhat OT, but here it is: > >I've been asked to come up with a solution for showing information coming >from an Access Db onto Maps. > >In a nutshell : >We have Acme Enterprises that operates a number of Acme Centres over a large >geographical area. >Around 20,000 people are employed in total. >Each day around 2.5% of the work force due to sickness and other reasons for >not turning up need to be replaced by relief staff. >We have : permanent relief staff, casual relief staff and relief sourced >through agencies > >We need to show various types of information on a map for a particular >region: >- all Acme Centres in the region (pinned to their location address) >- For a particular Acme Centre the available pool of permanent and casual >relief staff (each pinned to their home address) and >various info about each person (available or not, highest qualification >(worker, team manager, centre manager) etc. >.... etc.... > >So the web page showing a map has to be rendered in a suitable zoom level, >and data pulled from an Access Db will give the necessary >information to create some pushpins in various shapes and colours ... off >the top of my head for example: for staff various shape >according to qualification and different colour according to whether >available or not; and yet another shape for displaying an Acme >Centre..... > >Now, the question is what tools to use? > >I've been just starting looking into (i.e. reading about mostly) Mappoint >2006, Mappoint Web Services and Virtual Earth - and all is >totally new to me. > >Microsoft's Mappoint 2006 only have maps for North America and Europe. >We need it for Downunder! >As I understand it it's a desktop application with a lot of functionality : >- Enter an address and it will give you the latitude, longitude coordinates >- Different types of pushpins to display on the maps >- Many built in functions and 3rd party add ins for performing a wide >variety of tasks and optimization calculations > >?? Does anyone know if and when an Australia / New Zealand map set will be >available? > >Then there is MS Mappoint Webservices - I've downloaded the SDK and >established a developer account with MS and will have a closer >look.... but I understand a subscription license is somewhere in the five >digit figures.... Any one having experience with this? > >Then there is MS Virtual Earth..... which is the application (?) I've been >poking at the most: > >I came across the following example of overlaying pushpins from Mappoint >2006 onto Virtual Eath Map: >http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm > >Gilles' add-in can be found here: >http://www.gilleskohl.de/mappoint/PinsToFile2006/ > >I imported the source from the htm web page above into Frontpage, allowed >active content, and pre-viewing it in the browser I get >the same map rendering. >Too easy... > >But I can't make use of his pinstofile function because... no map set for >Australia! > >I read the following article by Chandu Thota introducing Virtual Earth APIs: >http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx > >which gives a very good intro to the whole subject... > >Now, instead of viewing all of US as the starting map by changing (from the >source view of Addressestable.htm) : >the ShowMap function to the following, we are now rendering a map starting >in our backyard and zoomed to a suitable level > >*****code snip ***** > function ShowMap() > { > map = new VEMap('pinsToFileMap'); > map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", >false); > > AddPins(); > } >*********************** > >and if you want some pushpins to appear on the eastcoast of Australia you >can try to insert these lines in the function Addpins() > > >****snip**** beware of linebreaks > AddPin(-28.025344,153.412311,'Sherri Hart Trey >Research','
Street AddressOne Perimeter Park South
CityBirmingham
St ateAL
ZIP Code35243
CountryUS
< >/table>','000'); > AddPin(-28.050344,153.412311,'Paul West Litware, >Inc.','
Street Address501 Corporate >Centre >Drive
CityFranklin
Stat >eTN
ZIP >Code37067
CountryUS
< >/table>','000'); > AddPin(-28.075344,153.412311,'John Fortune Wide World >Importers','
Street Address312 Walnut >Street
CityCincinatti
S >tateOH
ZIP >Code45202
CountryUS
< >td>State< >/table>','000'); > AddPin(-28.100344,153.412311,'Don Funk Woodgrove >Bank','
Street Address205 North >Williamsburg
CityBloomington
IL
ZIP >Code61704
CountryUS
< >/table>','000'); > AddPin(-28.125344,153.412311,'Kim Akers A. Datum >Corporation','
Street AddressOne City Place >Drive
CityCreve >Coeur
StateMO
ZIP >Code63141
CountryUS
< >/table>','000'); > AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of >Science','
Street Address8300 Norman >Center >Drive
CityBloomington
S >tateMN
ZIP >Code55437
CountryUS
< >/table>','000'); > AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne >Publishing','
Street Address10260 >SW Greenburg Road >
CityPortland
State >OR
ZIP >Code97223
CountryUS
< >/table>','000'); > AddPin(-28.200344,153.412311,'John Kelly Adventure >Works','
Street Address205 >108th Ave NE >
CityBellevue
State >WA
ZIP >Code98004
CountryUS
< >/table>','000'); >********* > >So, what I am thinking at this point is that the API set for Virtual Earth >appear easy to work with and it's free! > >???? >But: > >1) How do we get latitude and longitude coordinates for a large number of >records? >Is there any third party software that will go through address information >file and return lat long coordinates for an Australian >map set? > >2) Sample of code structure that will read Access table / query and give us >data - similar to the data 'hardcoded' into the function >"function AddPins()" in the htm source code: > >..... >Thanks for reading on .... If any one has input or pointers where to get >more information .... much appreciated..... > >Regards >Borge From Lambert.Heenan at AIG.com Wed Sep 20 11:14:27 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 20 Sep 2006 12:14:27 -0400 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db Message-ID: Have you considered Google Earth? http://earth.google.com/userguide/v4/ http://earth.google.com/kml/whatiskml.html Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Wednesday, September 20, 2006 11:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db Hello List, This may be a somewhat OT, but here it is: I've been asked to come up with a solution for showing information coming from an Access Db onto Maps. In a nutshell : We have Acme Enterprises that operates a number of Acme Centres over a large geographical area. Around 20,000 people are employed in total. Each day around 2.5% of the work force due to sickness and other reasons for not turning up need to be replaced by relief staff. We have : permanent relief staff, casual relief staff and relief sourced through agencies We need to show various types of information on a map for a particular region: - all Acme Centres in the region (pinned to their location address) - For a particular Acme Centre the available pool of permanent and casual relief staff (each pinned to their home address) and various info about each person (available or not, highest qualification (worker, team manager, centre manager) etc. .... etc.... So the web page showing a map has to be rendered in a suitable zoom level, and data pulled from an Access Db will give the necessary information to create some pushpins in various shapes and colours ... off the top of my head for example: for staff various shape according to qualification and different colour according to whether available or not; and yet another shape for displaying an Acme Centre..... Now, the question is what tools to use? I've been just starting looking into (i.e. reading about mostly) Mappoint 2006, Mappoint Web Services and Virtual Earth - and all is totally new to me. Microsoft's Mappoint 2006 only have maps for North America and Europe. We need it for Downunder! As I understand it it's a desktop application with a lot of functionality : - Enter an address and it will give you the latitude, longitude coordinates - Different types of pushpins to display on the maps - Many built in functions and 3rd party add ins for performing a wide variety of tasks and optimization calculations ?? Does anyone know if and when an Australia / New Zealand map set will be available? Then there is MS Mappoint Webservices - I've downloaded the SDK and established a developer account with MS and will have a closer look.... but I understand a subscription license is somewhere in the five digit figures.... Any one having experience with this? Then there is MS Virtual Earth..... which is the application (?) I've been poking at the most: I came across the following example of overlaying pushpins from Mappoint 2006 onto Virtual Eath Map: http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm Gilles' add-in can be found here: http://www.gilleskohl.de/mappoint/PinsToFile2006/ I imported the source from the htm web page above into Frontpage, allowed active content, and pre-viewing it in the browser I get the same map rendering. Too easy... But I can't make use of his pinstofile function because... no map set for Australia! I read the following article by Chandu Thota introducing Virtual Earth APIs: http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx which gives a very good intro to the whole subject... Now, instead of viewing all of US as the starting map by changing (from the source view of Addressestable.htm) : the ShowMap function to the following, we are now rendering a map starting in our backyard and zoomed to a suitable level *****code snip ***** function ShowMap() { map = new VEMap('pinsToFileMap'); map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", false); AddPins(); } *********************** and if you want some pushpins to appear on the eastcoast of Australia you can try to insert these lines in the function Addpins() ****snip**** beware of linebreaks AddPin(-28.025344,153.412311,'Sherri Hart Trey Research','
Street AddressOne Perimeter >Park >South
CityBirmingham
St >ateAL
ZIP >Code35243
CountryUS
< /table>','000'); AddPin(-28.050344,153.412311,'Paul West Litware, Inc.','
Street Address501 Corporate Centre Drive
CityFranklin
Stat eTN
ZIP Code37067
CountryUS
< /table>','000'); AddPin(-28.075344,153.412311,'John Fortune Wide World Importers','
Street Address312 Walnut Street
CityCincinatti
S tateOH
ZIP Code45202
CountryUS
< td>State< /table>','000'); AddPin(-28.100344,153.412311,'Don Funk Woodgrove Bank','
Street Address205 North Williamsburg
CityBloomington
IL
ZIP Code61704
CountryUS
< /table>','000'); AddPin(-28.125344,153.412311,'Kim Akers A. Datum Corporation','
Street AddressOne City Place Drive
CityCreve Coeur
StateMO
ZIP Code63141
CountryUS
< /table>','000'); AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of Science','
Street Address8300 Norman Center Drive
CityBloomington
S tateMN
ZIP Code55437
CountryUS
< /table>','000'); AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne Publishing','
Street Address10260 SW Greenburg Road
CityPortland
State OR
ZIP Code97223
CountryUS
< /table>','000'); AddPin(-28.200344,153.412311,'John Kelly Adventure Works','
Street Address205 108th Ave NE
CityBellevue
State WA
ZIP Code98004
CountryUS
< /table>','000'); ********* So, what I am thinking at this point is that the API set for Virtual Earth appear easy to work with and it's free! ???? But: 1) How do we get latitude and longitude coordinates for a large number of records? Is there any third party software that will go through address information file and return lat long coordinates for an Australian map set? 2) Sample of code structure that will read Access table / query and give us data - similar to the data 'hardcoded' into the function "function AddPins()" in the htm source code: ..... Thanks for reading on .... If any one has input or pointers where to get more information .... much appreciated..... Regards Borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Sep 21 08:02:27 2006 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 21 Sep 2006 08:02:27 -0500 Subject: [AccessD] odd problem field to short updating SQL server from an access MDB. In-Reply-To: References: Message-ID: Always odd when something works on one system and not another. I would try to change the update query to a select query temporarly and export that to a text file to see just what exactly it is trying to add. Could be a number of decimals issue with a numeric field too. Or if not a select query, how about a make table query to a temp Access table so you can see what kind of fields access thinks it requires and compare that to what you have in the SQL table. I assume that you have compacted and repaired the app on the failing machine? Rebooted the failing machine? all that standard stuff we do when weirdness is encountered. Good luck with it Erwin. GK On 9/21/06, Erwin Craps - IT Helps wrote: > > I got a strange problem. > > I have an update routine that updates articles and prices in my webshop > (SQL server) from my Access database (MDB 2003). > Its a plain Update query that updates prices and descriptions that I > first downloaded and processed from my supplier. > This routine gets executed every night running Access 2K3 on my W2K > server. > Since a week or so, I get every morning a error 3163, > "The field is too small to Accept the amount of data you attempted to > add. Try inserting or pasting less data." > It is posible that a new article has got a longer descriptiontext, so > I'm trying to find where the problem is. > > And now the odd thing, when running the same database and query on my > notebook computer the query runs fine without any error!!! > > So I don't understand why the same database(s), same query runs fine on > my notebook computer and fails on my server. > > > > > > > Erwin Craps > > Zaakvoerder > > > > Nieuwe internetwinkel op www.ithelps.be/shop > > > www.ithelps.be/onsgezin > > bezoek ook eens de website van mijn zus www.friedacraps.be > > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From Chester_Kaup at kindermorgan.com Thu Sep 21 08:07:34 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 21 Sep 2006 08:07:34 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: <20060920143403.8DDA6101C053@smtp.nildram.co.uk> Message-ID: If I swap it around as you suggested I get the same results. If I leave out the where statement and use the SQL server view dbo_DSS_WellMaster the query works correctly. If I make an access native copy of the SQL server view the query works correctly. I suspect that access is seeing all 14 character of the field dbo.DSS.Wellmaster.PID in the SQL server view that retrieves the first 10 characters from the actual table. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? Chester If you swap it round so the FROM is dbo_DSS_WellMaster and you JOIN to ConfigMaster is it still the same? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Why does the query equate these two fields? Date: 20/09/06 13:47 Any chance you can copy and paste sufficient rows from the two tables so I can recreate the situation? This one interests me but I don't want to manufacture some pointless data and get it wrong. Probably a dozen rows from each table would suffice. Arthur ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 4:54:44 PM Subject: Re: [AccessD] Why does the query equate these two fields? Actually they are all text fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 19, 2006 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Thu Sep 21 09:14:20 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 21 Sep 2006 10:14:20 -0400 Subject: [AccessD] Switching to VB.net In-Reply-To: <00a201c6dd40$263ec090$0100a8c0@RazvojErvin> Message-ID: <004101c6dd88$3e5e0e40$640fa8c0@ULTRADNT> VB.net for kids? Here it is: Using Visual Studio Express with Lego Mindstorms http://msdn.microsoft.com/coding4fun/lego/default.aspx Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ervin Brindza Sent: Thursday, September 21, 2006 1:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net VB.Net for kids?! ;-) Ervin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, September 20, 2006 1:52 AM Subject: Re: [AccessD] Switching to VB.net > I'm glad I'm writing mostly for kids now. :) > > Susan H. > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sun Sep 10 14:50:00 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 10 Sep 2006 20:50:00 +0100 Subject: [AccessD] Passing a form byval References: <007501c6d2cc$38f17f30$657aa8c0@m6805> Message-ID: I need to pass a text control on a form to a procedure byval as opposed to byref as byref errors out. How can I pass this to the procedure byval? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Gustav at cactus.dk Fri Sep 22 05:19:30 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Sep 2006 12:19:30 +0200 Subject: [AccessD] Passing a form byval Message-ID: Hi Martin It works here: Public Function SetTextbox(ByRef txt As TextBox) Debug.Print txt.Value txt.value = "33" Debug.Print txt.Value End Function Now, call it like this: ? SetTextbox(Forms.Item(0)!txtYourTextbox) /gustav >>> mwp.reid at qub.ac.uk 10-09-2006 21:50:00 >>> I need to pass a text control on a form to a procedure byval as opposed to byref as byref errors out. How can I pass this to the procedure byval? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast From mwp.reid at qub.ac.uk Fri Sep 22 05:39:43 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 22 Sep 2006 11:39:43 +0100 Subject: [AccessD] Passing a form byval References: Message-ID: Hi Gustav Many thanks. Was the last bit I missed. Just thinking I sent that email on the 10th of Sept??? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Gustav Brock Sent: Fri 22/09/2006 11:19 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Passing a form byval Hi Martin It works here: Public Function SetTextbox(ByRef txt As TextBox) Debug.Print txt.Value txt.value = "33" Debug.Print txt.Value End Function Now, call it like this: ? SetTextbox(Forms.Item(0)!txtYourTextbox) /gustav >>> mwp.reid at qub.ac.uk 10-09-2006 21:50:00 >>> I need to pass a text control on a form to a procedure byval as opposed to byref as byref errors out. How can I pass this to the procedure byval? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 22 05:57:58 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Sep 2006 12:57:58 +0200 Subject: [AccessD] Passing a form byval Message-ID: Hi Martin That delay is at your side, first step: Return-path: Received: from Pinjo ([192.168.1.14]) by cactus.dk; Fri, 22 Sep 2006 10:03:41 +0200 Received: from iits0144.inlink.com ([209.135.140.44]) by Pinjo with SMTP id ; Fri, 22 Sep 2006 10:02:10 +0200 Received: from databaseadvisors.com (databaseadvisors.com [209.135.140.44]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id k8M810S21069; Fri, 22 Sep 2006 03:01:02 -0500 Received: from mailhub2.qub.ac.uk (jeremiah.qub.ac.uk [143.117.14.19]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id k8M80SS20973 for ; Fri, 22 Sep 2006 03:00:29 -0500 Received: from qub-xchange-01.ads.qub.ac.uk ([143.117.14.27]) by mailhub2.qub.ac.uk with smtp (Exim 4.60) (envelope-from ) id 1GQfxc-0004L3-7m for accessd at databaseadvisors.com; Fri, 22 Sep 2006 08:00:36 +0000 Date: Sun, 10 Sep 2006 20:50:00 +0100 Message-ID: /gustav >>> mwp.reid at qub.ac.uk 22-09-2006 12:39:43 >>> Hi Gustav Many thanks. Was the last bit I missed. Just thinking I sent that email on the 10th of Sept??? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Fri Sep 22 06:17:13 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 22 Sep 2006 12:17:13 +0100 Subject: [AccessD] Passing a form byval References: Message-ID: Thanks I forwarded to our exchange admin Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From wdhindman at dejpolsystems.com Fri Sep 22 06:31:59 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 22 Sep 2006 07:31:59 -0400 Subject: [AccessD] Passing a form byval References: Message-ID: <002901c6de3a$b8377730$153ce944@50NM721> ...hhhmmm ...12 days to deliver mail ...almost as good as the US Post Office, eh. William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, September 22, 2006 6:57 AM Subject: Re: [AccessD] Passing a form byval > Hi Martin > > That delay is at your side, first step: > > Return-path: > Received: from Pinjo > ([192.168.1.14]) > by cactus.dk; Fri, 22 Sep 2006 10:03:41 +0200 > Received: from iits0144.inlink.com ([209.135.140.44]) > by Pinjo with SMTP id > ; > Fri, 22 Sep 2006 10:02:10 +0200 > Received: from databaseadvisors.com (databaseadvisors.com > [209.135.140.44]) > by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id k8M810S21069; > Fri, 22 Sep 2006 03:01:02 -0500 > Received: from mailhub2.qub.ac.uk (jeremiah.qub.ac.uk [143.117.14.19]) > by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id k8M80SS20973 > for ; Fri, 22 Sep 2006 03:00:29 -0500 > Received: from qub-xchange-01.ads.qub.ac.uk ([143.117.14.27]) > by mailhub2.qub.ac.uk with smtp (Exim 4.60) > (envelope-from ) id 1GQfxc-0004L3-7m > for accessd at databaseadvisors.com; Fri, 22 Sep 2006 08:00:36 +0000 > Date: Sun, 10 Sep 2006 20:50:00 +0100 > Message-ID: > > > /gustav > >>>> mwp.reid at qub.ac.uk 22-09-2006 12:39:43 >>> > Hi Gustav > > Many thanks. Was the last bit I missed. Just thinking I sent that email on > the 10th of Sept??? > > > Martin > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Fri Sep 22 06:52:09 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 22 Sep 2006 06:52:09 -0500 Subject: [AccessD] Switching to VB.net In-Reply-To: <15461230.1158709577425.JavaMail.root@sniper8> Message-ID: <002401c6de3d$894a3130$0200a8c0@danwaters> Hi Charlotte, Thanks for this write-up! Turns out I do have the O'Reilly book. I bought it to try to learn and see if, for me, it's the right thing to do. I'll have to look up to see what n-tiered design is. If I don't need it, then you just saved me a huge amount of time! Thanks, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 19, 2006 6:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net The hills are alive with references. One that still amuses me is the O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages and is 1.5 inches thick! That's one heck of a big nutshell! Rick Dobson's book, Programming Visual Basic .Net for Access Databases", at least starts from familiar territory. There are also some good books in the Microsoft .Net Development Series, including "Data Binding with Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to be confused at first. If you don't understand classes, you'd better learn fast because *everything* in .Net is a class, even a string is a class instance. And if you haven't worked with ADO, you might as well bite the bullet and get ready for ADO.Net. I found it much easier to move to ADO.Net having worked extensively with ADO in addition to DAO. You'll become familiar with XML whether you want to or not because that's where you store stuff that used to go into the registry in Access apps. That means you have to learn to read and write it using the appropriate tools from .Net. The most difficult part of .Net is that you can do so much, in so many possible ways, that you wander around in confusion looking for someone to lead you out of the wilderness. I think this is one language where some training is essential, although finding the right level of training can be a chore too. The AppDev series on .Net is pretty good and takes you through the basics quite well. Rick Dobson's books are good but I haven't been at all impressed with him dvds, which strike me as extremely home-made. Rick is a nice guy and he knows his topic but the videos tend to wander. You'll probably eventually wind up using 3rd party controls, although Microsoft is trying to cover those bases more with every release. The next framework is slated to have a new UI in place of Microsoft Forms (or maybe above or below MS Forms, I haven't figured that out yet) and some nifty developer tools. If you want to do effective database design in .Net, you have to learn not only relational theory but also n-tiered design, since it's pretty pointless to build a .Net app in only one or two tiers. All in all, it's a wild ride, but fun! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 19, 2006 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net Or - if you could point to a reference? (no pun intended!) Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net Ye Gads! The best way is to get a good team leader who knows the thing! I'm the veriest novice, but it's my bread and butter. Let me give it some thought. Charlotte -----Original Message----- Subject: Re: [AccessD] Switching to VB.net OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 22 09:27:47 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 22 Sep 2006 07:27:47 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <002401c6de3d$894a3130$0200a8c0@danwaters> Message-ID: N-tiered design just separates the presentation tier from the data tier and the business rules. They're pretty much bundled together in Access, but for enterprise solutions, network solutions and web-based solutions, n-tier is the way to go. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, September 22, 2006 4:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net Hi Charlotte, Thanks for this write-up! Turns out I do have the O'Reilly book. I bought it to try to learn and see if, for me, it's the right thing to do. I'll have to look up to see what n-tiered design is. If I don't need it, then you just saved me a huge amount of time! Thanks, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 19, 2006 6:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net The hills are alive with references. One that still amuses me is the O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages and is 1.5 inches thick! That's one heck of a big nutshell! Rick Dobson's book, Programming Visual Basic .Net for Access Databases", at least starts from familiar territory. There are also some good books in the Microsoft .Net Development Series, including "Data Binding with Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to be confused at first. If you don't understand classes, you'd better learn fast because *everything* in .Net is a class, even a string is a class instance. And if you haven't worked with ADO, you might as well bite the bullet and get ready for ADO.Net. I found it much easier to move to ADO.Net having worked extensively with ADO in addition to DAO. You'll become familiar with XML whether you want to or not because that's where you store stuff that used to go into the registry in Access apps. That means you have to learn to read and write it using the appropriate tools from .Net. The most difficult part of .Net is that you can do so much, in so many possible ways, that you wander around in confusion looking for someone to lead you out of the wilderness. I think this is one language where some training is essential, although finding the right level of training can be a chore too. The AppDev series on .Net is pretty good and takes you through the basics quite well. Rick Dobson's books are good but I haven't been at all impressed with him dvds, which strike me as extremely home-made. Rick is a nice guy and he knows his topic but the videos tend to wander. You'll probably eventually wind up using 3rd party controls, although Microsoft is trying to cover those bases more with every release. The next framework is slated to have a new UI in place of Microsoft Forms (or maybe above or below MS Forms, I haven't figured that out yet) and some nifty developer tools. If you want to do effective database design in .Net, you have to learn not only relational theory but also n-tiered design, since it's pretty pointless to build a .Net app in only one or two tiers. All in all, it's a wild ride, but fun! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 19, 2006 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net Or - if you could point to a reference? (no pun intended!) Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net Ye Gads! The best way is to get a good team leader who knows the thing! I'm the veriest novice, but it's my bread and butter. Let me give it some thought. Charlotte -----Original Message----- Subject: Re: [AccessD] Switching to VB.net OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Fri Sep 22 09:46:04 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 22 Sep 2006 09:46:04 -0500 Subject: [AccessD] Switching to VB.net Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFB4@corp-es01.fleetpride.com> Not to be confused with N-tear(ed) which describes the many levels of weeping and gnashing of teeth generally associated with every M$ architecture. Jim Hale -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, September 22, 2006 9:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net N-tiered design just separates the presentation tier from the data tier and the business rules. They're pretty much bundled together in Access, but for enterprise solutions, network solutions and web-based solutions, n-tier is the way to go. Charlotte Foust *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From wdhindman at dejpolsystems.com Fri Sep 22 09:53:16 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 22 Sep 2006 10:53:16 -0400 Subject: [AccessD] Switching to VB.net References: <002401c6de3d$894a3130$0200a8c0@danwaters> Message-ID: <003b01c6de56$f39f87b0$153ce944@50NM721> ...n-tier is just doublespeak for what you already do :) ...think of forms & reports as one tier ...the be mdb as another ...the code modules/classes as another ...Access puts them all together to avoid confusing the office user who works with it ...higher lever dbs don't need to make that compromise so they separate them ...it has its advantages ...and disadvantages. ...but so does Access ...I'm soooooo not switching ...MS may drag me to .net eventually but I'll be kicking and screaming and clawing at the floor the whole way :). William Hindman ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 22, 2006 7:52 AM Subject: Re: [AccessD] Switching to VB.net > Hi Charlotte, > > Thanks for this write-up! Turns out I do have the O'Reilly book. I > bought > it to try to learn and see if, for me, it's the right thing to do. > > I'll have to look up to see what n-tiered design is. If I don't need it, > then you just saved me a huge amount of time! > > Thanks, > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Tuesday, September 19, 2006 6:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > Rick Dobson's book, Programming Visual Basic .Net for Access Databases", > at least starts from familiar territory. There are also some good books > in the Microsoft .Net Development Series, including "Data Binding with > Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to > be confused at first. If you don't understand classes, you'd better > learn fast because *everything* in .Net is a class, even a string is a > class instance. And if you haven't worked with ADO, you might as well > bite the bullet and get ready for ADO.Net. I found it much easier to > move to ADO.Net having worked extensively with ADO in addition to DAO. > You'll become familiar with XML whether you want to or not because > that's where you store stuff that used to go into the registry in Access > apps. That means you have to learn to read and write it using the > appropriate tools from .Net. > > The most difficult part of .Net is that you can do so much, in so many > possible ways, that you wander around in confusion looking for someone > to lead you out of the wilderness. I think this is one language where > some training is essential, although finding the right level of training > can be a chore too. The AppDev series on .Net is pretty good and takes > you through the basics quite well. Rick Dobson's books are good but I > haven't been at all impressed with him dvds, which strike me as > extremely home-made. Rick is a nice guy and he knows his topic but the > videos tend to wander. > > You'll probably eventually wind up using 3rd party controls, although > Microsoft is trying to cover those bases more with every release. The > next framework is slated to have a new UI in place of Microsoft Forms > (or maybe above or below MS Forms, I haven't figured that out yet) and > some nifty developer tools. If you want to do effective database design > in .Net, you have to learn not only relational theory but also n-tiered > design, since it's pretty pointless to build a .Net app in only one or > two tiers. > > All in all, it's a wild ride, but fun! > > Charlotte > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 19, 2006 2:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > Or - if you could point to a reference? (no pun intended!) > > Thanks! > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > Ye Gads! The best way is to get a good team leader who knows the thing! > I'm the veriest novice, but it's my bread and butter. Let me give it > some thought. > > Charlotte > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > OK Charlotte! > > Since you have admitted switching to VB.net and are extolling the > virtues of said product, I want to ask you to do something! > > For those of us who are 'switching lurkers', we could use a write up on > how to go about this Big Switch! > > Any possibility? > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] pretty quiet out there > > Naw, it's just that we're all switching to VB.Net and don't want to > admit it. LOL > > Charlotte > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Fri Sep 22 10:07:39 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Fri, 22 Sep 2006 11:07:39 -0400 Subject: [AccessD] Switching to VB.net References: <002401c6de3d$894a3130$0200a8c0@danwaters> <003b01c6de56$f39f87b0$153ce944@50NM721> Message-ID: <00b501c6de58$d96f34b0$0302a8c0@default> Hurray !!! Music, sweet chamber music ... Michael R. Mattys A MapPoint Developer www.mattysconsulting.com ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Friday, September 22, 2006 10:53 AM Subject: Re: [AccessD] Switching to VB.net > ...n-tier is just doublespeak for what you already do :) > > ...think of forms & reports as one tier > ...the be mdb as another > ...the code modules/classes as another > > ...Access puts them all together to avoid confusing the office user who > works with it ...higher lever dbs don't need to make that compromise so > they > separate them ...it has its advantages ...and disadvantages. > > ...but so does Access ...I'm soooooo not switching ...MS may drag me to > .net > eventually but I'll be kicking and screaming and clawing at the floor the > whole way :). > > William Hindman From tinanfields at torchlake.com Fri Sep 22 10:42:52 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Fri, 22 Sep 2006 11:42:52 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Message-ID: <4514047B.3090203@torchlake.com> Hi All, Client is an oil and gas producer. Daily data of several kinds are reported from the field on a daily basis. Client would like to be able to see graphs showing, for instance, daily production for well A for a selectable time range (the last month, this last week, this last quarter, whatever) - he would also like to be able to see daily production for two or three wells at a time on the same graph, or for all the wells in a given oilfield (individually or as a total). Once a query is devised for selecting the date range, the specific wells, or the complete oilfield (separately or in combination), I want to export the selected data to Excel and draw the appropriate graphs. And, I want to do all that fairly automatically. The client would like users to be able to tweak data in Excel for the graph, if need be - as in to exclude outlying data points - but, of course, not alter the actual data captured in the Access data table. So, I am thinking of using a make-table query and sending the data from the "made" table to Excel. Is this a good idea? Some of you have done some automation with Access and Excel, so I would appreciate knowing what the pitfalls are that I need to be careful of. I am thinking to build essentially template Excel files with already configured graphs for the choices that are going to be offered to the user - which well or wells, or which well-field, and for what date range? Does this sound like a good idea? With great care, I believe I can code I really would like your creative and technical advice, here - so, all ideas are welcome. Thanks, Tina From mwp.reid at qub.ac.uk Fri Sep 22 12:19:04 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 22 Sep 2006 18:19:04 +0100 Subject: [AccessD] Error Code Generator References: Message-ID: I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From artful at rogers.com Fri Sep 22 12:33:03 2006 From: artful at rogers.com (artful at rogers.com) Date: Fri, 22 Sep 2006 10:33:03 -0700 (PDT) Subject: [AccessD] Error Code Generator In-Reply-To: Message-ID: <20060922173303.17499.qmail@web88204.mail.re2.yahoo.com> I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin From DWUTKA at marlow.com Fri Sep 22 12:47:13 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Sep 2006 12:47:13 -0500 Subject: [AccessD] Switching to VB.net Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DBCF@MARLOW_MAIN2.marlow.com> I've used .Net, but not for any live systems. With the exception of inheritance, there is little I can't do in VB. A major obstacle is that I have so many systems built with VB, that developing new systems takes less time due to the amount of code I have built over the years. Drew -----Original Message----- From: William Hindman [mailto:wdhindman at dejpolsystems.com] Sent: Friday, September 22, 2006 9:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net ...n-tier is just doublespeak for what you already do :) ...think of forms & reports as one tier ...the be mdb as another ...the code modules/classes as another ...Access puts them all together to avoid confusing the office user who works with it ...higher lever dbs don't need to make that compromise so they separate them ...it has its advantages ...and disadvantages. ...but so does Access ...I'm soooooo not switching ...MS may drag me to .net eventually but I'll be kicking and screaming and clawing at the floor the whole way :). William Hindman ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 22, 2006 7:52 AM Subject: Re: [AccessD] Switching to VB.net > Hi Charlotte, > > Thanks for this write-up! Turns out I do have the O'Reilly book. I > bought > it to try to learn and see if, for me, it's the right thing to do. > > I'll have to look up to see what n-tiered design is. If I don't need it, > then you just saved me a huge amount of time! > > Thanks, > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Tuesday, September 19, 2006 6:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > Rick Dobson's book, Programming Visual Basic .Net for Access Databases", > at least starts from familiar territory. There are also some good books > in the Microsoft .Net Development Series, including "Data Binding with > Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to > be confused at first. If you don't understand classes, you'd better > learn fast because *everything* in .Net is a class, even a string is a > class instance. And if you haven't worked with ADO, you might as well > bite the bullet and get ready for ADO.Net. I found it much easier to > move to ADO.Net having worked extensively with ADO in addition to DAO. > You'll become familiar with XML whether you want to or not because > that's where you store stuff that used to go into the registry in Access > apps. That means you have to learn to read and write it using the > appropriate tools from .Net. > > The most difficult part of .Net is that you can do so much, in so many > possible ways, that you wander around in confusion looking for someone > to lead you out of the wilderness. I think this is one language where > some training is essential, although finding the right level of training > can be a chore too. The AppDev series on .Net is pretty good and takes > you through the basics quite well. Rick Dobson's books are good but I > haven't been at all impressed with him dvds, which strike me as > extremely home-made. Rick is a nice guy and he knows his topic but the > videos tend to wander. > > You'll probably eventually wind up using 3rd party controls, although > Microsoft is trying to cover those bases more with every release. The > next framework is slated to have a new UI in place of Microsoft Forms > (or maybe above or below MS Forms, I haven't figured that out yet) and > some nifty developer tools. If you want to do effective database design > in .Net, you have to learn not only relational theory but also n-tiered > design, since it's pretty pointless to build a .Net app in only one or > two tiers. > > All in all, it's a wild ride, but fun! > > Charlotte > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 19, 2006 2:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > Or - if you could point to a reference? (no pun intended!) > > Thanks! > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > Ye Gads! The best way is to get a good team leader who knows the thing! > I'm the veriest novice, but it's my bread and butter. Let me give it > some thought. > > Charlotte > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > OK Charlotte! > > Since you have admitted switching to VB.net and are extolling the > virtues of said product, I want to ask you to do something! > > For those of us who are 'switching lurkers', we could use a write up on > how to go about this Big Switch! > > Any possibility? > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] pretty quiet out there > > Naw, it's just that we're all switching to VB.Net and don't want to > admit it. LOL > > Charlotte > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Sep 22 12:49:32 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Sep 2006 12:49:32 -0500 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DBD1@MARLOW_MAIN2.marlow.com> Why automate at all? Excel allows you to place external data on a spreadsheet, and you can have the sheet prompt to 'refresh' the data whenever excel is opened. It's pretty straight forward, and wouldn't require using any code. (Hey, wait, am I advocating a non-code approach? William may take away my 'Code Boy' title!) Drew -----Original Message----- From: Tina Norris Fields [mailto:tinanfields at torchlake.com] Sent: Friday, September 22, 2006 10:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Hi All, Client is an oil and gas producer. Daily data of several kinds are reported from the field on a daily basis. Client would like to be able to see graphs showing, for instance, daily production for well A for a selectable time range (the last month, this last week, this last quarter, whatever) - he would also like to be able to see daily production for two or three wells at a time on the same graph, or for all the wells in a given oilfield (individually or as a total). Once a query is devised for selecting the date range, the specific wells, or the complete oilfield (separately or in combination), I want to export the selected data to Excel and draw the appropriate graphs. And, I want to do all that fairly automatically. The client would like users to be able to tweak data in Excel for the graph, if need be - as in to exclude outlying data points - but, of course, not alter the actual data captured in the Access data table. So, I am thinking of using a make-table query and sending the data from the "made" table to Excel. Is this a good idea? Some of you have done some automation with Access and Excel, so I would appreciate knowing what the pitfalls are that I need to be careful of. I am thinking to build essentially template Excel files with already configured graphs for the choices that are going to be offered to the user - which well or wells, or which well-field, and for what date range? Does this sound like a good idea? With great care, I believe I can code I really would like your creative and technical advice, here - so, all ideas are welcome. Thanks, Tina -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Sep 22 12:51:07 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Sep 2006 12:51:07 -0500 Subject: [AccessD] Error Code Generator Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DBD2@MARLOW_MAIN2.marlow.com> I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Sep 22 12:54:35 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 22 Sep 2006 12:54:35 -0500 Subject: [AccessD] Error Code Generator In-Reply-To: <27371544.1158946726667.JavaMail.root@sniper42> Message-ID: <000501c6de70$2aaeccc0$0200a8c0@danwaters> Hi Arthur, I've done that for years, and it's been really helpful in knowing when a customer is having a problem. The system emails me the list of errors everyday so I can see if anything new has cropped up. Dan Waters -----Original Message----- Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Sep 22 12:54:08 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 22 Sep 2006 10:54:08 -0700 Subject: [AccessD] Passing a form byval In-Reply-To: References: <007501c6d2cc$38f17f30$657aa8c0@m6805> Message-ID: <45142340.3030209@shaw.ca> Passing a parameter in a call is passed ByRef as default otherwise need to specify ByVal . Computer languages differ on this default. Function testA(ctlR As Control, ByVal ctlV As Control, _ strR As TextBox, ByVal strV As TextBox) As Long 'control is combobox Debug.Print ctlR.Column(0) Debug.Print ctlV.Column(0) 'Textbox needs focus strV.SetFocus Debug.Print strV.Text strR.SetFocus Debug.Print strR.Text End Function Martin Reid wrote: >I need to pass a text control on a form to a procedure byval as opposed to byref as byref errors out. How can I pass this to the procedure byval? > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.405 / Virus Database: 268.12.6/453 - Release Date: 20/09/2006 > > -- Marty Connelly Victoria, B.C. Canada From Lambert.Heenan at AIG.com Fri Sep 22 12:56:47 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 22 Sep 2006 13:56:47 -0400 Subject: [AccessD] Error Code Generator Message-ID: "Why is it better to embed the error routine in the particular proc or func". Lot's of reasons, not least of which is: Because the person who codes a proc/func is in the best position to determine what action should be taken with which specific error codes, and it only makes sense the do this in the routine that errored - for one thing the error handler will have access to all the local variables and parameters that the routine uses. Because to write a routine that would know what to do with all x thousand errors in any code that any programmer ever wrote in any application would be up for the psychic coder of the century award. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 1:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Sep 22 13:03:50 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 22 Sep 2006 11:03:50 -0700 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <4514047B.3090203@torchlake.com> Message-ID: <0J6000F8JA5JB5J0@l-daemon> Hi Tina: The best approach I found was to use recordsets to hold the data. Recordsets are more flexible than tables as they can be easily modified, added to and deleted and you do not have to worry about multiple users if you are using a centralized BE for temp table storage. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Friday, September 22, 2006 8:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Hi All, Client is an oil and gas producer. Daily data of several kinds are reported from the field on a daily basis. Client would like to be able to see graphs showing, for instance, daily production for well A for a selectable time range (the last month, this last week, this last quarter, whatever) - he would also like to be able to see daily production for two or three wells at a time on the same graph, or for all the wells in a given oilfield (individually or as a total). Once a query is devised for selecting the date range, the specific wells, or the complete oilfield (separately or in combination), I want to export the selected data to Excel and draw the appropriate graphs. And, I want to do all that fairly automatically. The client would like users to be able to tweak data in Excel for the graph, if need be - as in to exclude outlying data points - but, of course, not alter the actual data captured in the Access data table. So, I am thinking of using a make-table query and sending the data from the "made" table to Excel. Is this a good idea? Some of you have done some automation with Access and Excel, so I would appreciate knowing what the pitfalls are that I need to be careful of. I am thinking to build essentially template Excel files with already configured graphs for the choices that are going to be offered to the user - which well or wells, or which well-field, and for what date range? Does this sound like a good idea? With great care, I believe I can code I really would like your creative and technical advice, here - so, all ideas are welcome. Thanks, Tina -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Sep 22 13:02:47 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Sep 2006 13:02:47 -0500 Subject: [AccessD] Error Code Generator Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DBD8@MARLOW_MAIN2.marlow.com> Ah, but some things can be centralized. For instance, alerting for an error, recording the error, etc, those are things you want done for every error (that you aren't expecting). You still have the individual errorhandling routines which can be customized for each situation/procedure). Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Friday, September 22, 2006 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator "Why is it better to embed the error routine in the particular proc or func". Lot's of reasons, not least of which is: Because the person who codes a proc/func is in the best position to determine what action should be taken with which specific error codes, and it only makes sense the do this in the routine that errored - for one thing the error handler will have access to all the local variables and parameters that the routine uses. Because to write a routine that would know what to do with all x thousand errors in any code that any programmer ever wrote in any application would be up for the psychic coder of the century award. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 1:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Sep 22 13:32:01 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 22 Sep 2006 14:32:01 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: Switching to VB.net In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E36D5F@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35914@ADGSERVER> Drew, If you are interested in extending any of those programs with .Net, you might be interested in this: http://www.microsoft.com/downloads/details.aspx?FamilyID=98c38c1d-c630-4d9a- 8bb5-7f1fc088a7c4&DisplayLang=en Microsoft InteropForms Toolkit 1.0 "This toolkit helps you bring the power of .NET to your existing VB6 applications, by allowing them to display .NET WinForms from within the same application. Instead of upgrading the entire code base, these applications can now be extended one form at a time. The goal is a phased upgrade, with production releases at the end of each iteration containing both VB6 and VB.NET forms running in the same VB6 .exe process." Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Friday, September 22, 2006 1:47 PM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] Re: [AccessD] Switching to VB.net Importance: Low I've used .Net, but not for any live systems. With the exception of inheritance, there is little I can't do in VB. A major obstacle is that I have so many systems built with VB, that developing new systems takes less time due to the amount of code I have built over the years. Drew -----Original Message----- From: William Hindman [mailto:wdhindman at dejpolsystems.com] Sent: Friday, September 22, 2006 9:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net ...n-tier is just doublespeak for what you already do :) ...think of forms & reports as one tier ...the be mdb as another ...the code modules/classes as another ...Access puts them all together to avoid confusing the office user who works with it ...higher lever dbs don't need to make that compromise so they separate them ...it has its advantages ...and disadvantages. ...but so does Access ...I'm soooooo not switching ...MS may drag me to .net eventually but I'll be kicking and screaming and clawing at the floor the whole way :). William Hindman ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 22, 2006 7:52 AM Subject: Re: [AccessD] Switching to VB.net > Hi Charlotte, > > Thanks for this write-up! Turns out I do have the O'Reilly book. I > bought > it to try to learn and see if, for me, it's the right thing to do. > > I'll have to look up to see what n-tiered design is. If I don't need it, > then you just saved me a huge amount of time! > > Thanks, > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Tuesday, September 19, 2006 6:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > Rick Dobson's book, Programming Visual Basic .Net for Access Databases", > at least starts from familiar territory. There are also some good books > in the Microsoft .Net Development Series, including "Data Binding with > Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to > be confused at first. If you don't understand classes, you'd better > learn fast because *everything* in .Net is a class, even a string is a > class instance. And if you haven't worked with ADO, you might as well > bite the bullet and get ready for ADO.Net. I found it much easier to > move to ADO.Net having worked extensively with ADO in addition to DAO. > You'll become familiar with XML whether you want to or not because > that's where you store stuff that used to go into the registry in Access > apps. That means you have to learn to read and write it using the > appropriate tools from .Net. > > The most difficult part of .Net is that you can do so much, in so many > possible ways, that you wander around in confusion looking for someone > to lead you out of the wilderness. I think this is one language where > some training is essential, although finding the right level of training > can be a chore too. The AppDev series on .Net is pretty good and takes > you through the basics quite well. Rick Dobson's books are good but I > haven't been at all impressed with him dvds, which strike me as > extremely home-made. Rick is a nice guy and he knows his topic but the > videos tend to wander. > > You'll probably eventually wind up using 3rd party controls, although > Microsoft is trying to cover those bases more with every release. The > next framework is slated to have a new UI in place of Microsoft Forms > (or maybe above or below MS Forms, I haven't figured that out yet) and > some nifty developer tools. If you want to do effective database design > in .Net, you have to learn not only relational theory but also n-tiered > design, since it's pretty pointless to build a .Net app in only one or > two tiers. > > All in all, it's a wild ride, but fun! > > Charlotte > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 19, 2006 2:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > Or - if you could point to a reference? (no pun intended!) > > Thanks! > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > Ye Gads! The best way is to get a good team leader who knows the thing! > I'm the veriest novice, but it's my bread and butter. Let me give it > some thought. > > Charlotte > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > OK Charlotte! > > Since you have admitted switching to VB.net and are extolling the > virtues of said product, I want to ask you to do something! > > For those of us who are 'switching lurkers', we could use a write up on > how to go about this Big Switch! > > Any possibility? > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] pretty quiet out there > > Naw, it's just that we're all switching to VB.Net and don't want to > admit it. LOL > > Charlotte From jwcolby at colbyconsulting.com Fri Sep 22 13:37:01 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 22 Sep 2006 14:37:01 -0400 Subject: [AccessD] Error Code Generator In-Reply-To: Message-ID: <00c701c6de76$18b65eb0$657aa8c0@m6805> 'Twas I more or less. You can go to www.DatabaseAdvisors.com to download a VB error handler VbErrorHandler.exe generator that is based on my code but ported to VB by Seth Galitzer. Having downloaded and installed this, a toolbar will be added to the VBA Editor IDE to allow you to insert error handlers into your code, either in the form you showed or in a select case form. The bottom line is that I never found an error handler insertion wizard that I liked so I highly modified one I found. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, September 22, 2006 1:19 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Fri Sep 22 13:37:29 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Sep 2006 13:37:29 -0500 Subject: [AccessD] [SPAM SUSPECT] Re: Switching to VB.net Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DBE2@MARLOW_MAIN2.marlow.com> Most of my apps are web based. I use VB .dll's with ASP based front ends....don't have a lot of use for .Net forms... thanks for the link though. Drew -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Friday, September 22, 2006 1:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Re: Switching to VB.net Drew, If you are interested in extending any of those programs with .Net, you might be interested in this: http://www.microsoft.com/downloads/details.aspx?FamilyID=98c38c1d-c630-4d9a- 8bb5-7f1fc088a7c4&DisplayLang=en Microsoft InteropForms Toolkit 1.0 "This toolkit helps you bring the power of .NET to your existing VB6 applications, by allowing them to display .NET WinForms from within the same application. Instead of upgrading the entire code base, these applications can now be extended one form at a time. The goal is a phased upgrade, with production releases at the end of each iteration containing both VB6 and VB.NET forms running in the same VB6 .exe process." Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Friday, September 22, 2006 1:47 PM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] Re: [AccessD] Switching to VB.net Importance: Low I've used .Net, but not for any live systems. With the exception of inheritance, there is little I can't do in VB. A major obstacle is that I have so many systems built with VB, that developing new systems takes less time due to the amount of code I have built over the years. Drew -----Original Message----- From: William Hindman [mailto:wdhindman at dejpolsystems.com] Sent: Friday, September 22, 2006 9:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net ...n-tier is just doublespeak for what you already do :) ...think of forms & reports as one tier ...the be mdb as another ...the code modules/classes as another ...Access puts them all together to avoid confusing the office user who works with it ...higher lever dbs don't need to make that compromise so they separate them ...it has its advantages ...and disadvantages. ...but so does Access ...I'm soooooo not switching ...MS may drag me to .net eventually but I'll be kicking and screaming and clawing at the floor the whole way :). William Hindman ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 22, 2006 7:52 AM Subject: Re: [AccessD] Switching to VB.net > Hi Charlotte, > > Thanks for this write-up! Turns out I do have the O'Reilly book. I > bought > it to try to learn and see if, for me, it's the right thing to do. > > I'll have to look up to see what n-tiered design is. If I don't need it, > then you just saved me a huge amount of time! > > Thanks, > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Tuesday, September 19, 2006 6:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > Rick Dobson's book, Programming Visual Basic .Net for Access Databases", > at least starts from familiar territory. There are also some good books > in the Microsoft .Net Development Series, including "Data Binding with > Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to > be confused at first. If you don't understand classes, you'd better > learn fast because *everything* in .Net is a class, even a string is a > class instance. And if you haven't worked with ADO, you might as well > bite the bullet and get ready for ADO.Net. I found it much easier to > move to ADO.Net having worked extensively with ADO in addition to DAO. > You'll become familiar with XML whether you want to or not because > that's where you store stuff that used to go into the registry in Access > apps. That means you have to learn to read and write it using the > appropriate tools from .Net. > > The most difficult part of .Net is that you can do so much, in so many > possible ways, that you wander around in confusion looking for someone > to lead you out of the wilderness. I think this is one language where > some training is essential, although finding the right level of training > can be a chore too. The AppDev series on .Net is pretty good and takes > you through the basics quite well. Rick Dobson's books are good but I > haven't been at all impressed with him dvds, which strike me as > extremely home-made. Rick is a nice guy and he knows his topic but the > videos tend to wander. > > You'll probably eventually wind up using 3rd party controls, although > Microsoft is trying to cover those bases more with every release. The > next framework is slated to have a new UI in place of Microsoft Forms > (or maybe above or below MS Forms, I haven't figured that out yet) and > some nifty developer tools. If you want to do effective database design > in .Net, you have to learn not only relational theory but also n-tiered > design, since it's pretty pointless to build a .Net app in only one or > two tiers. > > All in all, it's a wild ride, but fun! > > Charlotte > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 19, 2006 2:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > Or - if you could point to a reference? (no pun intended!) > > Thanks! > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > Ye Gads! The best way is to get a good team leader who knows the thing! > I'm the veriest novice, but it's my bread and butter. Let me give it > some thought. > > Charlotte > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > OK Charlotte! > > Since you have admitted switching to VB.net and are extolling the > virtues of said product, I want to ask you to do something! > > For those of us who are 'switching lurkers', we could use a write up on > how to go about this Big Switch! > > Any possibility? > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] pretty quiet out there > > Naw, it's just that we're all switching to VB.Net and don't want to > admit it. LOL > > Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tuxedoman888 at gmail.com Fri Sep 22 13:44:45 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Fri, 22 Sep 2006 11:44:45 -0700 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <4514047B.3090203@torchlake.com> References: <4514047B.3090203@torchlake.com> Message-ID: <7c8826480609221144jdb43c92n9098843c6ed68bd8@mail.gmail.com> If you plan on going to the Access-Excel automation route, I found that it is good practice to destroy all the objects you create after you are done with them. That is, Set xlSheet = nothing Also, reference your excel objects in its entirety to ensure that the objects are properly destroyed. For example, copying a worksheet... xlSheet.Copy after:=xlApp.Worksheets("Sheet1") <-- Good xlSheet.Copy after:=Worksheets("Sheet1") <-- Bad Otherwise, Set xlSheet = nothing will not work and the object will hang around, which may produce unexpected results. Billy On 9/22/06, Tina Norris Fields wrote: > > Hi All, > > Client is an oil and gas producer. Daily data of several kinds are > reported from the field on a daily basis. Client would like to be able > to see graphs showing, for instance, daily production for well A for a > selectable time range (the last month, this last week, this last > quarter, whatever) - he would also like to be able to see daily > production for two or three wells at a time on the same graph, or for > all the wells in a given oilfield (individually or as a total). > > Once a query is devised for selecting the date range, the specific > wells, or the complete oilfield (separately or in combination), I want > to export the selected data to Excel and draw the appropriate graphs. > And, I want to do all that fairly automatically. > > The client would like users to be able to tweak data in Excel for the > graph, if need be - as in to exclude outlying data points - but, of > course, not alter the actual data captured in the Access data table. > So, I am thinking of using a make-table query and sending the data from > the "made" table to Excel. Is this a good idea? > > Some of you have done some automation with Access and Excel, so I would > appreciate knowing what the pitfalls are that I need to be careful of. > I am thinking to build essentially template Excel files with already > configured graphs for the choices that are going to be offered to the > user - which well or wells, or which well-field, and for what date > range? Does this sound like a good idea? > > With great care, I believe I can code > > I really would like your creative and technical advice, here - so, all > ideas are welcome. > > Thanks, > Tina > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From martyconnelly at shaw.ca Fri Sep 22 14:16:29 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 22 Sep 2006 12:16:29 -0700 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <4514047B.3090203@torchlake.com> References: <4514047B.3090203@torchlake.com> Message-ID: <4514368D.8080708@shaw.ca> I would be tempted to use an ActiveX 3'd party graphing solution, I find Excel Graph much like using an ExaSketch. I would use one like TeeChart. http://www.steema.com/products/teechart/gallery_std.html If the client isn't an engineer, the aesthetics of the graph will be important and multi-line graphs with labelling gets very tricky in Excel Maybe others can suggest other ActiveX's, this one is $359 for developers version. There maybe ones aimed specifically at Excel. I have heard of people using Tableau Software but then you are up to $1200. I am used to using DISSPLA on mainframes with Fortran. Tina Norris Fields wrote: >Hi All, > >Client is an oil and gas producer. Daily data of several kinds are >reported from the field on a daily basis. Client would like to be able >to see graphs showing, for instance, daily production for well A for a >selectable time range (the last month, this last week, this last >quarter, whatever) - he would also like to be able to see daily >production for two or three wells at a time on the same graph, or for >all the wells in a given oilfield (individually or as a total). > >Once a query is devised for selecting the date range, the specific >wells, or the complete oilfield (separately or in combination), I want >to export the selected data to Excel and draw the appropriate graphs. >And, I want to do all that fairly automatically. > >The client would like users to be able to tweak data in Excel for the >graph, if need be - as in to exclude outlying data points - but, of >course, not alter the actual data captured in the Access data table. >So, I am thinking of using a make-table query and sending the data from >the "made" table to Excel. Is this a good idea? > >Some of you have done some automation with Access and Excel, so I would >appreciate knowing what the pitfalls are that I need to be careful of. >I am thinking to build essentially template Excel files with already >configured graphs for the choices that are going to be offered to the >user - which well or wells, or which well-field, and for what date >range? Does this sound like a good idea? > >With great care, I believe I can code > >I really would like your creative and technical advice, here - so, all >ideas are welcome. > >Thanks, >Tina > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri Sep 22 14:36:39 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 22 Sep 2006 20:36:39 +0100 Subject: [AccessD] Error Code Generator References: <00c701c6de76$18b65eb0$657aa8c0@m6805> Message-ID: John Lot of code I am publishing uses this.Just wanted you to knwo. Figured it was you. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of JWColby Sent: Fri 22/09/2006 19:37 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator 'Twas I more or less. You can go to www.DatabaseAdvisors.com to download a VB error handler VbErrorHandler.exe generator that is based on my code but ported to VB by Seth Galitzer. Having downloaded and installed this, a toolbar will be added to the VBA Editor IDE to allow you to insert error handlers into your code, either in the form you showed or in a select case form. The bottom line is that I never found an error handler insertion wizard that I liked so I highly modified one I found. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, September 22, 2006 1:19 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Fri Sep 22 14:41:02 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 22 Sep 2006 20:41:02 +0100 Subject: [AccessD] Comments Help Security References: <916187228923D311A6FE00A0CC3FAA30D35914@ADGSERVER> Message-ID: Windows SharePoint Server web site Access database with a linked take which is linked to a list on the Server If I want to see the list on the server I need to use a username and password If I link from Access dont. I have direct Access to the list. Question If I have a table in Access and am using Active Directory would it be possible to prompt for an AD username and Password before opening the linked table? I owuld then check the details aganist the AD and if OK open the linked Access table. This may or may not be an issue and could simply be a bug in the software. I dont knwo yet but just oout of interest. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From artful at rogers.com Fri Sep 22 15:11:34 2006 From: artful at rogers.com (artful at rogers.com) Date: Fri, 22 Sep 2006 13:11:34 -0700 (PDT) Subject: [AccessD] Error Code Generator In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0113DBD2@MARLOW_MAIN2.marlow.com> Message-ID: <20060922201134.79846.qmail@web88204.mail.re2.yahoo.com> That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 22 15:25:54 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 22 Sep 2006 16:25:54 -0400 Subject: [AccessD] Error Code Generator In-Reply-To: <20060922201134.79846.qmail@web88204.mail.re2.yahoo.com> Message-ID: <00d801c6de85$4f0e6d40$657aa8c0@m6805> Art, A "non-local" way simply cannot handle all the parts required. A local error handler knows that procedureA is about opening a recordset while procedureB is about opening a form, while ProcedureC is about calculating the cubic volume of a lake. Very different problems, very different errors that will occur. At the least the local error handler will have a case statement that has error values added to the case as the errors are discovered, but may indeed call a global error logger / emailer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 4:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Sep 22 15:30:16 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 22 Sep 2006 15:30:16 -0500 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <6741943.1158953012219.JavaMail.root@sniper61> Message-ID: <002001c6de85$eafaf610$0200a8c0@danwaters> I would suggest looking at MS Graph. It has the power, within Access, to create a chart that looks just as good as Excel. You'll need to do quite a bit of data manipulation, or create cascading queries, but this keeps it all in one application. The only difference that I've seen so far is that in MS Graph I couldn't 'smooth' a line series. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, September 22, 2006 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Graphs from Access Data - Ideas, Please I would be tempted to use an ActiveX 3'd party graphing solution, I find Excel Graph much like using an ExaSketch. I would use one like TeeChart. http://www.steema.com/products/teechart/gallery_std.html If the client isn't an engineer, the aesthetics of the graph will be important and multi-line graphs with labelling gets very tricky in Excel Maybe others can suggest other ActiveX's, this one is $359 for developers version. There maybe ones aimed specifically at Excel. I have heard of people using Tableau Software but then you are up to $1200. I am used to using DISSPLA on mainframes with Fortran. Tina Norris Fields wrote: >Hi All, > >Client is an oil and gas producer. Daily data of several kinds are >reported from the field on a daily basis. Client would like to be able >to see graphs showing, for instance, daily production for well A for a >selectable time range (the last month, this last week, this last >quarter, whatever) - he would also like to be able to see daily >production for two or three wells at a time on the same graph, or for >all the wells in a given oilfield (individually or as a total). > >Once a query is devised for selecting the date range, the specific >wells, or the complete oilfield (separately or in combination), I want >to export the selected data to Excel and draw the appropriate graphs. >And, I want to do all that fairly automatically. > >The client would like users to be able to tweak data in Excel for the >graph, if need be - as in to exclude outlying data points - but, of >course, not alter the actual data captured in the Access data table. >So, I am thinking of using a make-table query and sending the data from >the "made" table to Excel. Is this a good idea? > >Some of you have done some automation with Access and Excel, so I would >appreciate knowing what the pitfalls are that I need to be careful of. >I am thinking to build essentially template Excel files with already >configured graphs for the choices that are going to be offered to the >user - which well or wells, or which well-field, and for what date >range? Does this sound like a good idea? > >With great care, I believe I can code > >I really would like your creative and technical advice, here - so, all >ideas are welcome. > >Thanks, >Tina > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Sep 22 16:08:31 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 22 Sep 2006 17:08:31 -0400 Subject: [AccessD] Error Code Generator Message-ID: Well of course. Even *I* do that! :-) My error handlers, are in the subs/functions that they serve. They take care of anticipated errors and allow the program to move on. If the error cannot be handled ('cuase I didn't think of it!) then I have a standard routine in a module that reports the error via email and also logs the same information is an error log table. But that's not *handling* and error, it's just reporting it, which is why my routine is called ReportError Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Friday, September 22, 2006 2:03 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Error Code Generator Ah, but some things can be centralized. For instance, alerting for an error, recording the error, etc, those are things you want done for every error (that you aren't expecting). You still have the individual errorhandling routines which can be customized for each situation/procedure). Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Friday, September 22, 2006 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator "Why is it better to embed the error routine in the particular proc or func". Lot's of reasons, not least of which is: Because the person who codes a proc/func is in the best position to determine what action should be taken with which specific error codes, and it only makes sense the do this in the routine that errored - for one thing the error handler will have access to all the local variables and parameters that the routine uses. Because to write a routine that would know what to do with all x thousand errors in any code that any programmer ever wrote in any application would be up for the psychic coder of the century award. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 1:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Sep 22 16:09:29 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 22 Sep 2006 16:09:29 -0500 Subject: [AccessD] Error Code Generator Message-ID: WOT I SAID. :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, September 22, 2006 4:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Art, A "non-local" way simply cannot handle all the parts required. A local error handler knows that procedureA is about opening a recordset while procedureB is about opening a form, while ProcedureC is about calculating the cubic volume of a lake. Very different problems, very different errors that will occur. At the least the local error handler will have a case statement that has error values added to the case as the errors are discovered, but may indeed call a global error logger / emailer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 4:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Sep 22 16:10:34 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 22 Sep 2006 16:10:34 -0500 Subject: [AccessD] Error Code Generator Message-ID: Check out the error handler insertion function of the (FREE!) MZ Tools. I like it plenty. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, September 22, 2006 2:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator 'Twas I more or less. You can go to www.DatabaseAdvisors.com to download a VB error handler VbErrorHandler.exe generator that is based on my code but ported to VB by Seth Galitzer. Having downloaded and installed this, a toolbar will be added to the VBA Editor IDE to allow you to insert error handlers into your code, either in the form you showed or in a select case form. The bottom line is that I never found an error handler insertion wizard that I liked so I highly modified one I found. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, September 22, 2006 1:19 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Sep 22 17:21:18 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 22 Sep 2006 18:21:18 -0400 Subject: [AccessD] Error Code Generator References: Message-ID: <004101c6de95$6dc1f940$153ce944@50NM721> ...ditto ...excellent tool :) William Hindman ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 22, 2006 5:10 PM Subject: Re: [AccessD] Error Code Generator > Check out the error handler insertion function of the (FREE!) MZ Tools. I > like it plenty. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, September 22, 2006 2:37 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Error Code Generator > > > 'Twas I more or less. You can go to www.DatabaseAdvisors.com to download > a > VB error handler VbErrorHandler.exe generator that is based on my code but > ported to VB by Seth Galitzer. Having downloaded and installed this, a > toolbar will be added to the VBA Editor IDE to allow you to insert error > handlers into your code, either in the form you showed or in a select case > form. > > The bottom line is that I never found an error handler insertion wizard > that > I liked so I highly modified one I found. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: Friday, September 22, 2006 1:19 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Error Code Generator > > I believe someone on the list created an error generator. I believe it > might > be JC? Anyway I have been using it a lot for code examples and just to be > politically correct want the owner to know. Example below > > > Function CopytoWss() > On Error GoTo Err_CopytoWss > DoCmd.SelectObject acTable, "Contacts" > DoCmd.RunCommand acCmdExportSharePointList > Exit_CopytoWss: > Exit Function > Err_CopytoWss: > MsgBox Err.Description, , "Error in Function CopytoWss" > Resume Exit_CopytoWss > Resume 0 '.FOR TROUBLESHOOTING > End Function > > > Martin > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 22 17:41:01 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 22 Sep 2006 18:41:01 -0400 Subject: [AccessD] Error Code Generator In-Reply-To: Message-ID: <00dc01c6de98$2ef68160$657aa8c0@m6805> Yep. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, September 22, 2006 5:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator WOT I SAID. :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, September 22, 2006 4:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Art, A "non-local" way simply cannot handle all the parts required. A local error handler knows that procedureA is about opening a recordset while procedureB is about opening a form, while ProcedureC is about calculating the cubic volume of a lake. Very different problems, very different errors that will occur. At the least the local error handler will have a case statement that has error values added to the case as the errors are discovered, but may indeed call a global error logger / emailer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 4:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Fri Sep 22 22:13:24 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 23 Sep 2006 13:13:24 +1000 Subject: [AccessD] Switching to VB.net Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local> I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M From lembit.dbamail at t-online.de Sat Sep 23 11:48:33 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sat, 23 Sep 2006 18:48:33 +0200 Subject: [AccessD] Access output to Excel References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local> Message-ID: <002401c6df30$1bf62be0$1400a8c0@v1000> I have an Excel worksheet (Excel 2002 SP3) with some named spaces. In Access (A2000) I have these named spaces as linked tables. I can read these tables (VB) as DAO.recordset just like any other table, However I cannot write to these tables. vb tells me its write protected. the xls file is NOT write protected. I have unprotected the worksheet. what else can be wrong? thanks Lembit From martyconnelly at shaw.ca Sat Sep 23 12:13:49 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 23 Sep 2006 10:13:49 -0700 Subject: [AccessD] Access output to Excel In-Reply-To: <002401c6df30$1bf62be0$1400a8c0@v1000> References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local> <002401c6df30$1bf62be0$1400a8c0@v1000> Message-ID: <45156B4D.4050003@shaw.ca> You have probably hit the Excel Access Link Patent infringement patch It was installed with a patch to Office XP or Office 2003 SP2, last may?? I don't know if you can back out of this patch. See explanation : http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 perhaps a workaround here to copy data back and forth via ADO what you cannot do now is see instant changes in the xls and mdb file simultaneously via links. http://office-watch.com/kb/?904953 Lembit Soobik wrote: >I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >In Access (A2000) I have these named spaces as linked tables. >I can read these tables (VB) as DAO.recordset just like any other table, >However I cannot write to these tables. >vb tells me its write protected. >the xls file is NOT write protected. >I have unprotected the worksheet. > >what else can be wrong? > >thanks >Lembit > > -- Marty Connelly Victoria, B.C. Canada From lembit.dbamail at t-online.de Sat Sep 23 12:34:38 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sat, 23 Sep 2006 19:34:38 +0200 Subject: [AccessD] Access output to Excel References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local><002401c6df30$1bf62be0$1400a8c0@v1000> <45156B4D.4050003@shaw.ca> Message-ID: <000f01c6df36$8bb1ef40$1400a8c0@v1000> oh, what a ?%!"?"/?/%! thank you, Marty, for the fast relply and the links. Do you know whether Access97 has the same problem? thanks Lembit ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 7:13 PM Subject: Re: [AccessD] Access output to Excel > You have probably hit the Excel Access Link Patent infringement patch > It was installed with a patch to Office XP or Office 2003 SP2, last may?? > I don't know if you can back out of this patch. > See explanation : > http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 > > perhaps a workaround here to copy data back and forth via ADO > what you cannot do now is see instant changes in the xls and mdb > file simultaneously via links. > > http://office-watch.com/kb/?904953 > > Lembit Soobik wrote: > >>I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >>In Access (A2000) I have these named spaces as linked tables. >>I can read these tables (VB) as DAO.recordset just like any other table, >>However I cannot write to these tables. >>vb tells me its write protected. >>the xls file is NOT write protected. >>I have unprotected the worksheet. >> >>what else can be wrong? >> >>thanks >>Lembit >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 > > From wdhindman at dejpolsystems.com Sat Sep 23 13:18:31 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 23 Sep 2006 14:18:31 -0400 Subject: [AccessD] Access output to Excel References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local><002401c6df30$1bf62be0$1400a8c0@v1000><45156B4D.4050003@shaw.ca> <000f01c6df36$8bb1ef40$1400a8c0@v1000> Message-ID: <000b01c6df3c$ad65a770$153ce944@50NM721> Lembit ...afaik, the patch was applied only to XP/2002 products and forward ...your problem may be in using the Excel 2k3 rather than the A2K itself ...if you can remove the SP2 office 2K3 patch, you may find that the linking will work again ...but then of course MS will insist you upgrade it again :( ...the guy wrote a brief description of how to link a spreadsheet back in '90 and got a patent on it ...MS claims it was working on the methodology before they were contacted by him in '92 ...he wanted $500 mil and $2 on every future MS sale ...MS said no ...the court gave him $8.7 mil and ordered MS to remove the functionality from all future products. ...MS was supposedly working on a verified clean room developed replacement ...why that would take so long is a mystery. William Hindman ----- Original Message ----- From: "Lembit Soobik" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 1:34 PM Subject: Re: [AccessD] Access output to Excel oh, what a ?%!"?"/?/%! thank you, Marty, for the fast relply and the links. Do you know whether Access97 has the same problem? thanks Lembit ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 7:13 PM Subject: Re: [AccessD] Access output to Excel > You have probably hit the Excel Access Link Patent infringement patch > It was installed with a patch to Office XP or Office 2003 SP2, last may?? > I don't know if you can back out of this patch. > See explanation : > http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 > > perhaps a workaround here to copy data back and forth via ADO > what you cannot do now is see instant changes in the xls and mdb > file simultaneously via links. > > http://office-watch.com/kb/?904953 > > Lembit Soobik wrote: > >>I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >>In Access (A2000) I have these named spaces as linked tables. >>I can read these tables (VB) as DAO.recordset just like any other table, >>However I cannot write to these tables. >>vb tells me its write protected. >>the xls file is NOT write protected. >>I have unprotected the worksheet. >> >>what else can be wrong? >> >>thanks >>Lembit >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sat Sep 23 15:40:34 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 23 Sep 2006 13:40:34 -0700 Subject: [AccessD] Access output to Excel In-Reply-To: <000f01c6df36$8bb1ef40$1400a8c0@v1000> References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local> <002401c6df30$1bf62be0$1400a8c0@v1000> <45156B4D.4050003@shaw.ca> <000f01c6df36$8bb1ef40$1400a8c0@v1000> Message-ID: <45159BC2.90209@shaw.ca> Here are the patches that produce the behaviour includes installs of Access 2003 runtimes. You might get away with it by running Access 2000 or lower. http://support.microsoft.com/?kbid=904953 I would suspect any patches to Access XP + after this date, or runtime installs and install of access 2007 Knowledge Base (KB) Articles: KB904018 Date Published: 10/18/2005 Tested it out with Access 2007 and Excel 2007 doesn't link if both programs open. The version level of Excel is irrelevant, it is a patch or version of Access that does it. However you can link tables properly with Access 97 and Excel 2007, I suppose Access 2000 would work too. Lembit Soobik wrote: >oh, what a ?%!"?"/?/%! > >thank you, Marty, for the fast relply and the links. > >Do you know whether Access97 has the same problem? > >thanks >Lembit > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Saturday, September 23, 2006 7:13 PM >Subject: Re: [AccessD] Access output to Excel > > > > >>You have probably hit the Excel Access Link Patent infringement patch >>It was installed with a patch to Office XP or Office 2003 SP2, last may?? >>I don't know if you can back out of this patch. >>See explanation : >>http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 >> >>perhaps a workaround here to copy data back and forth via ADO >>what you cannot do now is see instant changes in the xls and mdb >>file simultaneously via links. >> >>http://office-watch.com/kb/?904953 >> >>Lembit Soobik wrote: >> >> >> >>>I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >>>In Access (A2000) I have these named spaces as linked tables. >>>I can read these tables (VB) as DAO.recordset just like any other table, >>>However I cannot write to these tables. >>>vb tells me its write protected. >>>the xls file is NOT write protected. >>>I have unprotected the worksheet. >>> >>>what else can be wrong? >>> >>>thanks >>>Lembit >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >>-- >>No virus found in this incoming message. >>Checked by AVG Free Edition. >>Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From lembit.dbamail at t-online.de Sun Sep 24 04:47:27 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sun, 24 Sep 2006 11:47:27 +0200 Subject: [AccessD] Access output to Excel References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local><002401c6df30$1bf62be0$1400a8c0@v1000><45156B4D.4050003@shaw.ca><000f01c6df36$8bb1ef40$1400a8c0@v1000> <000b01c6df3c$ad65a770$153ce944@50NM721> Message-ID: <000a01c6dfbe$72679890$1400a8c0@v1000> thank you, William, pretty easy way to make money so for me its back to A97 lembit ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 8:18 PM Subject: Re: [AccessD] Access output to Excel Lembit ...afaik, the patch was applied only to XP/2002 products and forward ...your problem may be in using the Excel 2k3 rather than the A2K itself ...if you can remove the SP2 office 2K3 patch, you may find that the linking will work again ...but then of course MS will insist you upgrade it again :( ...the guy wrote a brief description of how to link a spreadsheet back in '90 and got a patent on it ...MS claims it was working on the methodology before they were contacted by him in '92 ...he wanted $500 mil and $2 on every future MS sale ...MS said no ...the court gave him $8.7 mil and ordered MS to remove the functionality from all future products. ...MS was supposedly working on a verified clean room developed replacement ...why that would take so long is a mystery. William Hindman ----- Original Message ----- From: "Lembit Soobik" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 1:34 PM Subject: Re: [AccessD] Access output to Excel oh, what a ?%!"?"/?/%! thank you, Marty, for the fast relply and the links. Do you know whether Access97 has the same problem? thanks Lembit ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 7:13 PM Subject: Re: [AccessD] Access output to Excel > You have probably hit the Excel Access Link Patent infringement patch > It was installed with a patch to Office XP or Office 2003 SP2, last may?? > I don't know if you can back out of this patch. > See explanation : > http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 > > perhaps a workaround here to copy data back and forth via ADO > what you cannot do now is see instant changes in the xls and mdb > file simultaneously via links. > > http://office-watch.com/kb/?904953 > > Lembit Soobik wrote: > >>I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >>In Access (A2000) I have these named spaces as linked tables. >>I can read these tables (VB) as DAO.recordset just like any other table, >>However I cannot write to these tables. >>vb tells me its write protected. >>the xls file is NOT write protected. >>I have unprotected the worksheet. >> >>what else can be wrong? >> >>thanks >>Lembit >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 From lembit.dbamail at t-online.de Sun Sep 24 04:49:15 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sun, 24 Sep 2006 11:49:15 +0200 Subject: [AccessD] Access output to Excel References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local><002401c6df30$1bf62be0$1400a8c0@v1000> <45156B4D.4050003@shaw.ca><000f01c6df36$8bb1ef40$1400a8c0@v1000> <45159BC2.90209@shaw.ca> Message-ID: <000f01c6dfbe$b2739f60$1400a8c0@v1000> thank you, Marty, that means for me back to A97, rather than try to always stop the upgrades. Lembit ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 10:40 PM Subject: Re: [AccessD] Access output to Excel Here are the patches that produce the behaviour includes installs of Access 2003 runtimes. You might get away with it by running Access 2000 or lower. http://support.microsoft.com/?kbid=904953 I would suspect any patches to Access XP + after this date, or runtime installs and install of access 2007 Knowledge Base (KB) Articles: KB904018 Date Published: 10/18/2005 Tested it out with Access 2007 and Excel 2007 doesn't link if both programs open. The version level of Excel is irrelevant, it is a patch or version of Access that does it. However you can link tables properly with Access 97 and Excel 2007, I suppose Access 2000 would work too. Lembit Soobik wrote: >oh, what a ?%!"?"/?/%! > >thank you, Marty, for the fast relply and the links. > >Do you know whether Access97 has the same problem? > >thanks >Lembit > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Saturday, September 23, 2006 7:13 PM >Subject: Re: [AccessD] Access output to Excel > > > > >>You have probably hit the Excel Access Link Patent infringement patch >>It was installed with a patch to Office XP or Office 2003 SP2, last may?? >>I don't know if you can back out of this patch. >>See explanation : >>http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 >> >>perhaps a workaround here to copy data back and forth via ADO >>what you cannot do now is see instant changes in the xls and mdb >>file simultaneously via links. >> >>http://office-watch.com/kb/?904953 >> >>Lembit Soobik wrote: >> >> >> >>>I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >>>In Access (A2000) I have these named spaces as linked tables. >>>I can read these tables (VB) as DAO.recordset just like any other table, >>>However I cannot write to these tables. >>>vb tells me its write protected. >>>the xls file is NOT write protected. >>>I have unprotected the worksheet. >>> >>>what else can be wrong? >>> >>>thanks >>>Lembit >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >>-- >>No virus found in this incoming message. >>Checked by AVG Free Edition. >>Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 From mwp.reid at qub.ac.uk Sun Sep 24 07:27:25 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 24 Sep 2006 13:27:25 +0100 Subject: [AccessD] OT Outlook References: Message-ID: It is my understanding that an Outlook EntryID can be used to uniquely ID an Outlook folder. i.e each folder has a unique GUID that can be referenced via VBA? Is this correct? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From martyconnelly at shaw.ca Sun Sep 24 11:01:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 24 Sep 2006 09:01:35 -0700 Subject: [AccessD] OT Outlook In-Reply-To: References: Message-ID: <4516ABDF.7050402@shaw.ca> At least from object model these should be synonymous. objFolder.EntryID (Hex string) and oFolder.Name I think you can list the entries with this magic constant cdoPR_EntryID = &HFFF0102 How I am not sure Dim oSession As MAPI.Session Dim oFolder As MAPI.Folder Dim objFolder As Outlook.MAPIFolder Set objFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox) Set oSession = CreateObject("MAPI.Session") oSession.Logon "", "", False, False Set oFolder = oSession.GetFolder(objFolder.EntryID, objFolder.StoreID) If oFolder Is Nothing Then Debug.Print "I am nada..." Else Debug.Print oFolder.Name End If Set oFolder = Nothing oSession.Logoff Set objFolder = Nothing Martin Reid wrote: >It is my understanding that an Outlook EntryID can be used to uniquely ID an Outlook folder. i.e each folder has a unique GUID that can be referenced via VBA? > >Is this correct? > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22/09/2006 > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Sun Sep 24 14:48:09 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 24 Sep 2006 20:48:09 +0100 Subject: [AccessD] OT Outlook References: <4516ABDF.7050402@shaw.ca> Message-ID: Thanks Marty That gets me started. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sun 24/09/2006 17:01 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook At least from object model these should be synonymous. objFolder.EntryID (Hex string) and oFolder.Name I think you can list the entries with this magic constant cdoPR_EntryID = &HFFF0102 How I am not sure Dim oSession As MAPI.Session Dim oFolder As MAPI.Folder Dim objFolder As Outlook.MAPIFolder Set objFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox) Set oSession = CreateObject("MAPI.Session") oSession.Logon "", "", False, False Set oFolder = oSession.GetFolder(objFolder.EntryID, objFolder.StoreID) If oFolder Is Nothing Then Debug.Print "I am nada..." Else Debug.Print oFolder.Name End If Set oFolder = Nothing oSession.Logoff Set objFolder = Nothing Martin Reid wrote: >It is my understanding that an Outlook EntryID can be used to uniquely ID an Outlook folder. i.e each folder has a unique GUID that can be referenced via VBA? > >Is this correct? > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22/09/2006 > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 25 00:08:33 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 25 Sep 2006 01:08:33 -0400 Subject: [AccessD] OT: Is anyone into controllers? Message-ID: <000001c6e060$a76eda60$657aa8c0@m6805> Well, I did it; I ordered most of the stuff required to build a controller project. Back in 1997 or so, while I was living in Puebla Mexico, I was tasked with building a controller based phone debit card vending machine. I designed it from the ground up, specing the micro-controller (a zworld z8xxx based SBC), using a bill acceptor and a custom built vending hopper to vend the debit cards. The micro was a ready built board with a ton of i/o pins, rs488, rs232 etc. It cost $180 qty 1. The language was a custom 'C' dialect written for ZWorld for use on their boards. In the end, 250 of the machines were produced, about 100 actually went into use around Puebla and in the subway in Mexico DF. Eventually the company went under, I found AccessD (1997) and I have been in this world ever since. It was the most fun I have ever had on a job, and I have been itching to get back in to controllers ever since. This time around I did the research and selected the Atmel family, specifically the AVR line http://www.atmel.com/dyn/products/devices.asp?family_id=607 These are extremely cheap, extremely powerful u-controllers. I purchased a handful of them as well as a programmer / debugger board and a demo board http://www.atmel.com/dyn/products/tools_card.asp?family_id=607 &family_name=AVR+8%2DBit+RISC+&tool_id=3146 which can be (re) programmed. I briefly considered the PIC family of controllers but they are pretty archaic and once I discovered the AVR I was sold. Life is cool again. Of course it is a learning curve reminiscent of .Net. I have been out of the controller world for many years and have to learn everything from scratch, the chips, the IDE, the 'C' compiler, the programmer / debugger. The tools so far are sooooo cool. There is a free IDE, assembler, 'C' language etc. The emulator actually allows you to watch the program run (I have written my first assembler program, though I don't have hardware yet), watch the registers, I/O pins etc, do all of the things you need to do to program - breakpoints, watchpoints etc. Of course I haven't written 'C' code since 1997... Controllers are a gas though, and once mastered allow you to do so many cool things with very simple circuits and some code. In this case I am looking to build a PWM motor controller for my son's ride-on Gator. From there, the moon. As my son gets older perhaps we can do some robotics stuff together. So is anyone out there doing anything with controllers, want to chat about it? Anyone want to get into it? It is really neat stuff and these chips are cheap and immensely powerful. How about 40 pins, 16 MIPS, 32K program, eerom, ram etc for $13 for the controller? Or 8 pins, 2K program, eerom, ram, etc for $2. A breadboard, some resistors / LEDs (or even LCDs) and you are off and running. Want to build a sun tracker for your solar array? A robot that will follow a line on the floor? An alarm system for your house? A battle bot? Should be fun. I have a forum on my web site we can use if anyone wants to join the fun. John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Mon Sep 25 10:18:06 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Sep 2006 08:18:06 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFB4@corp-es01.fleetpride.com> Message-ID: LOL So true! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, September 22, 2006 7:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net Not to be confused with N-tear(ed) which describes the many levels of weeping and gnashing of teeth generally associated with every M$ architecture. Jim Hale -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, September 22, 2006 9:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net N-tiered design just separates the presentation tier from the data tier and the business rules. They're pretty much bundled together in Access, but for enterprise solutions, network solutions and web-based solutions, n-tier is the way to go. Charlotte Foust *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Mon Sep 25 10:22:45 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 25 Sep 2006 11:22:45 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0113DBD1@MARLOW_MAIN2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1B0113DBD1@MARLOW_MAIN2.marlow.com> Message-ID: <4517F445.3060705@torchlake.com> Hi Drew, Yes, maybe - if I do it that way, let me think how I'd go about it. I would create my Access queries with their date-range, wells, or wellfield parameters to get my data - create my Excel spreadsheets and graphs for the several different data combinations. Then import into Excel from the updated Access queries as desired. Yes? The queries are all parameter queries, getting their parameters from combo boxes and calendar controls on a form - so, I'm thinking to use make-table queries to provide standard consistent data sources for the Excel spreadsheets. Most of the users in this client office do know something about Excel, but virtually nothing about Access. For that reason I am looking for ways to provide them with buttons and drop-down selection lists to generate the data set they want to see graphed, then a quick easy leap of some kind to the Excel spreadsheets and graphs of the selected data. On the Excel side I would like to provide a button to run the macro that generates the graph, or have the data come directly into named ranges that are already set up as the source for my graph. I don't yet see how to import fresh data from the Access query-made-table into Excel without overwriting any named ranges I had established - and, thereby, losing the sources for my graph series. I like the simplicity of your suggestion. Would you share more of your thoughts, please? Thank you, Tina DWUTKA at marlow.com wrote: > Why automate at all? Excel allows you to place external data on a > spreadsheet, and you can have the sheet prompt to 'refresh' the data > whenever excel is opened. It's pretty straight forward, and wouldn't > require using any code. (Hey, wait, am I advocating a non-code approach? > William may take away my 'Code Boy' title!) > > Drew > > > From cfoust at infostatsystems.com Mon Sep 25 10:24:33 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Sep 2006 08:24:33 -0700 Subject: [AccessD] Error Code Generator In-Reply-To: <20060922201134.79846.qmail@web88204.mail.re2.yahoo.com> Message-ID: Think of it like this: If you don't at least trap the error in the procedure where it occurs, how do you expect to get that information? Errors that are unhandled in a procedure bounce back up until they find an error handler. By that time, you have no idea where they originated, you only know what the error is. So even if you have a "global" error handler, you still need to trap errors in the procedure so you know where to look for the problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Mon Sep 25 10:27:39 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 25 Sep 2006 16:27:39 +0100 Subject: [AccessD] Loadfromtext References: <17724746D360394AA3BFE5B8D40A9C1B0113DBD1@MARLOW_MAIN2.marlow.com> <4517F445.3060705@torchlake.com> Message-ID: I want to loop over a folder contain X number of text files. Any ideas. For example Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From tinanfields at torchlake.com Mon Sep 25 10:35:13 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 25 Sep 2006 11:35:13 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <0J6000F8JA5JB5J0@l-daemon> References: <0J6000F8JA5JB5J0@l-daemon> Message-ID: <4517F731.9090609@torchlake.com> Hi Jim: Recordsets - are those something other than the results of my queries? I'm not familiar with this idea. Please tell me more. Eventually, this database (existing, found "as is" - working out modifications one by one) will be split into BE and FE, and put on the client's network, but for now, only one individual even has access to the database (pun unintended and unavoidable). Everyone else just asks for specific output. Thank you for your assistance, Tina Jim Lawrence wrote: > Hi Tina: > > The best approach I found was to use recordsets to hold the data. Recordsets > are more flexible than tables as they can be easily modified, added to and > deleted and you do not have to worry about multiple users if you are using a > centralized BE for temp table storage. > > Jim > > > From tinanfields at torchlake.com Mon Sep 25 10:37:03 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 25 Sep 2006 11:37:03 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <7c8826480609221144jdb43c92n9098843c6ed68bd8@mail.gmail.com> References: <4514047B.3090203@torchlake.com> <7c8826480609221144jdb43c92n9098843c6ed68bd8@mail.gmail.com> Message-ID: <4517F79F.8090404@torchlake.com> Hi Billy, Very good point. Thank you for bringing it up. Got to take out the garbage and clean up after myself! Thanks, Tina Billy Pang wrote: > If you plan on going to the Access-Excel automation route, I found that it > is good practice to destroy all the objects you create after you are done > with them. That is, > > Set xlSheet = nothing > > Also, reference your excel objects in its entirety to ensure that the > objects are properly destroyed. For example, copying a worksheet... > > xlSheet.Copy after:=xlApp.Worksheets("Sheet1") <-- Good > > xlSheet.Copy after:=Worksheets("Sheet1") <-- Bad > Otherwise, Set xlSheet = nothing will not work and the object will hang > around, which may produce unexpected results. > > Billy > > > > From tinanfields at torchlake.com Mon Sep 25 10:45:27 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 25 Sep 2006 11:45:27 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <4514368D.8080708@shaw.ca> References: <4514047B.3090203@torchlake.com> <4514368D.8080708@shaw.ca> Message-ID: <4517F997.3050509@torchlake.com> Hi Marty, This sounds like a very good thought, too. The cost of the software is a stumbling block for me, and, I suspect, for my client, too. It's a small firm - I'm even smaller, of course. However, exploring this idea is well worth my effort. Thanks for the thought, Tina MartyConnelly wrote: > I would be tempted to use an ActiveX 3'd party graphing solution, I find > Excel Graph > much like using an ExaSketch. I would use one like TeeChart. > http://www.steema.com/products/teechart/gallery_std.html > > If the client isn't an engineer, the aesthetics of the graph will be > important > and multi-line graphs with labelling gets very tricky in Excel > > Maybe others can suggest other ActiveX's, this one is $359 for developers > version. There maybe ones aimed specifically at Excel. I have heard of > people using Tableau > Software but then you are up to $1200. I am used to using DISSPLA on > mainframes > with Fortran. > > > > From tinanfields at torchlake.com Mon Sep 25 10:47:22 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 25 Sep 2006 11:47:22 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <002001c6de85$eafaf610$0200a8c0@danwaters> References: <002001c6de85$eafaf610$0200a8c0@danwaters> Message-ID: <4517FA0A.7040100@torchlake.com> Hi Dan, Okay, I will take a good look at that. I hadn't even though of using MS Graph! Thanks for the idea, Tina Dan Waters wrote: > I would suggest looking at MS Graph. It has the power, within Access, to > create a chart that looks just as good as Excel. You'll need to do quite a > bit of data manipulation, or create cascading queries, but this keeps it all > in one application. > > The only difference that I've seen so far is that in MS Graph I couldn't > 'smooth' a line series. > > Dan Waters > > > From bheid at appdevgrp.com Mon Sep 25 10:50:06 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 25 Sep 2006 11:50:06 -0400 Subject: [AccessD] Loadfromtext In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E36ED1@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3591B@ADGSERVER> Why not load all of the items into one or more arrays and then process the files by traversing the arrays? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Monday, September 25, 2006 11:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Loadfromtext I want to loop over a folder contain X number of text files. Any ideas. For example Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From dwaters at usinternet.com Mon Sep 25 10:55:58 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 25 Sep 2006 10:55:58 -0500 Subject: [AccessD] Error Code Generator In-Reply-To: <28746865.1159198274855.JavaMail.root@sniper44> Message-ID: <002101c6e0bb$187f4d20$0200a8c0@danwaters> Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd- Think of it like this: If you don't at least trap the error in the procedure where it occurs, how do you expect to get that information? Errors that are unhandled in a procedure bounce back up until they find an error handler. By that time, you have no idea where they originated, you only know what the error is. So even if you have a "global" error handler, you still need to trap errors in the procedure so you know where to look for the problem. Charlotte Foust -----Original Message----- Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin From dwaters at usinternet.com Mon Sep 25 11:12:04 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 25 Sep 2006 11:12:04 -0500 Subject: [AccessD] Error Code Generator In-Reply-To: <19835284.1159200022468.JavaMail.root@sniper3> Message-ID: <002e01c6e0bd$5814b270$0200a8c0@danwaters> And - The system will automatically email a copy of the error table to me every weekday. I've found that I often know of the error before my customer does - which is good! Dan Waters -----Original Message----- Subject: Re: [AccessD] Error Code Generator Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd- Think of it like this: If you don't at least trap the error in the procedure where it occurs, how do you expect to get that information? Errors that are unhandled in a procedure bounce back up until they find an error handler. By that time, you have no idea where they originated, you only know what the error is. So even if you have a "global" error handler, you still need to trap errors in the procedure so you know where to look for the problem. Charlotte Foust -----Original Message----- Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Sep 25 11:44:02 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 25 Sep 2006 16:44:02 +0000 Subject: [AccessD] Loadfromtext In-Reply-To: Message-ID: Martin, I'm not sure that I understand exactly what you are asking...but I have a stock program that does something similar. Every 30 minutes...this app checks an FTP site...gets all file(*.zip), unzips ALL files, then imports ALL files. All of my files have different names, but they are all in the same format...your email almost sounds like you would have to import differently for each file name??? If not...below is the code I use to import ALL files in a named folder...regardless of file name, just looking for the extensions. Hope it helps, Mark A. Matte SAMPLE ******************************* Public Function ImportData() MyPath = "C:\Stock\BriterStockBiHourlyTEMP\*.csv" MyName = Dir(MyPath) ' Retrieve the first entry. DoCmd.SetWarnings False Do While MyName <> "" ' Start the loop. DoCmd.TransferText acImportDelim, "EndofdayallImportSpecification", "tblDailyStock", "C:\Stock\BriterStockBiHourlyTEMP\" & MyName ' Ignore the current directory and the encompassing directory. If MyName <> "." And MyName <> ".." Then MyName = Dir ' Get next entry. End If Loop FileCleanUp End Function ************************* >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Loadfromtext >Date: Mon, 25 Sep 2006 16:27:39 +0100 > >I want to loop over a folder contain X number of text files. Any ideas. For >example > >Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" > >Instead of a single file I need them all BUT some are prefixed FORM, >REPORT,MODULE, QUERY and I need to change the constant accordingly. > >I know I can run one process for each type but would it be possible to do >them all in the proper squence in one hit. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Sep 25 11:38:44 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 25 Sep 2006 12:38:44 -0400 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <000001c6e060$a76eda60$657aa8c0@m6805> Message-ID: <0J6500LMAQ8LON58@vms048.mailsrvcs.net> John, I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. Was a lot of fun though! Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:09 AM To: Tech - Database Advisors Inc.; 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Is anyone into controllers? Well, I did it; I ordered most of the stuff required to build a controller project. Back in 1997 or so, while I was living in Puebla Mexico, I was tasked with building a controller based phone debit card vending machine. I designed it from the ground up, specing the micro-controller (a zworld z8xxx based SBC), using a bill acceptor and a custom built vending hopper to vend the debit cards. The micro was a ready built board with a ton of i/o pins, rs488, rs232 etc. It cost $180 qty 1. The language was a custom 'C' dialect written for ZWorld for use on their boards. In the end, 250 of the machines were produced, about 100 actually went into use around Puebla and in the subway in Mexico DF. Eventually the company went under, I found AccessD (1997) and I have been in this world ever since. It was the most fun I have ever had on a job, and I have been itching to get back in to controllers ever since. This time around I did the research and selected the Atmel family, specifically the AVR line http://www.atmel.com/dyn/products/devices.asp?family_id=607 These are extremely cheap, extremely powerful u-controllers. I purchased a handful of them as well as a programmer / debugger board and a demo board http://www.atmel.com/dyn/products/tools_card.asp?family_id=607 &family_name=AVR+8%2DBit+RISC+&tool_id=3146 which can be (re) programmed. I briefly considered the PIC family of controllers but they are pretty archaic and once I discovered the AVR I was sold. Life is cool again. Of course it is a learning curve reminiscent of .Net. I have been out of the controller world for many years and have to learn everything from scratch, the chips, the IDE, the 'C' compiler, the programmer / debugger. The tools so far are sooooo cool. There is a free IDE, assembler, 'C' language etc. The emulator actually allows you to watch the program run (I have written my first assembler program, though I don't have hardware yet), watch the registers, I/O pins etc, do all of the things you need to do to program - breakpoints, watchpoints etc. Of course I haven't written 'C' code since 1997... Controllers are a gas though, and once mastered allow you to do so many cool things with very simple circuits and some code. In this case I am looking to build a PWM motor controller for my son's ride-on Gator. From there, the moon. As my son gets older perhaps we can do some robotics stuff together. So is anyone out there doing anything with controllers, want to chat about it? Anyone want to get into it? It is really neat stuff and these chips are cheap and immensely powerful. How about 40 pins, 16 MIPS, 32K program, eerom, ram etc for $13 for the controller? Or 8 pins, 2K program, eerom, ram, etc for $2. A breadboard, some resistors / LEDs (or even LCDs) and you are off and running. Want to build a sun tracker for your solar array? A robot that will follow a line on the floor? An alarm system for your house? A battle bot? Should be fun. I have a forum on my web site we can use if anyone wants to join the fun. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 25 12:01:20 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 25 Sep 2006 13:01:20 -0400 Subject: [AccessD] Error Code Generator In-Reply-To: <002101c6e0bb$187f4d20$0200a8c0@danwaters> Message-ID: <001f01c6e0c4$3a2b83e0$657aa8c0@m6805> Well, that certainly works for logging all errors. What happens when you simply want to ignore a certain type of error: On err = 15 resume next Or On Err = 15 resume ExitLabel Or you want to do other processing: On err = 15 CallMyFunction When a global error handler exists, then all of the LOGIC associated with handling that error is now out in the error handler function, away from the code where the error is happening. For documentation it helps to have the error cases commented Select case err case 15,16,18 'These cases occure when... Do something for these errors Resume ExitLabel case 97 'This case occurs when... Do something else here Resume next Case else Error Logger 'Call the global error logger to log any cases not specifically trapped above end select There are errors that occur that are simply expected and ignored. Why call the error handler for these cases. A simple resume next is all that is needed. Others require local action (open a recordset, change a null to a 0 etc.) then a resume next. This kind of stuff belongs in the function where the error occurred. What happens when you delete an entire function? All of the error handling is out in your error handler and is accumulating trash. If the error case is in the function then the error handler is deleted along with the function. I have no quibble with having an error LOGGER to call to log any errors that are unexpected and not handled in the local function (until they can be handled there) or even to log expected errors, but to handle every error in your program in one humongus error handler is unwieldy IMHO. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters From artful at rogers.com Mon Sep 25 12:18:18 2006 From: artful at rogers.com (artful at rogers.com) Date: Mon, 25 Sep 2006 10:18:18 -0700 (PDT) Subject: [AccessD] Error Code Generator In-Reply-To: <001f01c6e0c4$3a2b83e0$657aa8c0@m6805> Message-ID: <20060925171818.10048.qmail@web88210.mail.re2.yahoo.com> Good points, all. And presumably the jump to a global handler would cost cycles, as opposed to a local handler. I have no idea how to measure in advance this cost nor the cost in size of 1000 local handlers. I think this has come up before but I cannot recall the answer: is there a function or some other method to capture the procname? I.e. ProcName()? Arthur ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Monday, September 25, 2006 1:01:20 PM Subject: Re: [AccessD] Error Code Generator Well, that certainly works for logging all errors. What happens when you simply want to ignore a certain type of error: On err = 15 resume next Or On Err = 15 resume ExitLabel Or you want to do other processing: On err = 15 CallMyFunction When a global error handler exists, then all of the LOGIC associated with handling that error is now out in the error handler function, away from the code where the error is happening. For documentation it helps to have the error cases commented Select case err case 15,16,18 'These cases occure when... Do something for these errors Resume ExitLabel case 97 'This case occurs when... Do something else here Resume next Case else Error Logger 'Call the global error logger to log any cases not specifically trapped above end select There are errors that occur that are simply expected and ignored. Why call the error handler for these cases. A simple resume next is all that is needed. Others require local action (open a recordset, change a null to a 0 etc.) then a resume next. This kind of stuff belongs in the function where the error occurred. What happens when you delete an entire function? All of the error handling is out in your error handler and is accumulating trash. If the error case is in the function then the error handler is deleted along with the function. I have no quibble with having an error LOGGER to call to log any errors that are unexpected and not handled in the local function (until they can be handled there) or even to log expected errors, but to handle every error in your program in one humongus error handler is unwieldy IMHO. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 25 12:26:23 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 25 Sep 2006 13:26:23 -0400 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <0J6500LMAQ8LON58@vms048.mailsrvcs.net> Message-ID: <002301c6e0c7$ba1a3030$657aa8c0@m6805> >I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. You should see what the controllers can do now. And CHEAP!!! At least for the part itself. The programming / debugging hardware are fairly cheap too, anywhere from $40 up to $250 or so depending on what you want. The software can be free - the dev environment I am using is completely free - or up to $200 or so for a Basic or C compiler. I bought a handful of parts for under $40, a programmer / "ICE" for about 50 that handles all of the parts that ATMEL sells, and the free software. All told, under $100 to get back in and start playing. Yea, I still really need to go buy a prototype board ($20-$30) and a couple of cabinets of resisters / caps / transistors ($50-$100) but you can play without that stuff. Atmel sells what they call the Butterfly which is a demo board http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3146 It is a fully functional board that actually works as it is, but can then be hooked up to a programmer and used as a prototyping board. $20!!! This is a pretty cheap hobby all things considered. >Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. LOL, yea, I know about that. I just loved doing it and want to get back in. I started in electronics back in the 70s when you actually needed an o'scope and soldering iron to fix a computer. Now you throw away an entire motherboard because the skills to troubleshoot it and time required don't make sense any more. I can read schematics though, I even designed circuit boards back in the mid 80s for simple component testing stuff (using OrCad). Since the uC now does most of the work, the circuits are much simpler, and the software is where all the action is. With modern technology, you can design a schematic, route it, create Gerber / drill files, send the files to a board fab house and get back a finished PC ready to stuff. Other than your time to do all that stuff, the cost is quite low. A few hundred for the CAD software for the board design, a few hundred for the uC programming hardware / software / ICE. The PC boards can be as low as a few dollars if they are simple and you order a bunch in one board. A hundred or two can buy a bunch of simple printed circuit cards. Want to design a product to sell on your web site / eBay? $1000 and you are in business. Amazing when you think about it. Of course I haven't done that stuff for almost 20 years. But why not? Something to do in my copious spare time. I am just tired of Access / SQL Server / Databases. I do it, I make good money at it, but I want to be able to do something else in my spare time. Controllers are fun. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 12:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? John, I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. Was a lot of fun though! Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:09 AM To: Tech - Database Advisors Inc.; 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Is anyone into controllers? Well, I did it; I ordered most of the stuff required to build a controller project. Back in 1997 or so, while I was living in Puebla Mexico, I was tasked with building a controller based phone debit card vending machine. I designed it from the ground up, specing the micro-controller (a zworld z8xxx based SBC), using a bill acceptor and a custom built vending hopper to vend the debit cards. The micro was a ready built board with a ton of i/o pins, rs488, rs232 etc. It cost $180 qty 1. The language was a custom 'C' dialect written for ZWorld for use on their boards. In the end, 250 of the machines were produced, about 100 actually went into use around Puebla and in the subway in Mexico DF. Eventually the company went under, I found AccessD (1997) and I have been in this world ever since. It was the most fun I have ever had on a job, and I have been itching to get back in to controllers ever since. This time around I did the research and selected the Atmel family, specifically the AVR line http://www.atmel.com/dyn/products/devices.asp?family_id=607 These are extremely cheap, extremely powerful u-controllers. I purchased a handful of them as well as a programmer / debugger board and a demo board http://www.atmel.com/dyn/products/tools_card.asp?family_id=607 AVR+&family_name=AVR+8%2DBit+RISC+&tool_id=3146 which can be (re) programmed. I briefly considered the PIC family of controllers but they are pretty archaic and once I discovered the AVR I was sold. Life is cool again. Of course it is a learning curve reminiscent of .Net. I have been out of the controller world for many years and have to learn everything from scratch, the chips, the IDE, the 'C' compiler, the programmer / debugger. The tools so far are sooooo cool. There is a free IDE, assembler, 'C' language etc. The emulator actually allows you to watch the program run (I have written my first assembler program, though I don't have hardware yet), watch the registers, I/O pins etc, do all of the things you need to do to program - breakpoints, watchpoints etc. Of course I haven't written 'C' code since 1997... Controllers are a gas though, and once mastered allow you to do so many cool things with very simple circuits and some code. In this case I am looking to build a PWM motor controller for my son's ride-on Gator. From there, the moon. As my son gets older perhaps we can do some robotics stuff together. So is anyone out there doing anything with controllers, want to chat about it? Anyone want to get into it? It is really neat stuff and these chips are cheap and immensely powerful. How about 40 pins, 16 MIPS, 32K program, eerom, ram etc for $13 for the controller? Or 8 pins, 2K program, eerom, ram, etc for $2. A breadboard, some resistors / LEDs (or even LCDs) and you are off and running. Want to build a sun tracker for your solar array? A robot that will follow a line on the floor? An alarm system for your house? A battle bot? Should be fun. I have a forum on my web site we can use if anyone wants to join the fun. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 25 13:07:40 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 25 Sep 2006 14:07:40 -0400 Subject: [AccessD] Error Code Generator In-Reply-To: <20060925171818.10048.qmail@web88210.mail.re2.yahoo.com> Message-ID: <002401c6e0cd$7e7b38c0$657aa8c0@m6805> >I think this has come up before but I cannot recall the answer: is there a function or some other method to capture the procname? I.e. ProcName()? Nope. VBA is an interpreter, executing Pcode. All of the function names are just labels in a jump table, and in fact in an MDE are gone entirely. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, September 25, 2006 1:18 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator Good points, all. And presumably the jump to a global handler would cost cycles, as opposed to a local handler. I have no idea how to measure in advance this cost nor the cost in size of 1000 local handlers. I think this has come up before but I cannot recall the answer: is there a function or some other method to capture the procname? I.e. ProcName()? Arthur ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Monday, September 25, 2006 1:01:20 PM Subject: Re: [AccessD] Error Code Generator Well, that certainly works for logging all errors. What happens when you simply want to ignore a certain type of error: On err = 15 resume next Or On Err = 15 resume ExitLabel Or you want to do other processing: On err = 15 CallMyFunction When a global error handler exists, then all of the LOGIC associated with handling that error is now out in the error handler function, away from the code where the error is happening. For documentation it helps to have the error cases commented Select case err case 15,16,18 'These cases occure when... Do something for these errors Resume ExitLabel case 97 'This case occurs when... Do something else here Resume next Case else Error Logger 'Call the global error logger to log any cases not specifically trapped above end select There are errors that occur that are simply expected and ignored. Why call the error handler for these cases. A simple resume next is all that is needed. Others require local action (open a recordset, change a null to a 0 etc.) then a resume next. This kind of stuff belongs in the function where the error occurred. What happens when you delete an entire function? All of the error handling is out in your error handler and is accumulating trash. If the error case is in the function then the error handler is deleted along with the function. I have no quibble with having an error LOGGER to call to log any errors that are unexpected and not handled in the local function (until they can be handled there) or even to log expected errors, but to handle every error in your program in one humongus error handler is unwieldy IMHO. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Sep 25 13:18:02 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 25 Sep 2006 14:18:02 -0400 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <002301c6e0c7$ba1a3030$657aa8c0@m6805> Message-ID: <0J6500LB8UU2JSGA@vms040.mailsrvcs.net> John, <> Ditto that. I've been hunting for the "next best thing" for a while now. Been at Access since version 1 and business apps for 22 years. It's getting old. At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Was thinking about teaching, but I'd have to go back for my masters. But right now, I've got four kids that are either going through college or will be in the next few years. The bill is already starting to add up enough. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? >I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. You should see what the controllers can do now. And CHEAP!!! At least for the part itself. The programming / debugging hardware are fairly cheap too, anywhere from $40 up to $250 or so depending on what you want. The software can be free - the dev environment I am using is completely free - or up to $200 or so for a Basic or C compiler. I bought a handful of parts for under $40, a programmer / "ICE" for about 50 that handles all of the parts that ATMEL sells, and the free software. All told, under $100 to get back in and start playing. Yea, I still really need to go buy a prototype board ($20-$30) and a couple of cabinets of resisters / caps / transistors ($50-$100) but you can play without that stuff. Atmel sells what they call the Butterfly which is a demo board http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3146 It is a fully functional board that actually works as it is, but can then be hooked up to a programmer and used as a prototyping board. $20!!! This is a pretty cheap hobby all things considered. >Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. LOL, yea, I know about that. I just loved doing it and want to get back in. I started in electronics back in the 70s when you actually needed an o'scope and soldering iron to fix a computer. Now you throw away an entire motherboard because the skills to troubleshoot it and time required don't make sense any more. I can read schematics though, I even designed circuit boards back in the mid 80s for simple component testing stuff (using OrCad). Since the uC now does most of the work, the circuits are much simpler, and the software is where all the action is. With modern technology, you can design a schematic, route it, create Gerber / drill files, send the files to a board fab house and get back a finished PC ready to stuff. Other than your time to do all that stuff, the cost is quite low. A few hundred for the CAD software for the board design, a few hundred for the uC programming hardware / software / ICE. The PC boards can be as low as a few dollars if they are simple and you order a bunch in one board. A hundred or two can buy a bunch of simple printed circuit cards. Want to design a product to sell on your web site / eBay? $1000 and you are in business. Amazing when you think about it. Of course I haven't done that stuff for almost 20 years. But why not? Something to do in my copious spare time. I am just tired of Access / SQL Server / Databases. I do it, I make good money at it, but I want to be able to do something else in my spare time. Controllers are fun. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 12:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? John, I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. Was a lot of fun though! Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:09 AM To: Tech - Database Advisors Inc.; 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Is anyone into controllers? Well, I did it; I ordered most of the stuff required to build a controller project. Back in 1997 or so, while I was living in Puebla Mexico, I was tasked with building a controller based phone debit card vending machine. I designed it from the ground up, specing the micro-controller (a zworld z8xxx based SBC), using a bill acceptor and a custom built vending hopper to vend the debit cards. The micro was a ready built board with a ton of i/o pins, rs488, rs232 etc. It cost $180 qty 1. The language was a custom 'C' dialect written for ZWorld for use on their boards. In the end, 250 of the machines were produced, about 100 actually went into use around Puebla and in the subway in Mexico DF. Eventually the company went under, I found AccessD (1997) and I have been in this world ever since. It was the most fun I have ever had on a job, and I have been itching to get back in to controllers ever since. This time around I did the research and selected the Atmel family, specifically the AVR line http://www.atmel.com/dyn/products/devices.asp?family_id=607 These are extremely cheap, extremely powerful u-controllers. I purchased a handful of them as well as a programmer / debugger board and a demo board http://www.atmel.com/dyn/products/tools_card.asp?family_id=607 AVR+&family_name=AVR+8%2DBit+RISC+&tool_id=3146 which can be (re) programmed. I briefly considered the PIC family of controllers but they are pretty archaic and once I discovered the AVR I was sold. Life is cool again. Of course it is a learning curve reminiscent of .Net. I have been out of the controller world for many years and have to learn everything from scratch, the chips, the IDE, the 'C' compiler, the programmer / debugger. The tools so far are sooooo cool. There is a free IDE, assembler, 'C' language etc. The emulator actually allows you to watch the program run (I have written my first assembler program, though I don't have hardware yet), watch the registers, I/O pins etc, do all of the things you need to do to program - breakpoints, watchpoints etc. Of course I haven't written 'C' code since 1997... Controllers are a gas though, and once mastered allow you to do so many cool things with very simple circuits and some code. In this case I am looking to build a PWM motor controller for my son's ride-on Gator. From there, the moon. As my son gets older perhaps we can do some robotics stuff together. So is anyone out there doing anything with controllers, want to chat about it? Anyone want to get into it? It is really neat stuff and these chips are cheap and immensely powerful. How about 40 pins, 16 MIPS, 32K program, eerom, ram etc for $13 for the controller? Or 8 pins, 2K program, eerom, ram, etc for $2. A breadboard, some resistors / LEDs (or even LCDs) and you are off and running. Want to build a sun tracker for your solar array? A robot that will follow a line on the floor? An alarm system for your house? A battle bot? Should be fun. I have a forum on my web site we can use if anyone wants to join the fun. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Mon Sep 25 13:35:10 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 25 Sep 2006 14:35:10 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: OT: Is anyone into controllers? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E36F1B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3591F@ADGSERVER> I feel your pain, one wife and 2 kids in college now. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 2:18 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] Re: [AccessD] OT: Is anyone into controllers? Importance: Low John, <> Ditto that. I've been hunting for the "next best thing" for a while now. Been at Access since version 1 and business apps for 22 years. It's getting old. At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Was thinking about teaching, but I'd have to go back for my masters. But right now, I've got four kids that are either going through college or will be in the next few years. The bill is already starting to add up enough. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? >I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. You should see what the controllers can do now. And CHEAP!!! At least for the part itself. The programming / debugging hardware are fairly cheap too, anywhere from $40 up to $250 or so depending on what you want. The software can be free - the dev environment I am using is completely free - or up to $200 or so for a Basic or C compiler. I bought a handful of parts for under $40, a programmer / "ICE" for about 50 that handles all of the parts that ATMEL sells, and the free software. All told, under $100 to get back in and start playing. Yea, I still really need to go buy a prototype board ($20-$30) and a couple of cabinets of resisters / caps / transistors ($50-$100) but you can play without that stuff. Atmel sells what they call the Butterfly which is a demo board http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3146 It is a fully functional board that actually works as it is, but can then be hooked up to a programmer and used as a prototyping board. $20!!! This is a pretty cheap hobby all things considered. >Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. LOL, yea, I know about that. I just loved doing it and want to get back in. I started in electronics back in the 70s when you actually needed an o'scope and soldering iron to fix a computer. Now you throw away an entire motherboard because the skills to troubleshoot it and time required don't make sense any more. I can read schematics though, I even designed circuit boards back in the mid 80s for simple component testing stuff (using OrCad). Since the uC now does most of the work, the circuits are much simpler, and the software is where all the action is. With modern technology, you can design a schematic, route it, create Gerber / drill files, send the files to a board fab house and get back a finished PC ready to stuff. Other than your time to do all that stuff, the cost is quite low. A few hundred for the CAD software for the board design, a few hundred for the uC programming hardware / software / ICE. The PC boards can be as low as a few dollars if they are simple and you order a bunch in one board. A hundred or two can buy a bunch of simple printed circuit cards. Want to design a product to sell on your web site / eBay? $1000 and you are in business. Amazing when you think about it. Of course I haven't done that stuff for almost 20 years. But why not? Something to do in my copious spare time. I am just tired of Access / SQL Server / Databases. I do it, I make good money at it, but I want to be able to do something else in my spare time. Controllers are fun. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 12:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? John, I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. Was a lot of fun though! Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:09 AM To: Tech - Database Advisors Inc.; 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Is anyone into controllers? Well, I did it; I ordered most of the stuff required to build a controller project. Back in 1997 or so, while I was living in Puebla Mexico, I was tasked with building a controller based phone debit card vending machine. I designed it from the ground up, specing the micro-controller (a zworld z8xxx based SBC), using a bill acceptor and a custom built vending hopper to vend the debit cards. The micro was a ready built board with a ton of i/o pins, rs488, rs232 etc. It cost $180 qty 1. The language was a custom 'C' dialect written for ZWorld for use on their boards. In the end, 250 of the machines were produced, about 100 actually went into use around Puebla and in the subway in Mexico DF. Eventually the company went under, I found AccessD (1997) and I have been in this world ever since. It was the most fun I have ever had on a job, and I have been itching to get back in to controllers ever since. This time around I did the research and selected the Atmel family, specifically the AVR line http://www.atmel.com/dyn/products/devices.asp?family_id=607 These are extremely cheap, extremely powerful u-controllers. I purchased a handful of them as well as a programmer / debugger board and a demo board http://www.atmel.com/dyn/products/tools_card.asp?family_id=607 AVR+&family_name=AVR+8%2DBit+RISC+&tool_id=3146 which can be (re) programmed. I briefly considered the PIC family of controllers but they are pretty archaic and once I discovered the AVR I was sold. Life is cool again. Of course it is a learning curve reminiscent of .Net. I have been out of the controller world for many years and have to learn everything from scratch, the chips, the IDE, the 'C' compiler, the programmer / debugger. The tools so far are sooooo cool. There is a free IDE, assembler, 'C' language etc. The emulator actually allows you to watch the program run (I have written my first assembler program, though I don't have hardware yet), watch the registers, I/O pins etc, do all of the things you need to do to program - breakpoints, watchpoints etc. Of course I haven't written 'C' code since 1997... Controllers are a gas though, and once mastered allow you to do so many cool things with very simple circuits and some code. In this case I am looking to build a PWM motor controller for my son's ride-on Gator. From there, the moon. As my son gets older perhaps we can do some robotics stuff together. So is anyone out there doing anything with controllers, want to chat about it? Anyone want to get into it? It is really neat stuff and these chips are cheap and immensely powerful. How about 40 pins, 16 MIPS, 32K program, eerom, ram etc for $13 for the controller? Or 8 pins, 2K program, eerom, ram, etc for $2. A breadboard, some resistors / LEDs (or even LCDs) and you are off and running. Want to build a sun tracker for your solar array? A robot that will follow a line on the floor? An alarm system for your house? A battle bot? Should be fun. I have a forum on my web site we can use if anyone wants to join the fun. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Mon Sep 25 13:39:17 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 25 Sep 2006 14:39:17 -0400 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <0J6500LB8UU2JSGA@vms040.mailsrvcs.net> Message-ID: <002801c6e0d1$e8feb0b0$657aa8c0@m6805> >At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Hey! I resemble that remark. At 52 ... Any my kids won't even START college for another 13 years. ;-) I'm not sure that controllers are "the next best thing" though they do offer the ability to create a product that the masses might buy. I am looking at a controller that the enthusiasts might buy. You wouldn't believe what these grown men are doing to their kid's ride-on toys. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 2:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? John, <> Ditto that. I've been hunting for the "next best thing" for a while now. Been at Access since version 1 and business apps for 22 years. It's getting old. At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Was thinking about teaching, but I'd have to go back for my masters. But right now, I've got four kids that are either going through college or will be in the next few years. The bill is already starting to add up enough. Jim. From markamatte at hotmail.com Mon Sep 25 13:53:29 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 25 Sep 2006 18:53:29 +0000 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <002801c6e0d1$e8feb0b0$657aa8c0@m6805> Message-ID: >You wouldn't believe what >these grown men are doing to their kid's ride-on toys. ;-) lol...I might believe it. Mark >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] OT: Is anyone into controllers? >Date: Mon, 25 Sep 2006 14:39:17 -0400 > > >At 46, I am the point where if I don't do something soon, I'm going to >have >a hard time making a switch. > >Hey! I resemble that remark. > >At 52 ... > >Any my kids won't even START college for another 13 years. ;-) > >I'm not sure that controllers are "the next best thing" though they do >offer >the ability to create a product that the masses might buy. I am looking at >a controller that the enthusiasts might buy. You wouldn't believe what >these grown men are doing to their kid's ride-on toys. ;-) > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, September 25, 2006 2:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Is anyone into controllers? > >John, > ><money at it, but I want to be able to do something else in my spare time.>> > > Ditto that. I've been hunting for the "next best thing" for a while >now. >Been at Access since version 1 and business apps for 22 years. It's >getting >old. At 46, I am the point where if I don't do something soon, I'm >going >to have a hard time making a switch. > > Was thinking about teaching, but I'd have to go back for my masters. >But >right now, I've got four kids that are either going through college or will >be in the next few years. The bill is already starting to add up >enough. > >Jim. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Sep 25 14:08:31 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 25 Sep 2006 12:08:31 -0700 Subject: [AccessD] Loadfromtext In-Reply-To: References: <17724746D360394AA3BFE5B8D40A9C1B0113DBD1@MARLOW_MAIN2.marlow.com> <4517F445.3060705@torchlake.com> Message-ID: <4518292F.4080308@shaw.ca> Here is some shoddy code I wrote to do this in an MDA Essentially you just insert the high level directory name of all the files in the first call, it then reads through the underlying directories placing all the filenames in a a collection, it then parses through the collection and does a loadfromtext verifying against an array. Dim colMyList As New Collection Sub testfind(strdirpath As String) Dim strDir As String Dim strDirTemp As String Dim strFile As String Dim strFinda As String Dim strFileName As String Dim i As Long Dim ii As Long Dim J As Long Debug.Print colMyList.Count 'clear collection For i = 1 To colMyList.Count - 1 colMyList.Remove (i) Next 'strDirPath = "C:\Documents and Settings\marty\Local Settings\Temp\MDB_Objects\Saveastext2003\" 'strDirPath = "C:\Documents and Settings\marty\Local Settings\Temp\Copy of Northwind\" FindSub strdirpath, "*txt" Dim strtemp As String Debug.Print "count = " & colMyList.Count For i = colMyList.Count - 1 To 1 Step -1 strtemp = fURLWithoutExtension(colMyList(i)) strFinda = fstrReverse(strtemp) 'split out sub directory name like "forms" 'Find the first occurance of the '\' in the FileName string J = InStr(1, strFinda, "\", vbTextCompare) strDirTemp = (Right$(strFinda, Len(strFinda) - J)) strFile = fstrReverse(Left$(strFinda, J - 1)) 'Find the second occurance of the '\' in the FileName string J = InStr(1, strDirTemp, "\", vbTextCompare) strDir = fstrReverse(Left$(strDirTemp, J - 1)) Dim arrVariant As Variant arrVariant = createobjArray For ii = 1 To 6 If arrVariant(ii) = strDir Then Debug.Print arrVariant(ii), strFile, strDir Debug.Print strdirpath Dim strcopy As String strcopy = strdirpath & strDir & "\" & strFile & ".txt" Debug.Print strcopy LoadFromText ii, strFile, strdirpath & strDir & "\" & strFile & ".txt" End If Next ii Next i End Sub Sub FindSub(strStart As String, strFindWhat As String) Dim arrFindDir() As String Dim strFind As String Dim i As Long Debug.Print strStart ChDrive (Left(strStart, 3)) ChDir (strStart) Call DirSub(strFindWhat, strStart) strFind = Dir("*.*", vbDirectory) i = 0 Do Until strFind = "" ReDim Preserve arrFindDir(i) arrFindDir(i) = strFind i = i + 1 strFind = Dir() Loop For i = 0 To UBound(arrFindDir) If Dir(arrFindDir(i), vbNormal) = "" And Left(arrFindDir(i), 1) <> "." Then ' Recursive call Call FindSub(strStart & arrFindDir(i) & "\", strFindWhat) ChDir (strStart) End If Next End Sub Sub DirSub(strFindWhat, strStart) Dim strFindfile As String strFindfile = Dir(strFindWhat, vbNormal) Do While strFindfile <> "" '.lstFiles.AddItem strStart & strFindfile colMyList.Add strStart & strFindfile strFindfile = Dir() Loop End Sub Function createobjArray() As Variant Dim objarr() As String Dim i As Long ReDim objarr(1 To 6) objarr(acForm) = "Forms" objarr(acMacro) = "Macros" objarr(acReport) = "Reports" objarr(acQuery) = "Queries" objarr(acModule) = "Modules" objarr(6) = "DataAccessPages" For i = 1 To UBound(objarr) Debug.Print objarr(i) Next createobjArray = objarr() End Function Function fffURLExtension(strFile As String) As String Dim J As Long Dim strURL 'could use InStrRev but not available in 97 strURL = fstrReverse(strFile) 'Find the url name without extension 'Find the first occurance of the '.' in the FileName string J = InStr(1, strURL, ".", vbTextCompare) If J = 0 Then 'URL name does not contain a '.' character fffURLExtension = strURL Else 'URL name does contain the '.' character fffURLExtension = Left$(strURL, J - 1) End If 'switch reverse back fffURLExtension = fstrReverse(fffURLExtension) End Function Function fffURLWithoutExtension(strFile As String) As String Dim J As Long Dim strURL 'could use InStrRev but not available in 97 strURL = fstrReverse(strFile) 'Find the url name without extension 'Find the first occurance of the '.' in the FileName string J = InStr(1, strURL, ".", vbTextCompare) If J = 0 Then 'URL name does not contain a '.' character fffURLWithoutExtension = strURL Else 'URL name does contain the '.' character fffURLWithoutExtension = Right$(strURL, Len(strURL) - J) End If 'switch reverse back fffURLWithoutExtension = fstrReverse(fffURLWithoutExtension) End Function Function fffstrReverse(strInput As String) As String ' REVERSES A STRING, SPACES & ALL Dim i As Integer For i = Len(strInput) To 1 Step -1 fffstrReverse = fffstrReverse & Mid(strInput, i, 1) Next i End Function Sub listcol() Dim i As Long For i = 1 To colMyList.Count - 1 Debug.Print colMyList.Item(i) Next End Sub Martin Reid wrote: >I want to loop over a folder contain X number of text files. Any ideas. For example > >Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" > >Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. > >I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22/09/2006 > > -- Marty Connelly Victoria, B.C. Canada From DWUTKA at marlow.com Mon Sep 25 14:36:57 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 25 Sep 2006 14:36:57 -0500 Subject: [AccessD] Error Code Generator Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DCD7@MARLOW_MAIN2.marlow.com> I don't get it either. To do centralized tasks, it only makes sense to have centralized code! Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 3:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Sep 25 14:38:35 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 25 Sep 2006 14:38:35 -0500 Subject: [AccessD] Error Code Generator Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DCD8@MARLOW_MAIN2.marlow.com> Okay, I think we are talking two different things. I agree that any function may require it's own unique handler, to handle usual cases. But for the generic tasks, such as displaying or recording an error, it only makes sense to have a global/centralized process. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, September 22, 2006 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Art, A "non-local" way simply cannot handle all the parts required. A local error handler knows that procedureA is about opening a recordset while procedureB is about opening a form, while ProcedureC is about calculating the cubic volume of a lake. Very different problems, very different errors that will occur. At the least the local error handler will have a case statement that has error values added to the case as the errors are discovered, but may indeed call a global error logger / emailer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 4:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Sep 25 14:49:43 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 25 Sep 2006 14:49:43 -0500 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DCDF@MARLOW_MAIN2.marlow.com> Open Excel, click Data. Select Import External Data. Select New Database Query. Select MS Access, then the table or query you want. Go through the wizard. When you are done, the data is in excel. Right click on the data, and select 'Data Range Properties'. This gives you all sorts of options, including how the data is 'refreshed'. Now, as far as how to work the parameters, well, that's up to you. You could put the parameters into a table, and have a form in Excel that allows them to change the parameters (and then refresh the data). It depends on what the parameters are, or how they are going to change. (ie, lets say you some people want data for this month, some for next month. Instead of having them enter a month, just create two queries, one for this month, one for next month. Put the linked data either into different sheets, or different workbooks. It's going to depend on what parameters are really necessary. You could also have them run a make table query, and just link the table. Drew -----Original Message----- From: Tina Norris Fields [mailto:tinanfields at torchlake.com] Sent: Monday, September 25, 2006 10:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Graphs from Access Data - Ideas, Please Hi Drew, Yes, maybe - if I do it that way, let me think how I'd go about it. I would create my Access queries with their date-range, wells, or wellfield parameters to get my data - create my Excel spreadsheets and graphs for the several different data combinations. Then import into Excel from the updated Access queries as desired. Yes? The queries are all parameter queries, getting their parameters from combo boxes and calendar controls on a form - so, I'm thinking to use make-table queries to provide standard consistent data sources for the Excel spreadsheets. Most of the users in this client office do know something about Excel, but virtually nothing about Access. For that reason I am looking for ways to provide them with buttons and drop-down selection lists to generate the data set they want to see graphed, then a quick easy leap of some kind to the Excel spreadsheets and graphs of the selected data. On the Excel side I would like to provide a button to run the macro that generates the graph, or have the data come directly into named ranges that are already set up as the source for my graph. I don't yet see how to import fresh data from the Access query-made-table into Excel without overwriting any named ranges I had established - and, thereby, losing the sources for my graph series. I like the simplicity of your suggestion. Would you share more of your thoughts, please? Thank you, Tina DWUTKA at marlow.com wrote: > Why automate at all? Excel allows you to place external data on a > spreadsheet, and you can have the sheet prompt to 'refresh' the data > whenever excel is opened. It's pretty straight forward, and wouldn't > require using any code. (Hey, wait, am I advocating a non-code approach? > William may take away my 'Code Boy' title!) > > Drew > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Sep 25 14:54:41 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 25 Sep 2006 14:54:41 -0500 Subject: [AccessD] Loadfromtext Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DCE1@MARLOW_MAIN2.marlow.com> Dim strTemp as string strTemp=Dir("C:\forms\*.txt") Do until strTemp="" Select Case Ucase(Left(strTemp,4)) Case "FORM" Application.LoadFromText acForm,"test","C:\forms\" & strtemp Case "REPO" Application.LoadFromText acReport,"test","C:\forms\" & strtemp ...... .... End Select Strtemp=Dir Loop Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Monday, September 25, 2006 10:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Loadfromtext I want to loop over a folder contain X number of text files. Any ideas. For example Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Jim.Hale at FleetPride.com Mon Sep 25 15:01:42 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 25 Sep 2006 15:01:42 -0500 Subject: [AccessD] Loadfromtext Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFBA@corp-es01.fleetpride.com> Here is how I do it HTH Jim Hale Public Function UploadPlan(Filespec As String) As Boolean 'Retrieves Plans from Excel workbooks Dim filecount As Integer, i As Integer Dim fm As Form DoCmd.SetWarnings False Set fm = Forms!frmselect ' Get file spec newpath = Pathnamefile(Filespec) newpath = newpath & "\Completed\" 'add location of completed directory ' Extract the path and change directory If newpath <> "" Then On Error Resume Next ChDir newpath If Err.Number = 76 Then MsgBox "Directory " & newpath & " is not valid", 16, "Error" Exit Function End If Else: Exit Function End If On Error GoTo Err_UploadPlan DoCmd.Hourglass True ' See if any files exist foundfile = Dir(newpath) If foundfile = "" Then MsgBox "Cannot find file:" & Chr(13) & Filespec DoCmd.Hourglass False Exit Function End If ' Get first file name filecount = 1 ReDim Preserve Files(filecount) Files(filecount) = foundfile ' Get other file names, if any Do While foundfile <> "" foundfile = Dir() If foundfile <> "" Then filecount = filecount + 1 ReDim Preserve Files(filecount) Files(filecount) = foundfile End If Loop 'If 1 = 2 Then If Excel_is_running = True Then Set appexcel = GetObject(, "Excel.Application") Else Set appexcel = New Excel.Application End If ' Loop through all files and process them For i = 1 To filecount fm.lblPathname.Visible = True fm.lblPathname.Caption = "Processing: " & Files(i) fm.Repaint 'Call procedure that opens workbooks and extracts Budget Call ProcessFiles(newpath, Files(i)) Next i UploadPlan = True fm.lblPathname.Visible = False The_End: DoCmd.SetWarnings True appexcel.Quit If Not (appexcel Is Nothing) Then Set appexcel = Nothing If Not (rstbase Is Nothing) Then rstbase.Close: Set rstbase = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing If Not (fm Is Nothing) Then Set fm = Nothing DoCmd.Hourglass False Exit Function Err_UploadPlan: MsgBox Err.Description UploadPlan = False Resume The_End End Function -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Monday, September 25, 2006 10:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Loadfromtext I want to loop over a folder contain X number of text files. Any ideas. For example Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Jim.Hale at FleetPride.com Mon Sep 25 15:12:09 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 25 Sep 2006 15:12:09 -0500 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFBB@corp-es01.fleetpride.com> Tina, What I generally do is 1) Save the user's selections (date parameters, etc.) selected from list boxes, spinners, or whatever in the worksheet. 2) Run update queries that update Access tables based on these selections. 3) Run select queries with joins (or where clauses using subqueries) based on the tables in 1) 4) Copy the resulting recordset into a hidden sheet that can be referenced by the graph. 5) If desired, ranges can be made expandable to accomodate changes in the number of records. I particularly recommend you look into pivot charts which give the user flexibility to change the displaye data after it has been downloaded. I use DAO when the data comes from Access but it can be downloaded directly from other sources, such as an AS400, using ADO. I tried to post sample code but the list rejected it as too long ;-( Jim Hale -----Original Message----- From: Tina Norris Fields [mailto:tinanfields at torchlake.com] Sent: Friday, September 22, 2006 10:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Hi All, Client is an oil and gas producer. Daily data of several kinds are reported from the field on a daily basis. Client would like to be able to see graphs showing, for instance, daily production for well A for a selectable time range (the last month, this last week, this last quarter, whatever) - he would also like to be able to see daily production for two or three wells at a time on the same graph, or for all the wells in a given oilfield (individually or as a total). Once a query is devised for selecting the date range, the specific wells, or the complete oilfield (separately or in combination), I want to export the selected data to Excel and draw the appropriate graphs. And, I want to do all that fairly automatically. The client would like users to be able to tweak data in Excel for the graph, if need be - as in to exclude outlying data points - but, of course, not alter the actual data captured in the Access data table. So, I am thinking of using a make-table query and sending the data from the "made" table to Excel. Is this a good idea? Some of you have done some automation with Access and Excel, so I would appreciate knowing what the pitfalls are that I need to be careful of. I am thinking to build essentially template Excel files with already configured graphs for the choices that are going to be offered to the user - which well or wells, or which well-field, and for what date range? Does this sound like a good idea? With great care, I believe I can code I really would like your creative and technical advice, here - so, all ideas are welcome. Thanks, Tina *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From cfoust at infostatsystems.com Mon Sep 25 16:09:42 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Sep 2006 14:09:42 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local> Message-ID: Version 3.0 of the Framework is in beta, indeed and will be released ... That was as far as they committed. LOL. I recently saw it demonstrated and fell madly in love with some of the nifty new capabilities. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, September 22, 2006 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 25 17:08:32 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 25 Sep 2006 17:08:32 -0500 Subject: [AccessD] Error Code Generator In-Reply-To: <24212930.1159204354644.JavaMail.root@sniper10> Message-ID: <001b01c6e0ef$24d4f6e0$0200a8c0@danwaters> Hi John! Well - I did say that I can set up a Select Case within the procedure to handle the errors that are unique to that procedure or function. What you showed below is exactly what I do. As for the number of cycles, I probably average about 1 error per week for a mature system. So - it's not a big deal. The primary purpose of the global error handler is to handle unexpected errors in a way that provides me the information to begin to know what to do next. I don't think it's unwieldy, just practical. By the way, I looked at my example again, and it looks like I have a procedure to do nothing but trap errors, with one of these for every other procedure or function! No! The error handling within each procedure or function starts at the Continue statement EH: Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Well, that certainly works for logging all errors. What happens when you simply want to ignore a certain type of error: On err = 15 resume next Or On Err = 15 resume ExitLabel Or you want to do other processing: On err = 15 CallMyFunction When a global error handler exists, then all of the LOGIC associated with handling that error is now out in the error handler function, away from the code where the error is happening. For documentation it helps to have the error cases commented Select case err case 15,16,18 'These cases occure when... Do something for these errors Resume ExitLabel case 97 'This case occurs when... Do something else here Resume next Case else Error Logger 'Call the global error logger to log any cases not specifically trapped above end select There are errors that occur that are simply expected and ignored. Why call the error handler for these cases. A simple resume next is all that is needed. Others require local action (open a recordset, change a null to a 0 etc.) then a resume next. This kind of stuff belongs in the function where the error occurred. What happens when you delete an entire function? All of the error handling is out in your error handler and is accumulating trash. If the error case is in the function then the error handler is deleted along with the function. I have no quibble with having an error LOGGER to call to log any errors that are unexpected and not handled in the local function (until they can be handled there) or even to log expected errors, but to handle every error in your program in one humongus error handler is unwieldy IMHO. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 25 17:25:49 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 25 Sep 2006 17:25:49 -0500 Subject: [AccessD] Switching to VB.net In-Reply-To: <32907935.1159219071870.JavaMail.root@sniper25> Message-ID: <002101c6e0f1$8e654720$0200a8c0@danwaters> What are the 'nifty new capabilities'? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 25, 2006 4:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net Version 3.0 of the Framework is in beta, indeed and will be released ... That was as far as they committed. LOL. I recently saw it demonstrated and fell madly in love with some of the nifty new capabilities. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, September 22, 2006 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 25 19:26:51 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Sep 2006 17:26:51 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <002101c6e0f1$8e654720$0200a8c0@danwaters> Message-ID: You expect me to REMEMBER?? Atlas/AJAX are impressive. There are new interactive designers coming. I haven't had time to even review the DVD they gave us because we're trying to get a beta out by Thursday, so don't expect coherence from me this week! There are 4 developers madly scrambling to make things work the way they're specified TODAY (never mind how they were specified originally or even yesterday) and a fun time is being had by all. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net What are the 'nifty new capabilities'? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 25, 2006 4:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net Version 3.0 of the Framework is in beta, indeed and will be released ... That was as far as they committed. LOL. I recently saw it demonstrated and fell madly in love with some of the nifty new capabilities. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, September 22, 2006 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 25 23:13:26 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 26 Sep 2006 00:13:26 -0400 Subject: [AccessD] Sybase SQL export to Access References: Message-ID: <001a01c6e122$2ae27660$153ce944@50NM721> ...I have a client database that uses a Sybase SQL db ...its a single table ...I need to export it to a text file or mdb for use in an Access mdb ...I of course don't have Sybase or access there to else I'd just use the bcp utility myself. ...I played with using the bcp.exe command line utility from SQL Server hoping that the sql might be the same as the Sybase SQL bcp.exe utility ...but of course it doesn't work. ...anyone here have the tools to do this? ...or ideas on how I can do it myself would be preferable since I'll need to import the data quarterly? ...if anyone wants to look at the file, e me off line and I'll send you the ftp dl instructions ...my host doesn't allow anonymous ftp access. William Hindman From Gustav at cactus.dk Tue Sep 26 04:12:38 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 26 Sep 2006 11:12:38 +0200 Subject: [AccessD] Loadfromtext Message-ID: Hi Martin You could do this a bit differently by just reading the first four lines of every file found in that directory ignoring the filenames. Except for modules it is quite easy from these four lines to determine which kind of object the file contains. Module files are just write-outs of the modules, but if you are a neat programmer, the first line read would be Option Explicit. Of course, if your directory contains nothing but files with saved objects, any file not parsable for an object other than a module will be a module. /gustav Martin Reid wrote: >I want to loop over a folder contain X number of text files. Any ideas. For example > >Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" > >Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. > >I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast From mikedorism at verizon.net Tue Sep 26 06:51:27 2006 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 26 Sep 2006 07:51:27 -0400 Subject: [AccessD] Sybase SQL export to Access In-Reply-To: <001a01c6e122$2ae27660$153ce944@50NM721> Message-ID: <000001c6e162$1a942980$2f01a8c0@dorismanning> I am interested in this as well, William, as I have a similar project coming up. If you figure it out on your own, please share. I will do the same. Doris Manning mikedorism at verizon.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, September 26, 2006 12:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Sybase SQL export to Access ...I have a client database that uses a Sybase SQL db ...its a single table ...I need to export it to a text file or mdb for use in an Access mdb ...I of course don't have Sybase or access there to else I'd just use the bcp utility myself. ...I played with using the bcp.exe command line utility from SQL Server hoping that the sql might be the same as the Sybase SQL bcp.exe utility ...but of course it doesn't work. ...anyone here have the tools to do this? ...or ideas on how I can do it myself would be preferable since I'll need to import the data quarterly? ...if anyone wants to look at the file, e me off line and I'll send you the ftp dl instructions ...my host doesn't allow anonymous ftp access. William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Tue Sep 26 13:59:48 2006 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 26 Sep 2006 13:59:48 (MET DST) Subject: [AccessD] capitals in query Message-ID: <200609261159.k8QBxmR9022487@mailhostC.plex.net> Hello Group, how can i search only for capitals in a query? i need ER not er. Thanks Pedro From Gustav at cactus.dk Tue Sep 26 07:42:49 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 26 Sep 2006 14:42:49 +0200 Subject: [AccessD] capitals in query Message-ID: Hi Pedro You can use Where StrComp([YourField], "ER", 0) = 0 /gustav >>> pedro at plex.nl 26-09-2006 13:59:48 >>> Hello Group, how can i search only for capitals in a query? i need ER not er. Thanks Pedro From stuart at lexacorp.com.pg Tue Sep 26 07:48:12 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 26 Sep 2006 22:48:12 +1000 Subject: [AccessD] capitals in query In-Reply-To: <200609261159.k8QBxmR9022487@mailhostC.plex.net> References: <200609261159.k8QBxmR9022487@mailhostC.plex.net> Message-ID: <4519AE2C.6391.2C96EFA@stuart.lexacorp.com.pg> On 26 Sep 2006 at 13:59, pedro at plex.nl wrote: > how can i search only for capitals in a query? > i need ER not er. You need to use strComp to do a binary comparison As a one off: SELECT myText FROM myTable WHERE StrComp("ER",Mid$([myText],InStr([myText],"ER"),2),0)=False; Here's a general function I've just knocked up (must stick this one in my toolbox ): Function ExactMatch(SearchStr As String, Matchstr As String) As Boolean ExactMatch = StrComp(Matchstr, Mid$(SearchStr, _ InStr(SearchStr, Matchstr), Len(Matchstr)), 0) = 0 End Function Now you can make your query: SELECT myText FROM myTable WHERE ExactMatch([mytext],"ER")=True -- Stuart From pedro at plex.nl Tue Sep 26 15:30:18 2006 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 26 Sep 2006 15:30:18 (MET DST) Subject: [AccessD] capitals in query Message-ID: <200609261330.k8QDUICp026879@mailhostC.plex.net> Hello Gustav and Stuart, thanks for your help. It is working, but i forgot to tell that most record where i need to filter on ER, have other tekst in the record. So i would need *ER*, but this isn't functioning in your query. Any idea's Pedro In antwoord op: > From: "Gustav Brock" > To: > Date: Tue, 26 Sep 2006 14:42:49 +0200 > Subject: Re: [AccessD] capitals in query > > > Hi Pedro > > You can use > > Where > StrComp([YourField], "ER", 0) = 0 > > /gustav > > > >>> pedro at plex.nl 26-09-2006 13:59:48 >>> > Hello Group, > > how can i search only for capitals in a query? > i need ER not er. > > Thanks > Pedro > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From dwaters at usinternet.com Tue Sep 26 08:35:45 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 26 Sep 2006 08:35:45 -0500 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switching to VB.net) In-Reply-To: <6521738.1159230756693.JavaMail.root@sniper12> Message-ID: <001401c6e170$ac073ca0$0200a8c0@danwaters> I briefly looked at AJAX last week, and ended up finding a program called ThinWire. This program, written in JAVA and still in beta, has a claim that it can have a GUI just like a Client-Server app, but works in a web browser. Perhaps the next .net framework is headed in that direction. It would make sense . . . Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net You expect me to REMEMBER?? Atlas/AJAX are impressive. There are new interactive designers coming. I haven't had time to even review the DVD they gave us because we're trying to get a beta out by Thursday, so don't expect coherence from me this week! There are 4 developers madly scrambling to make things work the way they're specified TODAY (never mind how they were specified originally or even yesterday) and a fun time is being had by all. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net What are the 'nifty new capabilities'? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 25, 2006 4:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net Version 3.0 of the Framework is in beta, indeed and will be released ... That was as far as they committed. LOL. I recently saw it demonstrated and fell madly in love with some of the nifty new capabilities. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, September 22, 2006 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at verizon.net Tue Sep 26 08:46:17 2006 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 26 Sep 2006 09:46:17 -0400 Subject: [AccessD] capitals in query In-Reply-To: <200609261330.k8QDUICp026879@mailhostC.plex.net> Message-ID: <000301c6e172$2802eec0$2f01a8c0@dorismanning> If there is other text, try using INSTR(). Mike & Doris Manning mikedorism at verizon.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: Tuesday, September 26, 2006 11:30 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] capitals in query Hello Gustav and Stuart, thanks for your help. It is working, but i forgot to tell that most record where i need to filter on ER, have other tekst in the record. So i would need *ER*, but this isn't functioning in your query. Any idea's Pedro In antwoord op: > From: "Gustav Brock" > To: > Date: Tue, 26 Sep 2006 14:42:49 +0200 > Subject: Re: [AccessD] capitals in query > > > Hi Pedro > > You can use > > Where > StrComp([YourField], "ER", 0) = 0 > > /gustav > > > >>> pedro at plex.nl 26-09-2006 13:59:48 >>> > Hello Group, > > how can i search only for capitals in a query? > i need ER not er. > > Thanks > Pedro > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Sep 26 08:53:26 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 26 Sep 2006 15:53:26 +0200 Subject: [AccessD] capitals in query Message-ID: Hi Pedro Then you may use: Where InStr(1, [YourField], "ER", 0) > 0 /gustav >>> pedro at plex.nl 26-09-2006 15:30:18 >>> Hello Gustav and Stuart, thanks for your help. It is working, but i forgot to tell that most record where i need to filter on ER, have other tekst in the record. So i would need *ER*, but this isn't functioning in your query. Any idea's Pedro In antwoord op: > From: "Gustav Brock" > To: > Date: Tue, 26 Sep 2006 14:42:49 +0200 > Subject: Re: [AccessD] capitals in query > > > Hi Pedro > > You can use > > Where > StrComp([YourField], "ER", 0) = 0 > > /gustav > > > >>> pedro at plex.nl 26-09-2006 13:59:48 >>> > Hello Group, > > how can i search only for capitals in a query? > i need ER not er. > > Thanks > Pedro From tinanfields at torchlake.com Tue Sep 26 09:02:44 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Tue, 26 Sep 2006 10:02:44 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFBB@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFBB@corp-es01.fleetpride.com> Message-ID: <45193304.4010805@torchlake.com> Jim, Thank you - I would like to see that code. Would you be willing to email it to me off-list? Thanks for everything, Tina Hale, Jim wrote: > Tina, > What I generally do is > 1) Save the user's selections (date parameters, etc.) selected from list > boxes, spinners, or whatever in the worksheet. > 2) Run update queries that update Access tables based on these selections. > 3) Run select queries with joins (or where clauses using subqueries) based > on the tables in 1) > 4) Copy the resulting recordset into a hidden sheet that can be referenced > by the graph. > 5) If desired, ranges can be made expandable to accomodate changes in the > number of records. > > I particularly recommend you look into pivot charts which give the user > flexibility to change the displaye data after it has been downloaded. I use > DAO when the data comes from Access but it can be downloaded directly from > other sources, such as an AS400, using ADO. I tried to post sample code but > the list rejected it as too long ;-( > > Jim Hale > > From jimdettman at verizon.net Tue Sep 26 09:09:53 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 26 Sep 2006 10:09:53 -0400 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <002801c6e0d1$e8feb0b0$657aa8c0@m6805> Message-ID: <0J6700JX5E0HVF35@vms044.mailsrvcs.net> John, <> Actually I probably would. One thing I would have loved to get involved in some way was the DARPA desert challenge. Teams had to build an autonomous vehicle that could travel the 142 mile desert course. Another item that appeals to me is the proof of concept ideas that NASA is looking at for a space elevator. They want to see various ideas for a climber. He's a blurb on it: http://news.com.com/NASA+hosting+space+elevator+competition/2100-11397_3-590 7569.html Of course I'm not sitting here with millions in my back pocket, but it's cool to think about anyway. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 2:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? >At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Hey! I resemble that remark. At 52 ... Any my kids won't even START college for another 13 years. ;-) I'm not sure that controllers are "the next best thing" though they do offer the ability to create a product that the masses might buy. I am looking at a controller that the enthusiasts might buy. You wouldn't believe what these grown men are doing to their kid's ride-on toys. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 2:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? John, <> Ditto that. I've been hunting for the "next best thing" for a while now. Been at Access since version 1 and business apps for 22 years. It's getting old. At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Was thinking about teaching, but I'd have to go back for my masters. But right now, I've got four kids that are either going through college or will be in the next few years. The bill is already starting to add up enough. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Sep 26 09:12:51 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 26 Sep 2006 10:12:51 -0400 Subject: [AccessD] Sybase SQL export to Access References: <000001c6e162$1a942980$2f01a8c0@dorismanning> Message-ID: <000f01c6e175$daca92d0$153ce944@50NM721> ...absolutely :) William Hindman ----- Original Message ----- From: "Mike & Doris Manning" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, September 26, 2006 7:51 AM Subject: Re: [AccessD] Sybase SQL export to Access >I am interested in this as well, William, as I have a similar project >coming > up. If you figure it out on your own, please share. I will do the same. > > Doris Manning > mikedorism at verizon.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Tuesday, September 26, 2006 12:13 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Sybase SQL export to Access > > ...I have a client database that uses a Sybase SQL db ...its a single > table > ...I need to export it to a text file or mdb for use in an Access mdb > > ...I of course don't have Sybase or access there to else I'd just use the > bcp utility myself. > > ...I played with using the bcp.exe command line utility from SQL Server > hoping that the sql might be the same as the Sybase SQL bcp.exe utility > ...but of course it doesn't work. > > ...anyone here have the tools to do this? ...or ideas on how I can do it > myself would be preferable since I'll need to import the data quarterly? > > ...if anyone wants to look at the file, e me off line and I'll send you > the > ftp dl instructions ...my host doesn't allow anonymous ftp access. > > William Hindman > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Tue Sep 26 09:22:50 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 26 Sep 2006 10:22:50 -0400 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) References: <001401c6e170$ac073ca0$0200a8c0@danwaters> Message-ID: <001301c6e177$3facb9c0$153ce944@50NM721> ...its simple math to me ...the net is 70-100 times slower than a LAN ...until we get a next generation net with 100mbps speeds, no browser app can have a gui "just like" a client server app ...the best we can hope for is a thin client that works reliably and transparently with disconnected record sets ...and thin clients are inherently single app ...which isn't good enough by far for too many of my needs. ...imnsho, this is the reason behind MS pursuing dotNet with such tenacity when they already had a pretty good thin client in Terminal Server. William Hindman ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, September 26, 2006 9:35 AM Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) >I briefly looked at AJAX last week, and ended up finding a program called > ThinWire. This program, written in JAVA and still in beta, has a claim > that > it can have a GUI just like a Client-Server app, but works in a web > browser. > > > Perhaps the next .net framework is headed in that direction. It would > make > sense . . . > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > You expect me to REMEMBER?? > > Atlas/AJAX are impressive. There are new interactive designers coming. > I haven't had time to even review the DVD they gave us because we're > trying to get a beta out by Thursday, so don't expect coherence from me > this week! There are 4 developers madly scrambling to make things work > the way they're specified TODAY (never mind how they were specified > originally or even yesterday) and a fun time is being had by all. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, September 25, 2006 3:26 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > What are the 'nifty new capabilities'? > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, September 25, 2006 4:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > Version 3.0 of the Framework is in beta, indeed and will be released ... > That was as far as they committed. LOL. I recently saw it demonstrated > and fell madly in love with some of the nifty new capabilities. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Friday, September 22, 2006 8:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > I was forced to go the C# route., however Vb.net or C#, the languages > are pretty irrelevent I think. > As others have said there are just soooo many damn options. > You can easily find yourself endlessly refactoring - but maybe its just > me...lol. > The framework is enormous, and getting bigger. > I believe v3 is in beta... > > What I found helpful was the Nettiers templates (free) > http://www.nettiers.com/ which you use with CodeSmith (30 day trial) > http://codesmithtools.com/ and the MS Application blocks (free) > http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 > e25-94e2-91be63527327 > > JC, you will love this stuff. > > I'm just hoping none of my code ends up here... > http://thedailywtf.com/Default.aspx > > cheers > > Michael M > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Tue Sep 26 09:22:53 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 26 Sep 2006 07:22:53 -0700 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) In-Reply-To: <001401c6e170$ac073ca0$0200a8c0@danwaters> Message-ID: AJAX does the same thing. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 26, 2006 6:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) I briefly looked at AJAX last week, and ended up finding a program called ThinWire. This program, written in JAVA and still in beta, has a claim that it can have a GUI just like a Client-Server app, but works in a web browser. Perhaps the next .net framework is headed in that direction. It would make sense . . . Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net You expect me to REMEMBER?? Atlas/AJAX are impressive. There are new interactive designers coming. I haven't had time to even review the DVD they gave us because we're trying to get a beta out by Thursday, so don't expect coherence from me this week! There are 4 developers madly scrambling to make things work the way they're specified TODAY (never mind how they were specified originally or even yesterday) and a fun time is being had by all. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net What are the 'nifty new capabilities'? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 25, 2006 4:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net Version 3.0 of the Framework is in beta, indeed and will be released ... That was as far as they committed. LOL. I recently saw it demonstrated and fell madly in love with some of the nifty new capabilities. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, September 22, 2006 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Sep 26 09:54:57 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 26 Sep 2006 10:54:57 -0400 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was:Switchingto VB.net) References: Message-ID: <005601c6e17b$bc696a90$153ce944@50NM721> ...AJAX is a step forward ...really a combination of existing web technologies ...but its nowhere near putting a desktop gui experience inside a browser ...imnsho of course :) William Hindman ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, September 26, 2006 10:22 AM Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was:Switchingto VB.net) > AJAX does the same thing. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 26, 2006 6:36 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: > Switchingto VB.net) > > I briefly looked at AJAX last week, and ended up finding a program > called ThinWire. This program, written in JAVA and still in beta, has a > claim that it can have a GUI just like a Client-Server app, but works in > a web browser. > > > Perhaps the next .net framework is headed in that direction. It would > make sense . . . > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > You expect me to REMEMBER?? > > Atlas/AJAX are impressive. There are new interactive designers coming. > I haven't had time to even review the DVD they gave us because we're > trying to get a beta out by Thursday, so don't expect coherence from me > this week! There are 4 developers madly scrambling to make things work > the way they're specified TODAY (never mind how they were specified > originally or even yesterday) and a fun time is being had by all. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, September 25, 2006 3:26 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > What are the 'nifty new capabilities'? > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, September 25, 2006 4:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > Version 3.0 of the Framework is in beta, indeed and will be released ... > That was as far as they committed. LOL. I recently saw it demonstrated > and fell madly in love with some of the nifty new capabilities. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Friday, September 22, 2006 8:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > I was forced to go the C# route., however Vb.net or C#, the languages > are pretty irrelevent I think. > As others have said there are just soooo many damn options. > You can easily find yourself endlessly refactoring - but maybe its just > me...lol. > The framework is enormous, and getting bigger. > I believe v3 is in beta... > > What I found helpful was the Nettiers templates (free) > http://www.nettiers.com/ which you use with CodeSmith (30 day trial) > http://codesmithtools.com/ and the MS Application blocks (free) > http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 > e25-94e2-91be63527327 > > JC, you will love this stuff. > > I'm just hoping none of my code ends up here... > http://thedailywtf.com/Default.aspx > > cheers > > Michael M > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Sep 26 12:49:29 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 26 Sep 2006 10:49:29 -0700 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) In-Reply-To: References: Message-ID: <45196829.1020000@shaw.ca> There is ATLAS which is AJAX controls and javascript framework and ASP.Net ontop of Net 2.0 framework, works cross browser. http://atlas.asp.net/default.aspx?tabid=47 Charlotte Foust wrote: >AJAX does the same thing. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, September 26, 2006 6:36 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: >Switchingto VB.net) > >I briefly looked at AJAX last week, and ended up finding a program >called ThinWire. This program, written in JAVA and still in beta, has a >claim that it can have a GUI just like a Client-Server app, but works in >a web browser. > > >Perhaps the next .net framework is headed in that direction. It would >make sense . . . > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Switching to VB.net > >You expect me to REMEMBER?? > >Atlas/AJAX are impressive. There are new interactive designers coming. >I haven't had time to even review the DVD they gave us because we're >trying to get a beta out by Thursday, so don't expect coherence from me >this week! There are 4 developers madly scrambling to make things work >the way they're specified TODAY (never mind how they were specified >originally or even yesterday) and a fun time is being had by all. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Monday, September 25, 2006 3:26 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Switching to VB.net > >What are the 'nifty new capabilities'? > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Monday, September 25, 2006 4:10 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >Version 3.0 of the Framework is in beta, indeed and will be released ... >That was as far as they committed. LOL. I recently saw it demonstrated >and fell madly in love with some of the nifty new capabilities. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael >Maddison >Sent: Friday, September 22, 2006 8:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >I was forced to go the C# route., however Vb.net or C#, the languages >are pretty irrelevent I think. >As others have said there are just soooo many damn options. >You can easily find yourself endlessly refactoring - but maybe its just >me...lol. >The framework is enormous, and getting bigger. >I believe v3 is in beta... > >What I found helpful was the Nettiers templates (free) >http://www.nettiers.com/ which you use with CodeSmith (30 day trial) >http://codesmithtools.com/ and the MS Application blocks (free) >http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 >e25-94e2-91be63527327 > >JC, you will love this stuff. > >I'm just hoping none of my code ends up here... >http://thedailywtf.com/Default.aspx > >cheers > >Michael M >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Tue Sep 26 12:49:35 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 26 Sep 2006 10:49:35 -0700 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was:SwitchingtoVB.net) In-Reply-To: <005601c6e17b$bc696a90$153ce944@50NM721> Message-ID: I haven't worked with it, William, only seen it demonstrated ... And on a beta of Vista at that. The machine it was running on was a laptop that wasn't overpowered according to the rep. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, September 26, 2006 7:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was:SwitchingtoVB.net) ...AJAX is a step forward ...really a combination of existing web technologies ...but its nowhere near putting a desktop gui experience inside a browser ...imnsho of course :) William Hindman ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, September 26, 2006 10:22 AM Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was:Switchingto VB.net) > AJAX does the same thing. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 26, 2006 6:36 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: > Switchingto VB.net) > > I briefly looked at AJAX last week, and ended up finding a program > called ThinWire. This program, written in JAVA and still in beta, has > a claim that it can have a GUI just like a Client-Server app, but > works in a web browser. > > > Perhaps the next .net framework is headed in that direction. It would > make sense . . . > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > You expect me to REMEMBER?? > > Atlas/AJAX are impressive. There are new interactive designers coming. > I haven't had time to even review the DVD they gave us because we're > trying to get a beta out by Thursday, so don't expect coherence from > me this week! There are 4 developers madly scrambling to make things > work the way they're specified TODAY (never mind how they were > specified originally or even yesterday) and a fun time is being had by all. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, September 25, 2006 3:26 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > What are the 'nifty new capabilities'? > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, September 25, 2006 4:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > Version 3.0 of the Framework is in beta, indeed and will be released ... > That was as far as they committed. LOL. I recently saw it demonstrated > and fell madly in love with some of the nifty new capabilities. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Friday, September 22, 2006 8:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > I was forced to go the C# route., however Vb.net or C#, the languages > are pretty irrelevent I think. > As others have said there are just soooo many damn options. > You can easily find yourself endlessly refactoring - but maybe its > just me...lol. > The framework is enormous, and getting bigger. > I believe v3 is in beta... > > What I found helpful was the Nettiers templates (free) > http://www.nettiers.com/ which you use with CodeSmith (30 day trial) > http://codesmithtools.com/ and the MS Application blocks (free) > http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072 > -4 > e25-94e2-91be63527327 > > JC, you will love this stuff. > > I'm just hoping none of my code ends up here... > http://thedailywtf.com/Default.aspx > > cheers > > Michael M > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Sep 26 13:15:01 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 26 Sep 2006 11:15:01 -0700 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) In-Reply-To: <45196829.1020000@shaw.ca> Message-ID: You're right, I keep getting them confused. The cross browser stuff was awesome. It works even better in the Net 3.0 framework from what I saw. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, September 26, 2006 10:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) There is ATLAS which is AJAX controls and javascript framework and ASP.Net ontop of Net 2.0 framework, works cross browser. http://atlas.asp.net/default.aspx?tabid=47 Charlotte Foust wrote: >AJAX does the same thing. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, September 26, 2006 6:36 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: >Switchingto VB.net) > >I briefly looked at AJAX last week, and ended up finding a program >called ThinWire. This program, written in JAVA and still in beta, has >a claim that it can have a GUI just like a Client-Server app, but works >in a web browser. > > >Perhaps the next .net framework is headed in that direction. It would >make sense . . . > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Switching to VB.net > >You expect me to REMEMBER?? > >Atlas/AJAX are impressive. There are new interactive designers coming. >I haven't had time to even review the DVD they gave us because we're >trying to get a beta out by Thursday, so don't expect coherence from me >this week! There are 4 developers madly scrambling to make things work >the way they're specified TODAY (never mind how they were specified >originally or even yesterday) and a fun time is being had by all. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Monday, September 25, 2006 3:26 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Switching to VB.net > >What are the 'nifty new capabilities'? > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Monday, September 25, 2006 4:10 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >Version 3.0 of the Framework is in beta, indeed and will be released ... >That was as far as they committed. LOL. I recently saw it demonstrated >and fell madly in love with some of the nifty new capabilities. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael >Maddison >Sent: Friday, September 22, 2006 8:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >I was forced to go the C# route., however Vb.net or C#, the languages >are pretty irrelevent I think. >As others have said there are just soooo many damn options. >You can easily find yourself endlessly refactoring - but maybe its just >me...lol. >The framework is enormous, and getting bigger. >I believe v3 is in beta... > >What I found helpful was the Nettiers templates (free) >http://www.nettiers.com/ which you use with CodeSmith (30 day trial) >http://codesmithtools.com/ and the MS Application blocks (free) >http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072- >4 >e25-94e2-91be63527327 > >JC, you will love this stuff. > >I'm just hoping none of my code ends up here... >http://thedailywtf.com/Default.aspx > >cheers > >Michael M >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Sep 26 14:04:19 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 26 Sep 2006 12:04:19 -0700 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) In-Reply-To: References: Message-ID: <451979B3.1070007@shaw.ca> There is also DotNetNuke Open Source, I guess they just formed a new support company http://www.dotnetnuke.com/ Here is a cheap web host that supports it along with MySQL and MS SQL Express for $5.00 a month http://www.webhostforasp.net/ Charlotte Foust wrote: >You're right, I keep getting them confused. The cross browser stuff was >awesome. It works even better in the Net 3.0 framework from what I saw. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Tuesday, September 26, 2006 10:49 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: >Switchingto VB.net) > >There is ATLAS which is AJAX controls and javascript framework and >ASP.Net ontop of Net 2.0 framework, works cross browser. > >http://atlas.asp.net/default.aspx?tabid=47 > >Charlotte Foust wrote: > > > >>AJAX does the same thing. >> >>Charlotte >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >>Sent: Tuesday, September 26, 2006 6:36 AM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: >>Switchingto VB.net) >> >>I briefly looked at AJAX last week, and ended up finding a program >>called ThinWire. This program, written in JAVA and still in beta, has >>a claim that it can have a GUI just like a Client-Server app, but works >> >> > > > >>in a web browser. >> >> >>Perhaps the next .net framework is headed in that direction. It would >>make sense . . . >> >>Dan Waters >> >>-----Original Message----- >>Subject: Re: [AccessD] Switching to VB.net >> >>You expect me to REMEMBER?? >> >>Atlas/AJAX are impressive. There are new interactive designers coming. >>I haven't had time to even review the DVD they gave us because we're >>trying to get a beta out by Thursday, so don't expect coherence from me >> >> > > > >>this week! There are 4 developers madly scrambling to make things work >>the way they're specified TODAY (never mind how they were specified >>originally or even yesterday) and a fun time is being had by all. >> >>Charlotte >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >>Sent: Monday, September 25, 2006 3:26 PM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] Switching to VB.net >> >>What are the 'nifty new capabilities'? >> >>Dan Waters >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >>Foust >>Sent: Monday, September 25, 2006 4:10 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Switching to VB.net >> >>Version 3.0 of the Framework is in beta, indeed and will be released >> >> >... > > >>That was as far as they committed. LOL. I recently saw it demonstrated >>and fell madly in love with some of the nifty new capabilities. >> >>Charlotte Foust >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael >>Maddison >>Sent: Friday, September 22, 2006 8:13 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Switching to VB.net >> >>I was forced to go the C# route., however Vb.net or C#, the languages >>are pretty irrelevent I think. >>As others have said there are just soooo many damn options. >>You can easily find yourself endlessly refactoring - but maybe its just >> >> > > > >>me...lol. >>The framework is enormous, and getting bigger. >>I believe v3 is in beta... >> >>What I found helpful was the Nettiers templates (free) >>http://www.nettiers.com/ which you use with CodeSmith (30 day trial) >>http://codesmithtools.com/ and the MS Application blocks (free) >>http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072- >>4 >>e25-94e2-91be63527327 >> >>JC, you will love this stuff. >> >>I'm just hoping none of my code ends up here... >>http://thedailywtf.com/Default.aspx >> >>cheers >> >>Michael M >>- >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Tue Sep 26 15:55:01 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 27 Sep 2006 06:55:01 +1000 Subject: [AccessD] capitals in query In-Reply-To: <200609261330.k8QDUICp026879@mailhostC.plex.net> References: <200609261330.k8QDUICp026879@mailhostC.plex.net> Message-ID: <451A2045.11016.4872054@stuart.lexacorp.com.pg> On 26 Sep 2006 at 15:30, pedro at plex.nl wrote: > Hello Gustav and Stuart, > > thanks for your help. > It is working, but i forgot to tell that most record where i need to filter > on ER, have other tekst in the record. So i would need *ER*, but this isn't > functioning in your query. > The solution I gave is for exactly that situation. There are implicit leading and trailing wildcards. ExactMatch("here,"ER") returns false ExactMatch("hERe", "ER") returns true. -- Stuart From stuart at lexacorp.com.pg Tue Sep 26 16:05:22 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 27 Sep 2006 07:05:22 +1000 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) In-Reply-To: References: <001401c6e170$ac073ca0$0200a8c0@danwaters>, Message-ID: <451A22B2.22743.4909B44@stuart.lexacorp.com.pg> AJAX in a development environment, not an program. Like LAMP (Linus,Apache,mySQL,PHP/Perl), it's an environment which combines several technologies. Ajax is allegedly an acronym for "Asynchronous JavaScript and XML", but it actually incorporates: * standards-based presentation using XHTML and CSS; * dynamic display and interaction using the Document Object Model; * data interchange and manipulation using XML and XSLT; * asynchronous data retrieval using XMLHttpRequest; * and JavaScript binding everything together. On 26 Sep 2006 at 7:22, Charlotte Foust wrote: > AJAX does the same thing. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 26, 2006 6:36 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: > Switchingto VB.net) > > I briefly looked at AJAX last week, and ended up finding a program > called ThinWire. This program, written in JAVA and still in beta, has a > claim that it can have a GUI just like a Client-Server app, but works in a > web browser. > > > Perhaps the next .net framework is headed in that direction. It would > make sense . . . > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > You expect me to REMEMBER?? > > Atlas/AJAX are impressive. There are new interactive designers coming. I > haven't had time to even review the DVD they gave us because we're trying to > get a beta out by Thursday, so don't expect coherence from me this week! > There are 4 developers madly scrambling to make things work the way they're > specified TODAY (never mind how they were specified originally or even > yesterday) and a fun time is being had by all. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, September 25, 2006 3:26 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > What are the 'nifty new capabilities'? > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, September 25, 2006 4:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > Version 3.0 of the Framework is in beta, indeed and will be released ... > That was as far as they committed. LOL. I recently saw it demonstrated and > fell madly in love with some of the nifty new capabilities. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Friday, September 22, 2006 8:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > I was forced to go the C# route., however Vb.net or C#, the languages > are pretty irrelevent I think. > As others have said there are just soooo many damn options. > You can easily find yourself endlessly refactoring - but maybe its just > me...lol. The framework is enormous, and getting bigger. I believe v3 is in > beta... > > What I found helpful was the Nettiers templates (free) > http://www.nettiers.com/ which you use with CodeSmith (30 day trial) > http://codesmithtools.com/ and the MS Application blocks (free) > http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 > e25-94e2-91be63527327 > > JC, you will love this stuff. > > I'm just hoping none of my code ends up here... > http://thedailywtf.com/Default.aspx > > cheers > > Michael M > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From john at winhaven.net Tue Sep 26 23:35:53 2006 From: john at winhaven.net (John Bartow) Date: Tue, 26 Sep 2006 23:35:53 -0500 Subject: [AccessD] DMax issue Message-ID: <00a901c6e1ee$6b304770$6501a8c0@ScuzzPaq> This must be something I'm simply not seeing. Why doesn't this work as the default value for a textbox on a popup form? = (DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = " & [Forms]![frmProject]![txtJobNumber])) + 1 ItemNumber is Integer JobNumber is Text TIA John B. From bchacc at san.rr.com Wed Sep 27 00:29:25 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 26 Sep 2006 22:29:25 -0700 Subject: [AccessD] DMax issue In-Reply-To: <00a901c6e1ee$6b304770$6501a8c0@ScuzzPaq> Message-ID: <01dc01c6e1f5$e5b7c160$6401a8c0@HAL9005> John Wouldn't you need Val([Forms]![frmProject]![txtJobNumber]))) + 1? Maybe [Forms]![frmProject]![txtJobNumber])) is evaluating to 0 or null because it's text? I'd put a statement right before the DMax: MsgBox "*" & [Forms]![frmProject]![txtJobNumber])) & "*" just to see what that snip is evaluating to. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, September 26, 2006 9:36 PM To: _DBA-Access Subject: [AccessD] DMax issue This must be something I'm simply not seeing. Why doesn't this work as the default value for a textbox on a popup form? = (DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = " & [Forms]![frmProject]![txtJobNumber])) + 1 ItemNumber is Integer JobNumber is Text TIA John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.9/457 - Release Date: 9/26/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.9/457 - Release Date: 9/26/2006 From darrend at nimble.com.au Wed Sep 27 00:36:47 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 27 Sep 2006 15:36:47 +1000 Subject: [AccessD] DMax issue In-Reply-To: <00a901c6e1ee$6b304770$6501a8c0@ScuzzPaq> Message-ID: <20060927053649.HKMZ11173.omta03ps.mx.bigpond.com@DENZILLAP> Hi John When dealing with numbers the syntax you provided is correct - however JobNumber is actually text so in the Domain Lookup syntax (DMAX) it should be treated as text EG - try =(DMax("[ItemNumber]","tblJobDetail","[JobNumber] = [Forms]![frmProject]![txtJobNumber]"))+1 IE = [Forms]![frmProject]![txtJobNumber] now sits INSIDE the double quotes rather than outside as in your posted syntax Hope this helps Darren ------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, 27 September 2006 2:36 PM To: _DBA-Access Subject: [AccessD] DMax issue This must be something I'm simply not seeing. Why doesn't this work as the default value for a textbox on a popup form? = (DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = " & [Forms]![frmProject]![txtJobNumber])) + 1 ItemNumber is Integer JobNumber is Text TIA John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at dpi.nsw.gov.au Tue Sep 26 20:44:09 2006 From: connie.kamrowski at dpi.nsw.gov.au (connie.kamrowski at dpi.nsw.gov.au) Date: Wed, 27 Sep 2006 11:44:09 +1000 Subject: [AccessD] Compare two tables with a large number of fields In-Reply-To: Message-ID: Good morning everyone, I have an interesting issue. A Database was created, and put into operation, it had a bug in Citrix so it was removed converted and put back up for testing. Chinese whispers caused data to be entered into both copies of the Database Apparently the word test is ambiguous in some way. Anyway now I have two Databases, each with a job table which contains the following fields tblJob1.BuildID, tblJob1.AreaID, tblJob1.SubElementID, tblJob1.WorkID, tblJob1.StandardID, tblJob1.Location, tblJob1.Description, tblJob1.TradeID, tblJob1.Unit, tblJob1.Quantity, tblJob1.EstCost, tblJob1.Frequency, tblJob1.StartYear, tblJob1.PriorityID, tblJob1.Done, tblJob1.Approved, tblJob1.Comment, tblJob1.CloneJobID I need to compare the two tables and pull out any records which do not match (some may be due to edits in a particular column) so I can add all the added records into a third database( a copy of the original as at the day testing started). I have tried using the unmatched query but it will only let me enter 10 fields for comparison, any ideas on how I can do this? Regards, Connie Kamrowski Senior Software Support Analyst Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax: 02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation. From Andrew.Curtis at wapl.com.au Wed Sep 27 01:39:12 2006 From: Andrew.Curtis at wapl.com.au (Curtis, Andrew (WAPL)) Date: Wed, 27 Sep 2006 14:39:12 +0800 Subject: [AccessD] Compare two tables with a large number of fields In-Reply-To: Message-ID: Attached is a small database illustrating 1 possible fix for this tblJob1 and tblJob2 are the same excepting 2nd field in tblJob2 Run the query in the db to show the incorrect record. --Andrew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at dpi.nsw.gov.au Sent: Wednesday, 27 September 2006 9:44 AM To: accessd at databaseadvisors.com Subject: [AccessD] Compare two tables with a large number of fields Good morning everyone, I have an interesting issue. A Database was created, and put into operation, it had a bug in Citrix so it was removed converted and put back up for testing. Chinese whispers caused data to be entered into both copies of the Database Apparently the word test is ambiguous in some way. Anyway now I have two Databases, each with a job table which contains the following fields tblJob1.BuildID, tblJob1.AreaID, tblJob1.SubElementID, tblJob1.WorkID, tblJob1.StandardID, tblJob1.Location, tblJob1.Description, tblJob1.TradeID, tblJob1.Unit, tblJob1.Quantity, tblJob1.EstCost, tblJob1.Frequency, tblJob1.StartYear, tblJob1.PriorityID, tblJob1.Done, tblJob1.Approved, tblJob1.Comment, tblJob1.CloneJobID I need to compare the two tables and pull out any records which do not match (some may be due to edits in a particular column) so I can add all the added records into a third database( a copy of the original as at the day testing started). I have tried using the unmatched query but it will only let me enter 10 fields for comparison, any ideas on how I can do this? Regards, Connie Kamrowski Senior Software Support Analyst Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax: 02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error please notify the sender immediately and delete the message. From Gustav at cactus.dk Wed Sep 27 03:24:05 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 27 Sep 2006 10:24:05 +0200 Subject: [AccessD] DMax issue Message-ID: Hi John If JobNumber is text, you need to wrap the value in single quotes. Also, if your textbox may be Null, and DefaultValue should be a String. Thus, try this: = "'" & Nz(DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = '" & [Forms]![frmProject]![txtJobNumber] & "'"), 0) + 1 & "'" /gustav >>> john at winhaven.net 27-09-2006 06:35 >>> This must be something I'm simply not seeing. Why doesn't this work as the default value for a textbox on a popup form? = (DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = " & [Forms]![frmProject]![txtJobNumber])) + 1 ItemNumber is Integer JobNumber is Text TIA John B. From jmhecht at earthlink.net Wed Sep 27 10:12:26 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 27 Sep 2006 08:12:26 -0700 Subject: [AccessD] Changing Worlds Message-ID: My world is moving away from Access development. Sad but as they say, follow the money. I am going off list to have time to read and work on other things. Many thanks to those who have taught me through the years here. Joe Hecht jmhecht at earthlink.net From bheid at appdevgrp.com Wed Sep 27 10:18:36 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Sep 2006 11:18:36 -0400 Subject: [AccessD] VSS - Build from source error question... Message-ID: <916187228923D311A6FE00A0CC3FAA30D35930@ADGSERVER> Hey, I rebuilt my machine here at work and was trying to build from source in VSS. It gave me many "can not import file xxx' messages. The ones giving this error are some of the form and report files. When I look at the .SCC directory under my project, I see 221 objects (out of 1457 objects) that have as their type 'Microsoft Agent Character File (HTTP format)' and 27 objects that have the type 'Microsoft Agent Character File'. It looks like only the .ACF files get the 'Microsoft Agent Character File (HTTP format)' type and the .ACS files get the 'Microsoft Agent Character File' type. Has anyone run into this before? Anyone know how to fix it? Thanks, Bobby From dwaters at usinternet.com Wed Sep 27 10:23:47 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 27 Sep 2006 10:23:47 -0500 Subject: [AccessD] Changing Worlds In-Reply-To: <4315628.1159370401197.JavaMail.root@sniper59> Message-ID: <000e01c6e248$ef828970$0200a8c0@danwaters> Good Luck Joe! If you can say, where is the money taking you to? Dan Waters -----Original Message----- Subject: [AccessD] Changing Worlds My world is moving away from Access development. Sad but as they say, follow the money. I am going off list to have time to read and work on other things. Many thanks to those who have taught me through the years here. Joe Hecht jmhecht at earthlink.net From markamatte at hotmail.com Wed Sep 27 10:37:09 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 27 Sep 2006 15:37:09 +0000 Subject: [AccessD] Changing Worlds In-Reply-To: <000e01c6e248$ef828970$0200a8c0@danwaters> Message-ID: ...and do you need a co-pilot on this trip? Good luck, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Changing Worlds >Date: Wed, 27 Sep 2006 10:23:47 -0500 > >Good Luck Joe! > >If you can say, where is the money taking you to? > >Dan Waters > >-----Original Message----- >Subject: [AccessD] Changing Worlds > >My world is moving away from Access development. Sad but as they say, >follow >the money. > >I am going off list to have time to read and work on other things. > >Many thanks to those who have taught me through the years here. > >Joe Hecht >jmhecht at earthlink.net > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 27 11:19:27 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 27 Sep 2006 12:19:27 -0400 Subject: [AccessD] Changing Worlds In-Reply-To: Message-ID: <001e01c6e250$b4eab6e0$647aa8c0@m6805> Good luck Joe. Like others, I'd like to know where the money is taking you. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, September 27, 2006 11:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Changing Worlds My world is moving away from Access development. Sad but as they say, follow the money. I am going off list to have time to read and work on other things. Many thanks to those who have taught me through the years here. Joe Hecht jmhecht at earthlink.net From garykjos at gmail.com Wed Sep 27 11:42:45 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 27 Sep 2006 11:42:45 -0500 Subject: [AccessD] Changing Worlds In-Reply-To: <001e01c6e250$b4eab6e0$647aa8c0@m6805> References: <001e01c6e250$b4eab6e0$647aa8c0@m6805> Message-ID: Unfortunately I believe he has already unsubbed from the list. I saw an unsub message come through for him shortly after his last post. You can probably contact him directly at the email he posted from; jmhecht at earthlink.net By Joe, we'll miss ya! Best wishes and good luck with whatever you're moving to. Gary Kjos On 9/27/06, JWColby wrote: > Good luck Joe. > > Like others, I'd like to know where the money is taking you. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: Wednesday, September 27, 2006 11:12 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Changing Worlds > > My world is moving away from Access development. Sad but as they say, follow > the money. > > I am going off list to have time to read and work on other things. > > Many thanks to those who have taught me through the years here. > > Joe Hecht > jmhecht at earthlink.net > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Wed Sep 27 12:08:20 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Sep 2006 10:08:20 -0700 Subject: [AccessD] VSS - Build from source error question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35930@ADGSERVER> Message-ID: Normally, forms and subforms have the ACF file extension, reports and subreports have ACR, queries have ACQ, modules have ACM and the ACB and CAN files contain the miscellaneous data objects. I've never run into ACS files so they must be for objects we don't use. You have the current Access VSS add-in installed? The 2003 add-in is supposed to work for XP as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS - Build from source error question... Hey, I rebuilt my machine here at work and was trying to build from source in VSS. It gave me many "can not import file xxx' messages. The ones giving this error are some of the form and report files. When I look at the .SCC directory under my project, I see 221 objects (out of 1457 objects) that have as their type 'Microsoft Agent Character File (HTTP format)' and 27 objects that have the type 'Microsoft Agent Character File'. It looks like only the .ACF files get the 'Microsoft Agent Character File (HTTP format)' type and the .ACS files get the 'Microsoft Agent Character File' type. Has anyone run into this before? Anyone know how to fix it? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Sep 27 12:26:50 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Sep 2006 13:26:50 -0400 Subject: [AccessD] VSS - Build from source error question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E3723F@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35932@ADGSERVER> Hi Charlotte, I am running Access XP. I installed the XP Developer Tools also. The I installed the VSS 6.0c client. Did I miss something? I can see the VSS toolbar in Access. I had never seen the .ACS files either. I am thinking that I have not installed something or that I did something out of order. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 27, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VSS - Build from source error question... Normally, forms and subforms have the ACF file extension, reports and subreports have ACR, queries have ACQ, modules have ACM and the ACB and CAN files contain the miscellaneous data objects. I've never run into ACS files so they must be for objects we don't use. You have the current Access VSS add-in installed? The 2003 add-in is supposed to work for XP as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS - Build from source error question... Hey, I rebuilt my machine here at work and was trying to build from source in VSS. It gave me many "can not import file xxx' messages. The ones giving this error are some of the form and report files. When I look at the .SCC directory under my project, I see 221 objects (out of 1457 objects) that have as their type 'Microsoft Agent Character File (HTTP format)' and 27 objects that have the type 'Microsoft Agent Character File'. It looks like only the .ACF files get the 'Microsoft Agent Character File (HTTP format)' type and the .ACS files get the 'Microsoft Agent Character File' type. Has anyone run into this before? Anyone know how to fix it? Thanks, Bobby From john at winhaven.net Wed Sep 27 12:37:39 2006 From: john at winhaven.net (John Bartow) Date: Wed, 27 Sep 2006 12:37:39 -0500 Subject: [AccessD] DMax issue In-Reply-To: <01dc01c6e1f5$e5b7c160$6401a8c0@HAL9005> Message-ID: <026c01c6e25b$a149afa0$6501a8c0@ScuzzPaq> Rocky, The worst thing about using the Domain functions - they are hard to debug (IMO). I'd done the MsgBox thing as you recommended - after putting a watch on the variables, etc. No luck as everything comes through OK except the result! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software I'd put a statement right before the DMax: MsgBox "*" & [Forms]![frmProject]![txtJobNumber])) & "*" just to see what that snip is evaluating to. From john at winhaven.net Wed Sep 27 12:44:28 2006 From: john at winhaven.net (John Bartow) Date: Wed, 27 Sep 2006 12:44:28 -0500 Subject: [AccessD] DMax issue In-Reply-To: <20060927053649.HKMZ11173.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: <026d01c6e25c$94ebfc80$6501a8c0@ScuzzPaq> Darren, Thanks - that did the trick! I think I must have tried every set of quotes around the criteria but this! Just what I needed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK When dealing with numbers the syntax you provided is correct - however JobNumber is actually text so in the Domain Lookup syntax (DMAX) it should be treated as text EG - try =(DMax("[ItemNumber]","tblJobDetail","[JobNumber] = [Forms]![frmProject]![txtJobNumber]"))+1 IE = [Forms]![frmProject]![txtJobNumber] now sits INSIDE the double quotes rather than outside as in your posted syntax From john at winhaven.net Wed Sep 27 12:47:54 2006 From: john at winhaven.net (John Bartow) Date: Wed, 27 Sep 2006 12:47:54 -0500 Subject: [AccessD] DMax issue In-Reply-To: Message-ID: <026e01c6e25d$0fdb3d20$6501a8c0@ScuzzPaq> Thanks Gustav, Since Events prior to this make sure the text box is not null there should never be a time when JobNumber's text box is null or I would defintetly use this. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock If JobNumber is text, you need to wrap the value in single quotes. Also, if your textbox may be Null, and DefaultValue should be a String. Thus, try this: = "'" & Nz(DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = '" & [Forms]![frmProject]![txtJobNumber] & "'"), 0) + 1 & "'" /gustav From Gustav at cactus.dk Wed Sep 27 12:54:06 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 27 Sep 2006 19:54:06 +0200 Subject: [AccessD] DMax issue Message-ID: Hi John Then you can reduce to: = "'" & DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = '" & [Forms]![frmProject]![txtJobNumber] & "'") + 1 & "'" /gustav >>> john at winhaven.net 27-09-2006 19:47:54 >>> Thanks Gustav, Since Events prior to this make sure the text box is not null there should never be a time when JobNumber's text box is null or I would defintetly use this. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock If JobNumber is text, you need to wrap the value in single quotes. Also, if your textbox may be Null, and DefaultValue should be a String. Thus, try this: = "'" & Nz(DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = '" & [Forms]![frmProject]![txtJobNumber] & "'"), 0) + 1 & "'" /gustav From shamil at users.mns.ru Wed Sep 27 13:00:23 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 27 Sep 2006 22:00:23 +0400 Subject: [AccessD] Moving out of MS Access? Message-ID: <000001c6e25e$cea87eb0$6401a8c0@nant> Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? What do you think and what do you see there overseas? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Does this mean there is a demand for the new MS Access development or just that there is no usually any need to migrate old MS Access applications to MS SQL/.NET? Microsoft Office Access and Enterprise IT Case Study: Streamlining Application Development Peter Mullen is Manager of Application Development in the corporate services department of a Fortune 500 insurance company with almost 50,000 employees and over 500 offices in 120 countries. Following a major acquisition, the company undertook a reorganization that involved centralizing its data management. Mullen, who had some experience working with Microsoft Office Access, started exploring the ways that Access database applications were being deployed across the enterprise. He was stunned to learn how pervasively Access was being used. Mullen says, ?Access was all over the place doing so many things that it blew my mind. Once I became known as ?The Access Guy? there were people all over the company who wanted my time.? Not surprisingly, the quality of the Access applications Mullen discovered was quite variable. To Mullen?s trained eye, some were in fact very poorly designed, and yet they were getting the job done. Mullen also found positions hidden in the payroll in the field that consisted essentially of supporting a small number of departmental Access applications. Mullen and his manager put together a presentation for the Chief Information Officer (CIO), proposing that the IT department begin formally supporting Access development at the company. They outlined a strategy for centralizing and rationalizing management of the Access applications that were evolving under the radar of their traditional portfolio management. The CIO saw the value in this proposal right away, and Mullen became the lead developer of a new group that was formed for this purpose. Mullen?s group created and nurtured the use of naming standards, coding standards, and standard methodologies. They also were able to reduce headcount in the field as support activities were centralized. Mullen reports that after about two years, ?We had standard code; we had about 200 applications, and we were handling it. We started to rationalize our portfolio and really started to communicate exactly what we were doing to IT. This was the key point?that a lot of people in the organization started to see what we were really about. These were complicated problems being solved without spending a lot of money.? As more people in the IT organization learned of the success of Mullen?s group, he began to receive requests for ?bolt-on applications, small department tracking projects, and proofs of concept. We hit a few of these and we had a real perceived value to the organization.? Mullen summarizes what he?s learned about the optimal role of Access in the enterprise as follows: ?Access development in corporate organizations is simply a reality. People in the business are constantly looking for ways to add value to their customers and to free up their staff from mundane chores using automation that is inexpensive and easily accomplished. This is the strength of Access. The problem, from an IT perspective, is that the business comes to depend on products created without any IT involvement. Someone?usually an outsider or a low-level employee?becomes vital to the support of the product. So the question for IT becomes, ?Will we provide support for this process?? In my experience, providing an organized group that can create and support Access applications is a solid investment. It adds real and perceived value to the business and prevents a whole portfolio of applications from being developed under the radar of IT.? Mullen continues, ?IT usually looks at all of the Access applications that are developed in the field as problems to be eliminated. I look at them and I see opportunity. Applications developed in the field are sometimes things that should never have been created; yet often they are products that are highly valued and fill a real need. By treating field applications (which most often means Access) with respect, and providing support and portfolio management, you can sometimes find patterns of demand in your organization and help drive real IT value back to the business.? Mullen is now working with the Architecture Team in his organization to identify candidates for migration to SQL Server and .NET applications. Mullen says, ?Much of our portfolio will remain in Access, but some will migrate. There will always be a need for those quick and inexpensive solutions. The important thing is to keep track of these applications. They are the fingertips of your IT organization.? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Access developers, administrators, and users now have a new toolkit to aid them in analyzing Access 97 databases for upgrade and conversion to Access 2003. Users can take advantage of the tools in the Access 2003 Conversion Toolkit to find and analyze databases in preparation for switching to Access 2003. For upgrading to the 2007 release, Microsoft plans to release the Microsoft Office Migration Planning Manager. -- Shamil From mwp.reid at qub.ac.uk Wed Sep 27 13:06:12 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 27 Sep 2006 19:06:12 +0100 Subject: [AccessD] Moving out of MS Access? References: <000001c6e25e$cea87eb0$6401a8c0@nant> Message-ID: Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. I actually wrote an article for Microsoft on what happens after moving them to SQL Server http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx At that time was a big PR push to move them to SQL Server. The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 27/09/2006 19:00 To: 'Access-D' Subject: [AccessD] Moving out of MS Access? Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? From mwp.reid at qub.ac.uk Wed Sep 27 13:24:01 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 27 Sep 2006 19:24:01 +0100 Subject: [AccessD] OT Outlook References: <000001c6e25e$cea87eb0$6401a8c0@nant> Message-ID: Anyone know where I can find outlooks configuration file?? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From dwaters at usinternet.com Wed Sep 27 13:29:25 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 27 Sep 2006 13:29:25 -0500 Subject: [AccessD] Moving out of MS Access? In-Reply-To: <22107074.1159380249144.JavaMail.root@sniper33> Message-ID: <002901c6e262$dc7cda00$0200a8c0@danwaters> Hi Shamil, This is just about my favorite soapbox! In any organization, there is someone or a few people who learn how to begin using Access as a database, usually to track or manage a departmental activity. They use it themselves, then learn that with a few changes, it can become a shared database. But then even more people start using it, and it breaks due to poor design. But by now, the department (or company) depends on it. So the department manager goes to the IT department and tells them that he needs this database fixed right away! Predictably, the IT department sees this scenario more than they want to. From their perspective, they must now go into a significant database design effort, with no time planned for and no budget planned for. After a few times of this, it's easy to see why Access gets blamed. So, to get off the hook, the IT department will blame Access, and demand that Access no longer be used for company applications. You really can't blame them. The problem is that Access is too easy to use to create a useful application without the 'developer' having training. Think about VB - you don't just up and make a VB front end app with back end tables without some training! I have one customer which uses my Access app for Corrective Action, Nonconforming Material, Debit Memos, Die Cast Machine Settings, Vacation Requests, Attendance Tracking, Warnings, Controlled Documents, and soon to be Training Management. This is all in one FE, using a separate .mdb for Temp tables, a library database with forms, reports, and standard modules, and a BE data .mdb. It's very effective, and they literally don't have to hire as many people. So yes - Access can be used very effectively for business applications. Interestingly, one of the reasons I started working with them is because they had a Quality Engineer who tried to create a Corrective Action process, but couldn't write any code. (She was gone before I got there.) So, if MS can influence people to not use a high-powered tool with a low-skilled driver, the reputation of Access as a business app will improve. They may already be doing this by providing a large number of usable templates for people to use 'out of the box.' That's my 10 cents (with inflation)! And - Shamil - where is this report published? I'd like to be able to refer prospective customers to it. Dan Waters -----Original Message----- Subject: [AccessD] Moving out of MS Access? Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? What do you think and what do you see there overseas? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Does this mean there is a demand for the new MS Access development or just that there is no usually any need to migrate old MS Access applications to MS SQL/.NET? Microsoft Office Access and Enterprise IT Case Study: Streamlining Application Development Peter Mullen is Manager of Application Development in the corporate services department of a Fortune 500 insurance company with almost 50,000 employees and over 500 offices in 120 countries. Following a major acquisition, the company undertook a reorganization that involved centralizing its data management. Mullen, who had some experience working with Microsoft Office Access, started exploring the ways that Access database applications were being deployed across the enterprise. He was stunned to learn how pervasively Access was being used. Mullen says, ?Access was all over the place doing so many things that it blew my mind. Once I became known as ?The Access Guy? there were people all over the company who wanted my time.? Not surprisingly, the quality of the Access applications Mullen discovered was quite variable. To Mullen?s trained eye, some were in fact very poorly designed, and yet they were getting the job done. Mullen also found positions hidden in the payroll in the field that consisted essentially of supporting a small number of departmental Access applications. Mullen and his manager put together a presentation for the Chief Information Officer (CIO), proposing that the IT department begin formally supporting Access development at the company. They outlined a strategy for centralizing and rationalizing management of the Access applications that were evolving under the radar of their traditional portfolio management. The CIO saw the value in this proposal right away, and Mullen became the lead developer of a new group that was formed for this purpose. Mullen?s group created and nurtured the use of naming standards, coding standards, and standard methodologies. They also were able to reduce headcount in the field as support activities were centralized. Mullen reports that after about two years, ?We had standard code; we had about 200 applications, and we were handling it. We started to rationalize our portfolio and really started to communicate exactly what we were doing to IT. This was the key point?that a lot of people in the organization started to see what we were really about. These were complicated problems being solved without spending a lot of money.? As more people in the IT organization learned of the success of Mullen?s group, he began to receive requests for ?bolt-on applications, small department tracking projects, and proofs of concept. We hit a few of these and we had a real perceived value to the organization.? Mullen summarizes what he?s learned about the optimal role of Access in the enterprise as follows: ?Access development in corporate organizations is simply a reality. People in the business are constantly looking for ways to add value to their customers and to free up their staff from mundane chores using automation that is inexpensive and easily accomplished. This is the strength of Access. The problem, from an IT perspective, is that the business comes to depend on products created without any IT involvement. Someone?usually an outsider or a low-level employee?becomes vital to the support of the product. So the question for IT becomes, ?Will we provide support for this process?? In my experience, providing an organized group that can create and support Access applications is a solid investment. It adds real and perceived value to the business and prevents a whole portfolio of applications from being developed under the radar of IT.? Mullen continues, ?IT usually looks at all of the Access applications that are developed in the field as problems to be eliminated. I look at them and I see opportunity. Applications developed in the field are sometimes things that should never have been created; yet often they are products that are highly valued and fill a real need. By treating field applications (which most often means Access) with respect, and providing support and portfolio management, you can sometimes find patterns of demand in your organization and help drive real IT value back to the business.? Mullen is now working with the Architecture Team in his organization to identify candidates for migration to SQL Server and .NET applications. Mullen says, ?Much of our portfolio will remain in Access, but some will migrate. There will always be a need for those quick and inexpensive solutions. The important thing is to keep track of these applications. They are the fingertips of your IT organization.? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Access developers, administrators, and users now have a new toolkit to aid them in analyzing Access 97 databases for upgrade and conversion to Access 2003. Users can take advantage of the tools in the Access 2003 Conversion Toolkit to find and analyze databases in preparation for switching to Access 2003. For upgrading to the 2007 release, Microsoft plans to release the Microsoft Office Migration Planning Manager. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Sep 27 13:39:26 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Sep 2006 14:39:26 -0400 Subject: [AccessD] VSS - Build from source error question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E3724A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35935@ADGSERVER> What is the correct order to install this stuff. Here's the way I did it: 1) Install Access 97 2) Install Access 97 dev tools 3) Install Office XP 4) Install Office XP dev tools 5) Install VSS client (6.0c) Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VSS - Build from source error question... Hi Charlotte, I am running Access XP. I installed the XP Developer Tools also. The I installed the VSS 6.0c client. Did I miss something? I can see the VSS toolbar in Access. I had never seen the .ACS files either. I am thinking that I have not installed something or that I did something out of order. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 27, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VSS - Build from source error question... Normally, forms and subforms have the ACF file extension, reports and subreports have ACR, queries have ACQ, modules have ACM and the ACB and CAN files contain the miscellaneous data objects. I've never run into ACS files so they must be for objects we don't use. You have the current Access VSS add-in installed? The 2003 add-in is supposed to work for XP as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS - Build from source error question... Hey, I rebuilt my machine here at work and was trying to build from source in VSS. It gave me many "can not import file xxx' messages. The ones giving this error are some of the form and report files. When I look at the .SCC directory under my project, I see 221 objects (out of 1457 objects) that have as their type 'Microsoft Agent Character File (HTTP format)' and 27 objects that have the type 'Microsoft Agent Character File'. It looks like only the .ACF files get the 'Microsoft Agent Character File (HTTP format)' type and the .ACS files get the 'Microsoft Agent Character File' type. Has anyone run into this before? Anyone know how to fix it? Thanks, Bobby From shamil at users.mns.ru Wed Sep 27 14:12:06 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 27 Sep 2006 23:12:06 +0400 Subject: [AccessD] Moving out of MS Access? In-Reply-To: Message-ID: <000d01c6e268$d2f62260$6401a8c0@nant> Thank you for the links on articles and for your opinion, Martin! -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 27, 2006 10:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Moving out of MS Access? Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. I actually wrote an article for Microsoft on what happens after moving them to SQL Server http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx At that time was a big PR push to move them to SQL Server. The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 27/09/2006 19:00 To: 'Access-D' Subject: [AccessD] Moving out of MS Access? Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? From shamil at users.mns.ru Wed Sep 27 14:12:06 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 27 Sep 2006 23:12:06 +0400 Subject: [AccessD] Moving out of MS Access? In-Reply-To: <002901c6e262$dc7cda00$0200a8c0@danwaters> Message-ID: <001201c6e268$d331cbd0$6401a8c0@nant> Hi Dan, The quoted article is published here (watch line wraps): http://blogs.msdn.com/access/archive/2006/07/27/680772.aspx#comments <<< So, if MS can influence people to not use a high-powered tool with a low-skilled driver, the reputation of Access as a business app will improve. >>> Maybe write a petition to Microsoft to include MS Access 2007 runtime into MS Windows Vista? :) (Now, when MS Windows release is delayed and MS Office 12 release is on the way that could be possible to do?) BTW, "MS Access" gives ~112 million hits on google and Visual studio "just" ~87 million... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 27, 2006 10:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Moving out of MS Access? Hi Shamil, This is just about my favorite soapbox! In any organization, there is someone or a few people who learn how to begin using Access as a database, usually to track or manage a departmental activity. They use it themselves, then learn that with a few changes, it can become a shared database. But then even more people start using it, and it breaks due to poor design. But by now, the department (or company) depends on it. So the department manager goes to the IT department and tells them that he needs this database fixed right away! Predictably, the IT department sees this scenario more than they want to. From their perspective, they must now go into a significant database design effort, with no time planned for and no budget planned for. After a few times of this, it's easy to see why Access gets blamed. So, to get off the hook, the IT department will blame Access, and demand that Access no longer be used for company applications. You really can't blame them. The problem is that Access is too easy to use to create a useful application without the 'developer' having training. Think about VB - you don't just up and make a VB front end app with back end tables without some training! I have one customer which uses my Access app for Corrective Action, Nonconforming Material, Debit Memos, Die Cast Machine Settings, Vacation Requests, Attendance Tracking, Warnings, Controlled Documents, and soon to be Training Management. This is all in one FE, using a separate .mdb for Temp tables, a library database with forms, reports, and standard modules, and a BE data .mdb. It's very effective, and they literally don't have to hire as many people. So yes - Access can be used very effectively for business applications. Interestingly, one of the reasons I started working with them is because they had a Quality Engineer who tried to create a Corrective Action process, but couldn't write any code. (She was gone before I got there.) So, if MS can influence people to not use a high-powered tool with a low-skilled driver, the reputation of Access as a business app will improve. They may already be doing this by providing a large number of usable templates for people to use 'out of the box.' That's my 10 cents (with inflation)! And - Shamil - where is this report published? I'd like to be able to refer prospective customers to it. Dan Waters -----Original Message----- Subject: [AccessD] Moving out of MS Access? Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? What do you think and what do you see there overseas? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Does this mean there is a demand for the new MS Access development or just that there is no usually any need to migrate old MS Access applications to MS SQL/.NET? Microsoft Office Access and Enterprise IT Case Study: Streamlining Application Development Peter Mullen is Manager of Application Development in the corporate services department of a Fortune 500 insurance company with almost 50,000 employees and over 500 offices in 120 countries. Following a major acquisition, the company undertook a reorganization that involved centralizing its data management. Mullen, who had some experience working with Microsoft Office Access, started exploring the ways that Access database applications were being deployed across the enterprise. He was stunned to learn how pervasively Access was being used. Mullen says, ?Access was all over the place doing so many things that it blew my mind. Once I became known as ?The Access Guy? there were people all over the company who wanted my time.? Not surprisingly, the quality of the Access applications Mullen discovered was quite variable. To Mullen?s trained eye, some were in fact very poorly designed, and yet they were getting the job done. Mullen also found positions hidden in the payroll in the field that consisted essentially of supporting a small number of departmental Access applications. Mullen and his manager put together a presentation for the Chief Information Officer (CIO), proposing that the IT department begin formally supporting Access development at the company. They outlined a strategy for centralizing and rationalizing management of the Access applications that were evolving under the radar of their traditional portfolio management. The CIO saw the value in this proposal right away, and Mullen became the lead developer of a new group that was formed for this purpose. Mullen?s group created and nurtured the use of naming standards, coding standards, and standard methodologies. They also were able to reduce headcount in the field as support activities were centralized. Mullen reports that after about two years, ?We had standard code; we had about 200 applications, and we were handling it. We started to rationalize our portfolio and really started to communicate exactly what we were doing to IT. This was the key point?that a lot of people in the organization started to see what we were really about. These were complicated problems being solved without spending a lot of money.? As more people in the IT organization learned of the success of Mullen?s group, he began to receive requests for ?bolt-on applications, small department tracking projects, and proofs of concept. We hit a few of these and we had a real perceived value to the organization.? Mullen summarizes what he?s learned about the optimal role of Access in the enterprise as follows: ?Access development in corporate organizations is simply a reality. People in the business are constantly looking for ways to add value to their customers and to free up their staff from mundane chores using automation that is inexpensive and easily accomplished. This is the strength of Access. The problem, from an IT perspective, is that the business comes to depend on products created without any IT involvement. Someone?usually an outsider or a low-level employee?becomes vital to the support of the product. So the question for IT becomes, ?Will we provide support for this process?? In my experience, providing an organized group that can create and support Access applications is a solid investment. It adds real and perceived value to the business and prevents a whole portfolio of applications from being developed under the radar of IT.? Mullen continues, ?IT usually looks at all of the Access applications that are developed in the field as problems to be eliminated. I look at them and I see opportunity. Applications developed in the field are sometimes things that should never have been created; yet often they are products that are highly valued and fill a real need. By treating field applications (which most often means Access) with respect, and providing support and portfolio management, you can sometimes find patterns of demand in your organization and help drive real IT value back to the business.? Mullen is now working with the Architecture Team in his organization to identify candidates for migration to SQL Server and .NET applications. Mullen says, ?Much of our portfolio will remain in Access, but some will migrate. There will always be a need for those quick and inexpensive solutions. The important thing is to keep track of these applications. They are the fingertips of your IT organization.? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Access developers, administrators, and users now have a new toolkit to aid them in analyzing Access 97 databases for upgrade and conversion to Access 2003. Users can take advantage of the tools in the Access 2003 Conversion Toolkit to find and analyze databases in preparation for switching to Access 2003. For upgrading to the 2007 release, Microsoft plans to release the Microsoft Office Migration Planning Manager. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tuxedoman888 at gmail.com Wed Sep 27 14:27:10 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 27 Sep 2006 12:27:10 -0700 Subject: [AccessD] OT Outlook In-Reply-To: References: <000001c6e25e$cea87eb0$6401a8c0@nant> Message-ID: <7c8826480609271227j7d99434dh373294adbfd7c4f4@mail.gmail.com> Outlook Data Files Locations http://itinfo.mit.edu/article.php?id=6972 On 9/27/06, Martin Reid wrote: > > Anyone know where I can find outlooks configuration file?? > > Martin > > > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From mwp.reid at qub.ac.uk Wed Sep 27 14:38:59 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 27 Sep 2006 20:38:59 +0100 Subject: [AccessD] OT Outlook References: <000001c6e25e$cea87eb0$6401a8c0@nant> <7c8826480609271227j7d99434dh373294adbfd7c4f4@mail.gmail.com> Message-ID: Thanks Billy I am up to my neck in Outlook, Access, XML and XSD and I havnt a clue what I am doing (<: Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Billy Pang Sent: Wed 27/09/2006 20:27 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook Outlook Data Files Locations http://itinfo.mit.edu/article.php?id=6972 On 9/27/06, Martin Reid wrote: > > Anyone know where I can find outlooks configuration file?? > > Martin > > > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Sep 27 14:40:37 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 27 Sep 2006 12:40:37 -0700 Subject: [AccessD] Moving out of MS Access? In-Reply-To: References: <000001c6e25e$cea87eb0$6401a8c0@nant> Message-ID: <451AD3B5.8060707@shaw.ca> With regards to SharePoint, I am hearing a lot of concerns from Senior Records Manager about the absence of two tier authentication. I have heard of hacks into Sharepoint with regards to patient health care records. Martin Reid wrote: >Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. > >I actually wrote an article for Microsoft on what happens after moving them to SQL Server >http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx > >At that time was a big PR push to move them to SQL Server. > >The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. > >I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov >Sent: Wed 27/09/2006 19:00 >To: 'Access-D' >Subject: [AccessD] Moving out of MS Access? > > > > >Hi All, > >Is this article from http://blogs.msdn.com/access/default.aspx just a cry of >MS Access Team trying to stop the massive(?) exodus of MS Access developers >or it shows the real picture and place of MS Access in corporate world and >that MS Access isn't yet dead for real business tasks development ? > > > > -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Wed Sep 27 14:42:10 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 27 Sep 2006 14:42:10 -0500 Subject: [AccessD] Moving out of MS Access? In-Reply-To: <24025144.1159384445311.JavaMail.root@sniper51> Message-ID: <003501c6e26d$062fdaf0$0200a8c0@danwaters> Thanks Shamil! It's good to hear some words from MS about where and where not to use Access. Most importantly, this will validate to many companies that Access can be used for many of their applications. Dan Waters -----Original Message----- Subject: Re: [AccessD] Moving out of MS Access? Hi Dan, The quoted article is published here (watch line wraps): http://blogs.msdn.com/access/archive/2006/07/27/680772.aspx#comments <<< So, if MS can influence people to not use a high-powered tool with a low-skilled driver, the reputation of Access as a business app will improve. >>> Maybe write a petition to Microsoft to include MS Access 2007 runtime into MS Windows Vista? :) (Now, when MS Windows release is delayed and MS Office 12 release is on the way that could be possible to do?) BTW, "MS Access" gives ~112 million hits on google and Visual studio "just" ~87 million... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 27, 2006 10:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Moving out of MS Access? Hi Shamil, This is just about my favorite soapbox! In any organization, there is someone or a few people who learn how to begin using Access as a database, usually to track or manage a departmental activity. They use it themselves, then learn that with a few changes, it can become a shared database. But then even more people start using it, and it breaks due to poor design. But by now, the department (or company) depends on it. So the department manager goes to the IT department and tells them that he needs this database fixed right away! Predictably, the IT department sees this scenario more than they want to. From their perspective, they must now go into a significant database design effort, with no time planned for and no budget planned for. After a few times of this, it's easy to see why Access gets blamed. So, to get off the hook, the IT department will blame Access, and demand that Access no longer be used for company applications. You really can't blame them. The problem is that Access is too easy to use to create a useful application without the 'developer' having training. Think about VB - you don't just up and make a VB front end app with back end tables without some training! I have one customer which uses my Access app for Corrective Action, Nonconforming Material, Debit Memos, Die Cast Machine Settings, Vacation Requests, Attendance Tracking, Warnings, Controlled Documents, and soon to be Training Management. This is all in one FE, using a separate .mdb for Temp tables, a library database with forms, reports, and standard modules, and a BE data .mdb. It's very effective, and they literally don't have to hire as many people. So yes - Access can be used very effectively for business applications. Interestingly, one of the reasons I started working with them is because they had a Quality Engineer who tried to create a Corrective Action process, but couldn't write any code. (She was gone before I got there.) So, if MS can influence people to not use a high-powered tool with a low-skilled driver, the reputation of Access as a business app will improve. They may already be doing this by providing a large number of usable templates for people to use 'out of the box.' That's my 10 cents (with inflation)! And - Shamil - where is this report published? I'd like to be able to refer prospective customers to it. Dan Waters -----Original Message----- Subject: [AccessD] Moving out of MS Access? Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? What do you think and what do you see there overseas? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Does this mean there is a demand for the new MS Access development or just that there is no usually any need to migrate old MS Access applications to MS SQL/.NET? Microsoft Office Access and Enterprise IT Case Study: Streamlining Application Development Peter Mullen is Manager of Application Development in the corporate services department of a Fortune 500 insurance company with almost 50,000 employees and over 500 offices in 120 countries. Following a major acquisition, the company undertook a reorganization that involved centralizing its data management. Mullen, who had some experience working with Microsoft Office Access, started exploring the ways that Access database applications were being deployed across the enterprise. He was stunned to learn how pervasively Access was being used. Mullen says, ?Access was all over the place doing so many things that it blew my mind. Once I became known as ?The Access Guy? there were people all over the company who wanted my time.? Not surprisingly, the quality of the Access applications Mullen discovered was quite variable. To Mullen?s trained eye, some were in fact very poorly designed, and yet they were getting the job done. Mullen also found positions hidden in the payroll in the field that consisted essentially of supporting a small number of departmental Access applications. Mullen and his manager put together a presentation for the Chief Information Officer (CIO), proposing that the IT department begin formally supporting Access development at the company. They outlined a strategy for centralizing and rationalizing management of the Access applications that were evolving under the radar of their traditional portfolio management. The CIO saw the value in this proposal right away, and Mullen became the lead developer of a new group that was formed for this purpose. Mullen?s group created and nurtured the use of naming standards, coding standards, and standard methodologies. They also were able to reduce headcount in the field as support activities were centralized. Mullen reports that after about two years, ?We had standard code; we had about 200 applications, and we were handling it. We started to rationalize our portfolio and really started to communicate exactly what we were doing to IT. This was the key point?that a lot of people in the organization started to see what we were really about. These were complicated problems being solved without spending a lot of money.? As more people in the IT organization learned of the success of Mullen?s group, he began to receive requests for ?bolt-on applications, small department tracking projects, and proofs of concept. We hit a few of these and we had a real perceived value to the organization.? Mullen summarizes what he?s learned about the optimal role of Access in the enterprise as follows: ?Access development in corporate organizations is simply a reality. People in the business are constantly looking for ways to add value to their customers and to free up their staff from mundane chores using automation that is inexpensive and easily accomplished. This is the strength of Access. The problem, from an IT perspective, is that the business comes to depend on products created without any IT involvement. Someone?usually an outsider or a low-level employee?becomes vital to the support of the product. So the question for IT becomes, ?Will we provide support for this process?? In my experience, providing an organized group that can create and support Access applications is a solid investment. It adds real and perceived value to the business and prevents a whole portfolio of applications from being developed under the radar of IT.? Mullen continues, ?IT usually looks at all of the Access applications that are developed in the field as problems to be eliminated. I look at them and I see opportunity. Applications developed in the field are sometimes things that should never have been created; yet often they are products that are highly valued and fill a real need. By treating field applications (which most often means Access) with respect, and providing support and portfolio management, you can sometimes find patterns of demand in your organization and help drive real IT value back to the business.? Mullen is now working with the Architecture Team in his organization to identify candidates for migration to SQL Server and .NET applications. Mullen says, ?Much of our portfolio will remain in Access, but some will migrate. There will always be a need for those quick and inexpensive solutions. The important thing is to keep track of these applications. They are the fingertips of your IT organization.? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Access developers, administrators, and users now have a new toolkit to aid them in analyzing Access 97 databases for upgrade and conversion to Access 2003. Users can take advantage of the tools in the Access 2003 Conversion Toolkit to find and analyze databases in preparation for switching to Access 2003. For upgrading to the 2007 release, Microsoft plans to release the Microsoft Office Migration Planning Manager. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Sep 27 14:52:47 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 27 Sep 2006 20:52:47 +0100 Subject: [AccessD] Moving out of MS Access? References: <000001c6e25e$cea87eb0$6401a8c0@nant> <451AD3B5.8060707@shaw.ca> Message-ID: Martin Can you expand on that. I am goign to start a large pilot in Sharepoint in a week or so. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Wed 27/09/2006 20:40 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Moving out of MS Access? With regards to SharePoint, I am hearing a lot of concerns from Senior Records Manager about the absence of two tier authentication. I have heard of hacks into Sharepoint with regards to patient health care records. Martin Reid wrote: >Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. > >I actually wrote an article for Microsoft on what happens after moving them to SQL Server >http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx > >At that time was a big PR push to move them to SQL Server. > >The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. > >I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov >Sent: Wed 27/09/2006 19:00 >To: 'Access-D' >Subject: [AccessD] Moving out of MS Access? > > > > >Hi All, > >Is this article from http://blogs.msdn.com/access/default.aspx just a cry of >MS Access Team trying to stop the massive(?) exodus of MS Access developers >or it shows the real picture and place of MS Access in corporate world and >that MS Access isn't yet dead for real business tasks development ? > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Sep 27 14:53:18 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 27 Sep 2006 20:53:18 +0100 Subject: [AccessD] OT Outlook References: <000001c6e25e$cea87eb0$6401a8c0@nant><7c8826480609271227j7d99434dh373294adbfd7c4f4@mail.gmail.com> Message-ID: How can I turn on a Com add in in outlook via code using VBA. The add in is of by default. I dont know its name by the way (<: Generics will do if anyone knows I can work it out from there. Martin (wading about in the dark in Belfast) Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From shamil at users.mns.ru Wed Sep 27 15:33:45 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 28 Sep 2006 00:33:45 +0400 Subject: [AccessD] OT Outlook In-Reply-To: Message-ID: <000301c6e274$3b1d56a0$6401a8c0@nant> Martin, In MS Access you can do: Access.Application.COMAddIns(1).connect=True To connect the first of registered COM Add-Ins. I believe in Outlook it should be: Outlook.Application.COMAddIns(1).connect=True To identify the add-in you can cycle COMAddins collection and use ProgId or Descriptin properties. Here is just debug.print cycling sample: Dim myAddIn As Office.COMAddIn For Each myAddIn In Access.Application.COMAddIns With myAddIn Debug.Print "Connected = " & .Connect; Debug.Print " , ProgId = " & .ProgId & " - "; Debug.Print .Description End With Next myAddIn To use this code you have to have a reference set to MS Office object library - I expect it should be set in MS Outlook VBA by default... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 27, 2006 11:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook How can I turn on a Com add in in outlook via code using VBA. The add in is of by default. I dont know its name by the way (<: Generics will do if anyone knows I can work it out from there. Martin (wading about in the dark in Belfast) Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Jim.Hale at FleetPride.com Wed Sep 27 16:45:52 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 27 Sep 2006 16:45:52 -0500 Subject: [AccessD] Moving out of MS Access? Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFE0@corp-es01.fleetpride.com> Speaking of hacks I read recently about a copier hack. Apparently the hard drive on modern copiers is just as susceptible as any HD to being compromised. Also, leased copiers are usually returned without the disk being wiped so they usually have sensitive data still on them. One more thing to worry about. Jim Hale -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Wednesday, September 27, 2006 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Moving out of MS Access? With regards to SharePoint, I am hearing a lot of concerns from Senior Records Manager about the absence of two tier authentication. I have heard of hacks into Sharepoint with regards to patient health care records. Martin Reid wrote: >Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. > >I actually wrote an article for Microsoft on what happens after moving them to SQL Server >http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx > >At that time was a big PR push to move them to SQL Server. > >The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. > >I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov >Sent: Wed 27/09/2006 19:00 >To: 'Access-D' >Subject: [AccessD] Moving out of MS Access? > > > > >Hi All, > >Is this article from http://blogs.msdn.com/access/default.aspx just a cry of >MS Access Team trying to stop the massive(?) exodus of MS Access developers >or it shows the real picture and place of MS Access in corporate world and >that MS Access isn't yet dead for real business tasks development ? > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From john at winhaven.net Wed Sep 27 17:58:23 2006 From: john at winhaven.net (John Bartow) Date: Wed, 27 Sep 2006 17:58:23 -0500 Subject: [AccessD] DMax issue In-Reply-To: Message-ID: <035501c6e288$6f79a2f0$6501a8c0@ScuzzPaq> Thanks Gustav -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Then you can reduce to: = "'" & DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = '" & [Forms]![frmProject]![txtJobNumber] & "'") + 1 & "'" From cfoust at infostatsystems.com Wed Sep 27 20:01:03 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Sep 2006 18:01:03 -0700 Subject: [AccessD] VSS - Build from source error question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35935@ADGSERVER> Message-ID: That looks right to me. If you see the VSS toolbar in Access, you have the add-in, although there is a later version of VSS and the 2003 add-in works in AXP, at least against the latest version of VSS. What happens if you simply delete those files (not permanently) in source safe? Hang on! I just realized why the ACS extension wasn't familiar. In Access, those represent macros (i.e., scripts), which we never really use. You may be able to recreate them if it's just things like AutoExce and Autokeys. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 11:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VSS - Build from source error question... What is the correct order to install this stuff. Here's the way I did it: 1) Install Access 97 2) Install Access 97 dev tools 3) Install Office XP 4) Install Office XP dev tools 5) Install VSS client (6.0c) Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VSS - Build from source error question... Hi Charlotte, I am running Access XP. I installed the XP Developer Tools also. The I installed the VSS 6.0c client. Did I miss something? I can see the VSS toolbar in Access. I had never seen the .ACS files either. I am thinking that I have not installed something or that I did something out of order. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 27, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VSS - Build from source error question... Normally, forms and subforms have the ACF file extension, reports and subreports have ACR, queries have ACQ, modules have ACM and the ACB and CAN files contain the miscellaneous data objects. I've never run into ACS files so they must be for objects we don't use. You have the current Access VSS add-in installed? The 2003 add-in is supposed to work for XP as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS - Build from source error question... Hey, I rebuilt my machine here at work and was trying to build from source in VSS. It gave me many "can not import file xxx' messages. The ones giving this error are some of the form and report files. When I look at the .SCC directory under my project, I see 221 objects (out of 1457 objects) that have as their type 'Microsoft Agent Character File (HTTP format)' and 27 objects that have the type 'Microsoft Agent Character File'. It looks like only the .ACF files get the 'Microsoft Agent Character File (HTTP format)' type and the .ACS files get the 'Microsoft Agent Character File' type. Has anyone run into this before? Anyone know how to fix it? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Thu Sep 28 03:24:54 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 28 Sep 2006 09:24:54 +0100 Subject: [AccessD] OT Outlook References: <000301c6e274$3b1d56a0$6401a8c0@nant> Message-ID: Shamil Just repeats the same add in over and over Connected = False , ProgId = AceCnfViewer.sortie - Microsoft Office 12.0 Access Database Engine Conflict Resolver Connected = False , ProgId = CnfViewer.sortie - #401 Its Access 2007. What I am doing is trying to set the Data Collection Email add in in Outlook to true. It is off by default. Data Collection is a wizard activity but you can code it. In order to code for it you need to set the com add in in OUtlook 2007 to on. It is turned on when you first run the wizard. Sort of feeling my way in the dark here are com add ins are out of my area. Also have to create XML on the fly as well. Still havnt worked that bit out yet either (<: but it is interesting. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 27/09/2006 21:33 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT Outlook Martin, In MS Access you can do: Access.Application.COMAddIns(1).connect=True To connect the first of registered COM Add-Ins. I believe in Outlook it should be: Outlook.Application.COMAddIns(1).connect=True To identify the add-in you can cycle COMAddins collection and use ProgId or Descriptin properties. Here is just debug.print cycling sample: Dim myAddIn As Office.COMAddIn For Each myAddIn In Access.Application.COMAddIns With myAddIn Debug.Print "Connected = " & .Connect; Debug.Print " , ProgId = " & .ProgId & " - "; Debug.Print .Description End With Next myAddIn To use this code you have to have a reference set to MS Office object library - I expect it should be set in MS Outlook VBA by default... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 27, 2006 11:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook How can I turn on a Com add in in outlook via code using VBA. The add in is of by default. I dont know its name by the way (<: Generics will do if anyone knows I can work it out from there. Martin (wading about in the dark in Belfast) Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Sep 28 03:49:46 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 28 Sep 2006 12:49:46 +0400 Subject: [AccessD] OT Outlook In-Reply-To: Message-ID: <000c01c6e2db$0cd070e0$6401a8c0@nant> <<< Just repeats the same add in over and over >>> Hello Martin, Does it mean that you have more than two Outlook Add-ins installed? Do you have "COM Add-ins" menu entry under "Tools" menu bar? (If not - you can put it there by using Right-Click->Customize... (it's "buried" in Tools commands)) When using Tools->COM Add-ins how many COM add-in do you see in the list? As far as I see there are only two: 1. Connected = False , ProgId = AceCnfViewer.sortie - Microsoft Office 12.0 Access Database Engine Conflict Resolver 2. Connected = False , ProgId = CnfViewer.sortie - #401 To programmatically from VBA code activate the first one this code line should be enough: Outlook.Application.COMAddIns(1).connect=True To activate AceCnfViewer.sortie add-in in the case it's not the first in the list this code can be used: Option compare text ... Dim myAddIn As Office.COMAddIn For Each myAddIn In Office.Application.COMAddIns With myAddIn If .ProgId = "CnfViewer.sortie" then .Connect = True Exit for End if End With Next myAddIn -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, September 28, 2006 12:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook Shamil Just repeats the same add in over and over Connected = False , ProgId = AceCnfViewer.sortie - Microsoft Office 12.0 Access Database Engine Conflict Resolver Connected = False , ProgId = CnfViewer.sortie - #401 Its Access 2007. What I am doing is trying to set the Data Collection Email add in in Outlook to true. It is off by default. Data Collection is a wizard activity but you can code it. In order to code for it you need to set the com add in in OUtlook 2007 to on. It is turned on when you first run the wizard. Sort of feeling my way in the dark here are com add ins are out of my area. Also have to create XML on the fly as well. Still havnt worked that bit out yet either (<: but it is interesting. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 27/09/2006 21:33 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT Outlook Martin, In MS Access you can do: Access.Application.COMAddIns(1).connect=True To connect the first of registered COM Add-Ins. I believe in Outlook it should be: Outlook.Application.COMAddIns(1).connect=True To identify the add-in you can cycle COMAddins collection and use ProgId or Descriptin properties. Here is just debug.print cycling sample: Dim myAddIn As Office.COMAddIn For Each myAddIn In Access.Application.COMAddIns With myAddIn Debug.Print "Connected = " & .Connect; Debug.Print " , ProgId = " & .ProgId & " - "; Debug.Print .Description End With Next myAddIn To use this code you have to have a reference set to MS Office object library - I expect it should be set in MS Outlook VBA by default... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 27, 2006 11:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook How can I turn on a Com add in in outlook via code using VBA. The add in is of by default. I dont know its name by the way (<: Generics will do if anyone knows I can work it out from there. Martin (wading about in the dark in Belfast) Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Thu Sep 28 04:34:28 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 28 Sep 2006 10:34:28 +0100 Subject: [AccessD] OT Outlook References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: Thansk Shamil I have 6 add ins showing up in outlook Microsoft Access Add in for data collection (This is the one I am interested in) Microsoft Exchange Oulook add in SharePoint Addin Outlook Mobile Service VBA for Outlook SnagIt Add in (Graphic Package we use) But I think I can sort it now thats to you example Thanks and Best Wishes Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Thu 28/09/2006 09:49 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT Outlook <<< Just repeats the same add in over and over >>> Hello Martin, Does it mean that you have more than two Outlook Add-ins installed? Do you have "COM Add-ins" menu entry under "Tools" menu bar? (If not - you can put it there by using Right-Click->Customize... (it's "buried" in Tools commands)) When using Tools->COM Add-ins how many COM add-in do you see in the list? As far as I see there are only two: 1. Connected = False , ProgId = AceCnfViewer.sortie - Microsoft Office 12.0 Access Database Engine Conflict Resolver 2. Connected = False , ProgId = CnfViewer.sortie - #401 To programmatically from VBA code activate the first one this code line should be enough: Outlook.Application.COMAddIns(1).connect=True To activate AceCnfViewer.sortie add-in in the case it's not the first in the list this code can be used: Option compare text ... Dim myAddIn As Office.COMAddIn For Each myAddIn In Office.Application.COMAddIns With myAddIn If .ProgId = "CnfViewer.sortie" then .Connect = True Exit for End if End With Next myAddIn -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, September 28, 2006 12:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook Shamil Just repeats the same add in over and over Connected = False , ProgId = AceCnfViewer.sortie - Microsoft Office 12.0 Access Database Engine Conflict Resolver Connected = False , ProgId = CnfViewer.sortie - #401 Its Access 2007. What I am doing is trying to set the Data Collection Email add in in Outlook to true. It is off by default. Data Collection is a wizard activity but you can code it. In order to code for it you need to set the com add in in OUtlook 2007 to on. It is turned on when you first run the wizard. Sort of feeling my way in the dark here are com add ins are out of my area. Also have to create XML on the fly as well. Still havnt worked that bit out yet either (<: but it is interesting. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 27/09/2006 21:33 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT Outlook Martin, In MS Access you can do: Access.Application.COMAddIns(1).connect=True To connect the first of registered COM Add-Ins. I believe in Outlook it should be: Outlook.Application.COMAddIns(1).connect=True To identify the add-in you can cycle COMAddins collection and use ProgId or Descriptin properties. Here is just debug.print cycling sample: Dim myAddIn As Office.COMAddIn For Each myAddIn In Access.Application.COMAddIns With myAddIn Debug.Print "Connected = " & .Connect; Debug.Print " , ProgId = " & .ProgId & " - "; Debug.Print .Description End With Next myAddIn To use this code you have to have a reference set to MS Office object library - I expect it should be set in MS Outlook VBA by default... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 27, 2006 11:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook How can I turn on a Com add in in outlook via code using VBA. The add in is of by default. I dont know its name by the way (<: Generics will do if anyone knows I can work it out from there. Martin (wading about in the dark in Belfast) Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Sep 28 11:08:13 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 28 Sep 2006 09:08:13 -0700 Subject: [AccessD] Moving out of MS Access? In-Reply-To: References: <000001c6e25e$cea87eb0$6401a8c0@nant> <451AD3B5.8060707@shaw.ca> Message-ID: <451BF36D.3010805@shaw.ca> Well the big problem with Sharepoint you only go through Windows authentication so someone accesses the app with a userid and password from anywhere. If someone just steals the password, your app is compromised. Easily done in a hospital setting So you set up a second tier authentication that identifies the terminal or actual user This can be done by RSA certificates in IE, USB dongles or biometric thumbprints what you use is determined by ease of use for the user. You are probably looking at prices around $10,000 to setup this tier but this can balanced off by whatever fines you might have to pay for data compromise, determined by your countries Data Protection Act. I seem to remember some continental European Banks adding this tier recently for clients using internet banking via a USB dongle Talked to my brother last night and he will send you some papers on this from Documentum (now EMC) and FileNet that cover this for Sharepoint 2003 These are the big two document management systems in use in US outside of IBM's systems but both have some hooks to Sharepoint. Martin Reid wrote: >Martin > >Can you expand on that. I am goign to start a large pilot in Sharepoint in a week or so. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly >Sent: Wed 27/09/2006 20:40 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Moving out of MS Access? > > > >With regards to SharePoint, I am hearing a lot of concerns from Senior >Records Manager about the absence of two tier authentication. I have >heard of hacks >into Sharepoint with regards to patient health care records. > >Martin Reid wrote: > > > >>Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. >> >>I actually wrote an article for Microsoft on what happens after moving them to SQL Server >>http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx >> >>At that time was a big PR push to move them to SQL Server. >> >>The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. >> >>I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. >> >>Martin >> >>Martin WP Reid >>Training and Assessment Unit >>Riddle Hall >>Belfast >> >>tel: 02890 974477 >> >> >>________________________________ >> >>From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov >>Sent: Wed 27/09/2006 19:00 >>To: 'Access-D' >>Subject: [AccessD] Moving out of MS Access? >> >> >> >> >>Hi All, >> >>Is this article from http://blogs.msdn.com/access/default.aspx just a cry of >>MS Access Team trying to stop the massive(?) exodus of MS Access developers >>or it shows the real picture and place of MS Access in corporate world and >>that MS Access isn't yet dead for real business tasks development ? >> >> >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > >-- > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Thu Sep 28 13:02:53 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 28 Sep 2006 19:02:53 +0100 Subject: [AccessD] Outlook and Access References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: Heres a folder "number" 00000000DED792DDC981714FBC3FD0EB94D7AB9382820000 Given the above which I am assuming to be a GUID reference to the outlook folder,. how can I find the folder name from Access. I already know which folder this is I am just trying to work this process via code. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Thu Sep 28 13:18:11 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 28 Sep 2006 19:18:11 +0100 Subject: [AccessD] XML References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: Note I didnt prefix this OT as it isnt. Its part of Access 2007 Data Collection Via Email Given the following structure and data would it be easier to use VBA to create this or simply type up the XML in an editor. In fact would you use VBA at all? I could do this in 30 seconds in an XML editor. I havnt a clue where to start with the VBA side of this. In terms of Access this is dropped into a Memo field. true true 25 0 true true false 0 true
Street AddressOne Perimeter Park South
CityBirmingham
St ateAL
ZIP Code35243
CountryUS
Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From hollisvj at pgdp.usec.com Thu Sep 28 14:13:02 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 28 Sep 2006 14:13:02 -0500 Subject: [AccessD] Select All Text in DropDown Message-ID: <703BDA18A87DFA4CB265A86F42E4178D010147FE@c2k3exchange.pgdp.corp.usec.com> I have a form with a combo box that brings up the data for the selected name in the dropdown. When the user enters, clicks, or has the focus of the combo I need it to select all the text in the field. For some reason it always goes to the beginning of the field so they can't just start typing a name to find it, they always have to scroll the list or highlight the text in the box first, then delete it or start typing after it is highlighted. They want the text in the combo from the current record to already be highlighted so they can easily find another record by typing the person's name without any extra steps. I tried this, but it only highlights the first 3 characters of the name instead of the whole name. How does it determine the length of the field and select all of it? Private Sub FindName_GotFocus() FindName.SetFocus FindName.SelLength = Len(FindName) End Sub Virginia From wdhindman at dejpolsystems.com Thu Sep 28 14:34:54 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 28 Sep 2006 15:34:54 -0400 Subject: [AccessD] Select All Text in DropDown References: <703BDA18A87DFA4CB265A86F42E4178D010147FE@c2k3exchange.pgdp.corp.usec.com> Message-ID: <018d01c6e335$2d6fc7b0$153ce944@50NM721> ...tools/options/keyboard/select entire field? William Hindman ----- Original Message ----- From: "Hollis, Virginia" To: Sent: Thursday, September 28, 2006 3:13 PM Subject: [AccessD] Select All Text in DropDown >I have a form with a combo box that brings up the data for the selected > name in the dropdown. When the user enters, clicks, or has the focus of > the combo I need it to select all the text in the field. For some reason > it always goes to the beginning of the field so they can't just start > typing a name to find it, they always have to scroll the list or > highlight the text in the box first, then delete it or start typing > after it is highlighted. They want the text in the combo from the > current record to already be highlighted so they can easily find another > record by typing the person's name without any extra steps. > > > > I tried this, but it only highlights the first 3 characters of the name > instead of the whole name. How does it determine the length of the field > and select all of it? > > > > Private Sub FindName_GotFocus() > > > > FindName.SetFocus > > FindName.SelLength = Len(FindName) > > > > End Sub > > > > Virginia > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mwp.reid at qub.ac.uk Thu Sep 28 14:52:32 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 28 Sep 2006 20:52:32 +0100 Subject: [AccessD] GUID PK References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: Havnt needed this much help in some time I am doing an update to a system table. The table has a PK of ReplicationID Data type number. The insert includes some of the XML stuff I posted earlier. The new issue is when you run the wizard the insert happens by magic including the GUID PK. How can I create this GUID via CODE? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DElam at jenkens.com Thu Sep 28 15:22:38 2006 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 28 Sep 2006 15:22:38 -0500 Subject: [AccessD] Access Security Problems Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DE6AE@natexch.jenkens.com> I have a database that I did not create that is secured with the standard Access Security. Yesterday, I was asked to add a user to the security and could not get or add data to the accounts. When I try to open it I get errors saying Record(s) cannot be read; no read permission on MSysAccounts. I get this 3 or 4 times and then it opens to the security window, but it is blank and will not let me add data. I am guessing I would need to rebuild the security, and I actually took the opportunity to get the database owners to agree to turn the security off in favor of a few measures to prevent accidental intrusions which is really all they needed. I imported the objects into a new database and thought I had the security purged, but unfortunately the forms are secured just enough to give errors when adding records. With the security messed up, I cannot even look at the permissions, much less change them. I know the login I am using has full permissions, but the program is not allowing them. Anyone know a quick simple way to get rid of this? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From shamil at users.mns.ru Thu Sep 28 15:37:37 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 29 Sep 2006 00:37:37 +0400 Subject: [AccessD] GUID PK In-Reply-To: Message-ID: <000d01c6e33d$ef9fb810$6401a8c0@nant> Martin, The code you look for should be in AccessD archives - Marty posted it here quite some time ago as far as I can remember. Other sources: http://www.freevbcode.com/ShowCode.Asp?ID=21 http://www.vbaccelerator.com/codelib/tlb/guid.htm there should be many others... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, September 28, 2006 11:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] GUID PK Havnt needed this much help in some time I am doing an update to a system table. The table has a PK of ReplicationID Data type number. The insert includes some of the XML stuff I posted earlier. The new issue is when you run the wizard the insert happens by magic including the GUID PK. How can I create this GUID via CODE? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Thu Sep 28 16:22:04 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 28 Sep 2006 16:22:04 -0500 Subject: [AccessD] Access Security Problems Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113E017@MARLOW_MAIN2.marlow.com> The security should no longer be there if you imported them into a new database. When you imported them, was it done with the plain old system.mdw and the Admin user? Drew -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Thursday, September 28, 2006 3:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access Security Problems I have a database that I did not create that is secured with the standard Access Security. Yesterday, I was asked to add a user to the security and could not get or add data to the accounts. When I try to open it I get errors saying Record(s) cannot be read; no read permission on MSysAccounts. I get this 3 or 4 times and then it opens to the security window, but it is blank and will not let me add data. I am guessing I would need to rebuild the security, and I actually took the opportunity to get the database owners to agree to turn the security off in favor of a few measures to prevent accidental intrusions which is really all they needed. I imported the objects into a new database and thought I had the security purged, but unfortunately the forms are secured just enough to give errors when adding records. With the security messed up, I cannot even look at the permissions, much less change them. I know the login I am using has full permissions, but the program is not allowing them. Anyone know a quick simple way to get rid of this? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Thu Sep 28 18:49:31 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 28 Sep 2006 18:49:31 -0500 Subject: [AccessD] OT: Friday Humor Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFEB@corp-es01.fleetpride.com> Subject: Classified Ad Found in Newspaper > Date: Thu, 28 Sep 2006 08:39:06 -0400 > > $10,000 > 06' Suzuki GSXR 1000 > Farmington, UT 84025 - Aug 7, 2006 > > 2006 Suzuki 1000. This bike is perfect! It has 1000 miles and has had > its 500 mile dealer service. (Expensive) It's been adult ridden, > allwheels have always been on the ground. I use it as a > cruiser/commuter. I'm selling it because it was purchased without > proper consent of a Loving wife. Apparently "Do whatever the hell > you want" Doesn't mean what I thought. > > Call Steve...(801)867-8292 > *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From dwaters at usinternet.com Thu Sep 28 19:01:45 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 28 Sep 2006 19:01:45 -0500 Subject: [AccessD] OT: Friday Humor In-Reply-To: <2535494.1159487622542.JavaMail.root@sniper11> Message-ID: <003e01c6e35a$747bccb0$0200a8c0@danwaters> Any AccessD folks near Farmington Utah? C'mon! Of course any statement that starts, "Do Whatever.." means, "You better not..."! He must have skipped pre-marriage class! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 28, 2006 6:50 PM To: 'Accessd (E-mail) Subject: [AccessD] OT: Friday Humor Subject: Classified Ad Found in Newspaper > Date: Thu, 28 Sep 2006 08:39:06 -0400 > > $10,000 > 06' Suzuki GSXR 1000 > Farmington, UT 84025 - Aug 7, 2006 > > 2006 Suzuki 1000. This bike is perfect! It has 1000 miles and has had > its 500 mile dealer service. (Expensive) It's been adult ridden, > allwheels have always been on the ground. I use it as a > cruiser/commuter. I'm selling it because it was purchased without > proper consent of a Loving wife. Apparently "Do whatever the hell > you want" Doesn't mean what I thought. > > Call Steve...(801)867-8292 > *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Sep 28 21:33:49 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 28 Sep 2006 19:33:49 -0700 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: <6.2.3.4.2.20060921073644.022c78b0@pop3.highstream.net> References: <6.2.3.4.2.20060921073644.022c78b0@pop3.highstream.net> Message-ID: <451C860D.5030203@shaw.ca> For those of you wanting to footle around with Access and MS Virtual Earth Here is some sample code, it also dumps the html code to an html file By clicking on map you display Lat/Long position of cursor Option Compare Database Option Explicit Function testVirtualEarthMap() '------------------ 'display Virtual Earth at a fixed LatLong ' then click on map to display Lat/Long position of cursor 'see these for info: 'http://dev.live.com/virtualearth/sdk/ 'http://www.ftponline.com/special/web20/pvarholasp/default.aspx Dim objExplorer As Object Dim objDocument As Object Dim strHTML As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" objExplorer.Toolbar = 1 ' 0= off objExplorer.StatusBar = 1 '0 =off objExplorer.Width = 800 objExplorer.Height = 870 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open 'create html string and dump to a test file strHTML = "" strHTML = strHTML & createhtml WriteFile "c:\gis\test.html", strHTML 'objDocument.Writeln strHTML objDocument.Write strHTML objExplorer.Refresh ' ??This has to be done because of http://local.live.com/veapi.ashx 'objDocument.Close 'stall here Do While (objExplorer.Busy) Loop 'MsgBox "finished" 'Set objExplorer = Nothing 'Set objDocument = Nothing End Function Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML or html String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub Function createhtml() As String Dim strHTML As String strHTML = "" strHTML = strHTML & "Virtual Earth Map" strHTML = strHTML & "" 'When your page has referenced the map control, set up the call to display a default map by completing a LoadMap ( ) method call: strHTML = strHTML & vbCrLf & " " ' strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" ' strhtml = strhtml & vbCrLf & "// -->" 'Last, you display the map: strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "
" strHTML = strHTML & vbCrLf & " right or left click map for latitude longitude position " strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" WriteFile "c:\gis\test.html", strHTML createhtml = strHTML End Function -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Thu Sep 28 23:55:24 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 28 Sep 2006 21:55:24 -0700 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: <451C860D.5030203@shaw.ca> Message-ID: <0J6C005TJ8B72G20@l-daemon> Impressive Marty... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, September 28, 2006 7:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db For those of you wanting to footle around with Access and MS Virtual Earth Here is some sample code, it also dumps the html code to an html file By clicking on map you display Lat/Long position of cursor Option Compare Database Option Explicit Function testVirtualEarthMap() '------------------ 'display Virtual Earth at a fixed LatLong ' then click on map to display Lat/Long position of cursor 'see these for info: 'http://dev.live.com/virtualearth/sdk/ 'http://www.ftponline.com/special/web20/pvarholasp/default.aspx Dim objExplorer As Object Dim objDocument As Object Dim strHTML As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" objExplorer.Toolbar = 1 ' 0= off objExplorer.StatusBar = 1 '0 =off objExplorer.Width = 800 objExplorer.Height = 870 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open 'create html string and dump to a test file strHTML = "" strHTML = strHTML & createhtml WriteFile "c:\gis\test.html", strHTML 'objDocument.Writeln strHTML objDocument.Write strHTML objExplorer.Refresh ' ??This has to be done because of http://local.live.com/veapi.ashx 'objDocument.Close 'stall here Do While (objExplorer.Busy) Loop 'MsgBox "finished" 'Set objExplorer = Nothing 'Set objDocument = Nothing End Function Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML or html String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub Function createhtml() As String Dim strHTML As String strHTML = "" strHTML = strHTML & "Virtual Earth Map" strHTML = strHTML & "" 'When your page has referenced the map control, set up the call to display a default map by completing a LoadMap ( ) method call: strHTML = strHTML & vbCrLf & " " ' strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" ' strhtml = strhtml & vbCrLf & "// -->" 'Last, you display the map: strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "
" strHTML = strHTML & vbCrLf & " right or left click map for latitude longitude position " strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" WriteFile "c:\gis\test.html", strHTML createhtml = strHTML End Function -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Sep 29 00:25:40 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 28 Sep 2006 22:25:40 -0700 Subject: [AccessD] Access Security Problems In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DE6AE@natexch.jenkens.com> References: <7B1961ED924D1A459E378C9B1BB22B4C068DE6AE@natexch.jenkens.com> Message-ID: <451CAE54.2090206@shaw.ca> Just use the LoadFromText and SaveAsText commands to save the forms as text files and reLoad them in new mdb, that will definitely remove the security. To do the whole slew just use this code to place form text files in a temp directory. I have the reverse code somewhere. Also you could try running jetcomp.exe vs a copy of the mdw file just in case it is corrupted it is just another mdb file and run against the copy 'call as Save Objects("c:\temp\aob") Public Function SaveObjects(strPath As String) 'needs directory c:\temp\aob to be created to save text files ' or mkdir "c:\temp\aob Dim strName As String Dim objCollection As Object Dim aob As AccessObject 'check whether code ProjectType running in acMDB or acADP 'this affects what objects can be saved to text files Dim lmdbtype As Long lmdbtype = CurrentProject.ProjectType Debug.Print lmdbtype & " adp type" Select Case lmdbtype Case acMDB Set objCollection = CurrentProject.AllForms saveallobs objCollection, aob, strPath Set objCollection = CurrentProject.AllReports saveallobs objCollection, aob, strPath Case acADP Debug.Print "ADP" Case Else MsgBox "type not found" & lmdbtype End Select End Function Sub saveallobs(objCollection As Object, aob As AccessObject, _ strPath As String) Dim strMDB As String Dim strSplitPath As String For Each aob In objCollection Debug.Print aob.Type; aob.Name; " " & aob.DateModified Next aob For Each aob In objCollection strSplitPath = DescribeTempPath(strPath, aob.Type) SaveAsText aob.Type, aob.Name, strSplitPath & aob.Name & ".txt" End If Next aob End Sub Function DescribeTempPath(path As String, lobtype As Long) As String Dim strobtype As String Select Case lobtype Case acTable strobtype = "Tables" Case acQuery strobtype = "Queries" Case acModule strobtype = "Modules" Case acMacro strobtype = "Macros" Case acForm strobtype = "Forms" Case acReport strobtype = "Reports" Case acDataAccessPage strobtype = "DataAccessPages" Case Else strobtype = "Unknown" End Select Elam, Debbie wrote: >I have a database that I did not create that is secured with the standard >Access Security. Yesterday, I was asked to add a user to the security and >could not get or add data to the accounts. When I try to open it I get >errors saying Record(s) cannot be read; no read permission on MSysAccounts. >I get this 3 or 4 times and then it opens to the security window, but it is >blank and will not let me add data. > >I am guessing I would need to rebuild the security, and I actually took the >opportunity to get the database owners to agree to turn the security off in >favor of a few measures to prevent accidental intrusions which is really all >they needed. I imported the objects into a new database and thought I had >the security purged, but unfortunately the forms are secured just enough to >give errors when adding records. With the security messed up, I cannot even >look at the permissions, much less change them. I know the login I am using >has full permissions, but the program is not allowing them. Anyone know a >quick simple way to get rid of this? > >Debbie >- JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject >to the Attorney-Client Privilege, (2) an attorney work product, or (3) >strictly confidential. If you are not the intended recipient of this >message, you may not disclose, print, copy or disseminate this information. >If you have received this in error, please reply and notify the sender >(only) and delete the message. Unauthorized interception of this e-mail is a >violation of federal criminal law. >This communication does not reflect an intention by the sender or the >sender's client or principal to conduct a transaction or make any agreement >by electronic means. Nothing contained in this message or in any attachment >shall satisfy the requirements for a writing, and nothing contained herein >shall constitute a contract or electronic signature under the Electronic >Signatures in Global and National Commerce Act, any version of the Uniform >Electronic Transactions Act or any other statute governing electronic >transactions. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Sep 29 00:34:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 28 Sep 2006 22:34:35 -0700 Subject: [AccessD] GUID PK In-Reply-To: References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: <451CB06B.6040306@shaw.ca> Here is list of GUID manipulation and creation routines You probably want the canonical string guid. MS GUID routines are not totaly random I think the13'th digit is a 4 to indicate MS generated http://www.trigeminal.com/code/guids.bas Martin Reid wrote: >Havnt needed this much help in some time > >I am doing an update to a system table. The table has a PK of ReplicationID Data type number. > >The insert includes some of the XML stuff I posted earlier. The new issue is when you run the wizard the insert happens by magic including the GUID PK. > >How can I create this GUID via CODE? > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Fri Sep 29 00:49:12 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 29 Sep 2006 01:49:12 -0400 Subject: [AccessD] Access Security Problems References: <7B1961ED924D1A459E378C9B1BB22B4C068DE6AE@natexch.jenkens.com> <451CAE54.2090206@shaw.ca> Message-ID: <006501c6e38a$fe179c30$153ce944@50NM721> http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='EATBloatV2.mdb' ...Max Sherman has the whole to/from text routine put together in this sample ...works well. William Hindman ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, September 29, 2006 1:25 AM Subject: Re: [AccessD] Access Security Problems > Just use the LoadFromText and SaveAsText commands to save the forms as > text files > and reLoad them in new mdb, that will definitely remove the security. > To do the whole slew just use this code to place form text files in a > temp directory. > I have the reverse code somewhere. > > Also you could try running jetcomp.exe vs a copy of the mdw file > just in case it is corrupted it is just another mdb file and run against > the copy > > > 'call as Save Objects("c:\temp\aob") > > Public Function SaveObjects(strPath As String) > 'needs directory c:\temp\aob to be created to save text files > ' or mkdir "c:\temp\aob > > Dim strName As String > Dim objCollection As Object > Dim aob As AccessObject > 'check whether code ProjectType running in acMDB or acADP > 'this affects what objects can be saved to text files > Dim lmdbtype As Long > lmdbtype = CurrentProject.ProjectType > Debug.Print lmdbtype & " adp type" > Select Case lmdbtype > Case acMDB > > Set objCollection = CurrentProject.AllForms > saveallobs objCollection, aob, strPath > Set objCollection = CurrentProject.AllReports > saveallobs objCollection, aob, strPath > > Case acADP > Debug.Print "ADP" > > Case Else > MsgBox "type not found" & lmdbtype > End Select > End Function > > Sub saveallobs(objCollection As Object, aob As AccessObject, _ > strPath As String) > Dim strMDB As String > Dim strSplitPath As String > For Each aob In objCollection > Debug.Print aob.Type; aob.Name; " " & aob.DateModified > Next aob > > For Each aob In objCollection > strSplitPath = DescribeTempPath(strPath, aob.Type) > SaveAsText aob.Type, aob.Name, strSplitPath & aob.Name & ".txt" > End If > Next aob > > End Sub > Function DescribeTempPath(path As String, lobtype As Long) As String > Dim strobtype As String > Select Case lobtype > Case acTable > strobtype = "Tables" > Case acQuery > strobtype = "Queries" > Case acModule > strobtype = "Modules" > Case acMacro > strobtype = "Macros" > Case acForm > strobtype = "Forms" > Case acReport > strobtype = "Reports" > Case acDataAccessPage > strobtype = "DataAccessPages" > Case Else > strobtype = "Unknown" > End Select > > Elam, Debbie wrote: > >>I have a database that I did not create that is secured with the standard >>Access Security. Yesterday, I was asked to add a user to the security and >>could not get or add data to the accounts. When I try to open it I get >>errors saying Record(s) cannot be read; no read permission on >>MSysAccounts. >>I get this 3 or 4 times and then it opens to the security window, but it >>is >>blank and will not let me add data. >> >>I am guessing I would need to rebuild the security, and I actually took >>the >>opportunity to get the database owners to agree to turn the security off >>in >>favor of a few measures to prevent accidental intrusions which is really >>all >>they needed. I imported the objects into a new database and thought I had >>the security purged, but unfortunately the forms are secured just enough >>to >>give errors when adding records. With the security messed up, I cannot >>even >>look at the permissions, much less change them. I know the login I am >>using >>has full permissions, but the program is not allowing them. Anyone know a >>quick simple way to get rid of this? >> >>Debbie >>- JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) >>subject >>to the Attorney-Client Privilege, (2) an attorney work product, or (3) >>strictly confidential. If you are not the intended recipient of this >>message, you may not disclose, print, copy or disseminate this >>information. >>If you have received this in error, please reply and notify the sender >>(only) and delete the message. Unauthorized interception of this e-mail is >>a >>violation of federal criminal law. >>This communication does not reflect an intention by the sender or the >>sender's client or principal to conduct a transaction or make any >>agreement >>by electronic means. Nothing contained in this message or in any >>attachment >>shall satisfy the requirements for a writing, and nothing contained herein >>shall constitute a contract or electronic signature under the Electronic >>Signatures in Global and National Commerce Act, any version of the Uniform >>Electronic Transactions Act or any other statute governing electronic >>transactions. >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From david.gray at tpg.com.au Fri Sep 29 03:46:45 2006 From: david.gray at tpg.com.au (David Gray) Date: Fri, 29 Sep 2006 18:46:45 +1000 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: <451C860D.5030203@shaw.ca> Message-ID: Really cool Marty! Thanks! What else can you do? Do you know how to store pushpins in a table? David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, 29 September 2006 12:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db For those of you wanting to footle around with Access and MS Virtual Earth Here is some sample code, it also dumps the html code to an html file By clicking on map you display Lat/Long position of cursor Option Compare Database Option Explicit Function testVirtualEarthMap() '------------------ 'display Virtual Earth at a fixed LatLong ' then click on map to display Lat/Long position of cursor 'see these for info: 'http://dev.live.com/virtualearth/sdk/ 'http://www.ftponline.com/special/web20/pvarholasp/default.aspx Dim objExplorer As Object Dim objDocument As Object Dim strHTML As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" objExplorer.Toolbar = 1 ' 0= off objExplorer.StatusBar = 1 '0 =off objExplorer.Width = 800 objExplorer.Height = 870 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open 'create html string and dump to a test file strHTML = "" strHTML = strHTML & createhtml WriteFile "c:\gis\test.html", strHTML 'objDocument.Writeln strHTML objDocument.Write strHTML objExplorer.Refresh ' ??This has to be done because of http://local.live.com/veapi.ashx 'objDocument.Close 'stall here Do While (objExplorer.Busy) Loop 'MsgBox "finished" 'Set objExplorer = Nothing 'Set objDocument = Nothing End Function Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML or html String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub Function createhtml() As String Dim strHTML As String strHTML = "" strHTML = strHTML & "Virtual Earth Map" strHTML = strHTML & "" 'When your page has referenced the map control, set up the call to display a default map by completing a LoadMap ( ) method call: strHTML = strHTML & vbCrLf & " " ' strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" ' strhtml = strhtml & vbCrLf & "// -->" 'Last, you display the map: strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "
" strHTML = strHTML & vbCrLf & " right or left click map for latitude longitude position " strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" WriteFile "c:\gis\test.html", strHTML createhtml = strHTML End Function -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 29 06:36:34 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Sep 2006 13:36:34 +0200 Subject: [AccessD] GUID PK Message-ID: Hi Martin I guess you need a GUID in its string representation. We use this function which (or similar) is quite common. Public Type GUID Data1 As Long Data2 As Integer Data3 As Integer Data4(0 To 7) As Byte End Type Private Declare Function CoCreateGuid Lib "ole32.dll" ( _ ByRef pguid As GUID) As Long Private Declare Function StringFromGUID2 Lib "ole32.dll" ( _ ByRef rguid As Any, _ ByVal lpstrClsId As Long, _ ByVal cbMax As Long) As Long Public Function GetGUIDString() As String ' Create a GUID and return its string representation. ' ' 2002-12-15. Cactus Data ApS, CPH. ' Length of GUID string per definition. Const clngGUID As Long = 38 ' Length of buffer with added space for zero terminator. Const clngBuffer As Long = clngGUID + 1 Dim udtGuid As GUID Dim strGUID As String * clngGUID Dim abytGUID() As Byte ' Dim byte array. abytGUID() = String(clngBuffer, vbNullChar) ' Create GUID. If CoCreateGuid(udtGuid) = 0 Then ' GUID was successfully created. If StringFromGUID2(udtGuid, VarPtr(abytGUID(0)), clngBuffer) = clngBuffer Then ' GUID was successfully copied into byte array abytGUID in Unicode. ' Convert byte array to Ansi GUID string stripping zero terminator. strGUID = abytGUID End If End If GetGUIDString = strGUID End Function As Marty tells, those GUIDs will always contain 4 at position 13. You may set off from the crowd by replacing this char with something else. /gustav >>> mwp.reid at qub.ac.uk 28-09-2006 21:52:32 >>> Havnt needed this much help in some time I am doing an update to a system table. The table has a PK of ReplicationID Data type number. The insert includes some of the XML stuff I posted earlier. The new issue is when you run the wizard the insert happens by magic including the GUID PK. How can I create this GUID via CODE? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From hollisvj at pgdp.usec.com Fri Sep 29 07:57:24 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 29 Sep 2006 07:57:24 -0500 Subject: [AccessD] Select All Text in DropDown Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0101481C@c2k3exchange.pgdp.corp.usec.com> No, wish it was that easy..... that is already selected. When they click or enter the combo box, it does not select the existing text. Shouldn't the SelLength or one of the Sel do it? But it isn't.... Virginia ________________________________ ...tools/options/keyboard/select entire field? William Hindman ________________________________ From: Hollis, Virginia Sent: Thursday, September 28, 2006 2:13 PM To: 'accessD at databaseadvisors.com' Subject: Select All Text in DropDown I have a form with a combo box that brings up the data for the selected name in the dropdown. When the user enters, clicks, or has the focus of the combo I need it to select all the text in the field. For some reason it always goes to the beginning of the field so they can't just start typing a name to find it, they always have to scroll the list or highlight the text in the box first, then delete it or start typing after it is highlighted. They want the text in the combo from the current record to already be highlighted so they can easily find another record by typing the person's name without any extra steps. I tried this, but it only highlights the first 3 characters of the name instead of the whole name. How does it determine the length of the field and select all of it? Private Sub FindName_GotFocus() FindName.SetFocus FindName.SelLength = Len(FindName) End Sub Virginia From Gustav at cactus.dk Fri Sep 29 08:20:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Sep 2006 15:20:08 +0200 Subject: [AccessD] Select All Text in DropDown Message-ID: Hi Virginia When tabbing into the combo, all the text should be selected. If clicking, it should not, but the cursor should be positioned at the click point - if the cursor moves to first position, it sounds like you have some update or refresh code running at the OnClick event. /gustav >>> hollisvj at pgdp.usec.com 29-09-2006 14:57:24 >>> No, wish it was that easy..... that is already selected. When they click or enter the combo box, it does not select the existing text. Shouldn't the SelLength or one of the Sel do it? But it isn't.... Virginia ________________________________ ...tools/options/keyboard/select entire field? William Hindman ________________________________ From: Hollis, Virginia Sent: Thursday, September 28, 2006 2:13 PM To: 'accessD at databaseadvisors.com' Subject: Select All Text in DropDown I have a form with a combo box that brings up the data for the selected name in the dropdown. When the user enters, clicks, or has the focus of the combo I need it to select all the text in the field. For some reason it always goes to the beginning of the field so they can't just start typing a name to find it, they always have to scroll the list or highlight the text in the box first, then delete it or start typing after it is highlighted. They want the text in the combo from the current record to already be highlighted so they can easily find another record by typing the person's name without any extra steps. I tried this, but it only highlights the first 3 characters of the name instead of the whole name. How does it determine the length of the field and select all of it? Private Sub FindName_GotFocus() FindName.SetFocus FindName.SelLength = Len(FindName) End Sub From Gustav at cactus.dk Fri Sep 29 09:47:46 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Sep 2006 16:47:46 +0200 Subject: [AccessD] Microsoft Office System Developers Conference 2006 Message-ID: Hi all Noticed that raw recordings of the sessions are available for download: http://msdn.microsoft.com/office/learn/conferences/default.aspx Has anyone watched a video? Would it be worth the time for download (hecto-MB) and watching (most are about 70 minutes)? /gustav From bill_Patten at earthlink.net Fri Sep 29 10:17:11 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Fri, 29 Sep 2006 08:17:11 -0700 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db References: Message-ID: <000e01c6e3da$5780eac0$0202fea9@BPCS> David, You might check out http://www.viavirtualearth.com/VVE/Dashboard/Default.ashx and MS Inteteractive SDK at http://dev.live.com/virtualearth/sdk/ Don't know if you can tie it into Access but maybe with some of Marty's code you could. Bill ----- Original Message ----- From: "David Gray" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 29, 2006 1:46 AM Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db Really cool Marty! Thanks! What else can you do? Do you know how to store pushpins in a table? David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, 29 September 2006 12:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db For those of you wanting to footle around with Access and MS Virtual Earth Here is some sample code, it also dumps the html code to an html file By clicking on map you display Lat/Long position of cursor Option Compare Database Option Explicit Function testVirtualEarthMap() '------------------ 'display Virtual Earth at a fixed LatLong ' then click on map to display Lat/Long position of cursor 'see these for info: 'http://dev.live.com/virtualearth/sdk/ 'http://www.ftponline.com/special/web20/pvarholasp/default.aspx Dim objExplorer As Object Dim objDocument As Object Dim strHTML As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" objExplorer.Toolbar = 1 ' 0= off objExplorer.StatusBar = 1 '0 =off objExplorer.Width = 800 objExplorer.Height = 870 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open 'create html string and dump to a test file strHTML = "" strHTML = strHTML & createhtml WriteFile "c:\gis\test.html", strHTML 'objDocument.Writeln strHTML objDocument.Write strHTML objExplorer.Refresh ' ??This has to be done because of http://local.live.com/veapi.ashx 'objDocument.Close 'stall here Do While (objExplorer.Busy) Loop 'MsgBox "finished" 'Set objExplorer = Nothing 'Set objDocument = Nothing End Function Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML or html String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub Function createhtml() As String Dim strHTML As String strHTML = "" strHTML = strHTML & "Virtual Earth Map" strHTML = strHTML & "" 'When your page has referenced the map control, set up the call to display a default map by completing a LoadMap ( ) method call: strHTML = strHTML & vbCrLf & " " ' strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" ' strhtml = strhtml & vbCrLf & "// -->" 'Last, you display the map: strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "
" strHTML = strHTML & vbCrLf & " right or left click map for latitude longitude position " strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" WriteFile "c:\gis\test.html", strHTML createhtml = strHTML End Function -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Sep 29 10:38:16 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 29 Sep 2006 19:38:16 +0400 Subject: [AccessD] DB2 and Ruby on Rails (was: Data interface The best way) In-Reply-To: Message-ID: <000001c6e3dd$4a51a4e0$6401a8c0@nant> Hi Gustav, Yes, Ruby looks interesting - I have got a book about it (although no time to read it carefully ...) VB.NET could migrate in the Ruby direction with time - my 0.02RUR bet... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, August 22, 2006 5:11 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DB2 and Ruby on Rails (was: Data interface The bestway) Hi Shamil, Ken et al Just noticed this link to a free Starter Toolkit for DB2 on Rails: http://alphaworks.ibm.com/tech/db2onrails Starter Toolkit for DB2? on Rails is a conveniently-packaged set of products and technologies that enables the quick creation of a configuration for building DB2 Web applications using Ruby on Rails technology. Also note the free DB2 Express-C database engine: http://www-306.ibm.com/software/data/db2/udb/db2express/download.html /gustav >>> shamil at users.mns.ru 20-10-2005 00:02:47 >>> <<< Ruby on Rails is the prime example. >>> Ken, Believe or not but just yesterday I have bookmarked Ruby's main Web site: http://www.ruby-lang.org/en/ for investigations when (if ever) I will have free time. Yes, I have heard about Ruby or Rails and I also plan to give it a try. Ruby looks like being the most advanced modern OO language - it has amazing things like modifying class definition on-the-fly so it may happen a running application will have object instances of the same class with different call interfaces. I still to realize for what real-life applications such flexibility is needed... > Model-View-Controller model. Ruby on Rails is the prime example. Well, MS Avalon(Windows Presentation Foundation) has this model as one of its key concepts. And my own rather naive that times (1998) but so true as far as I see now VBA/VB6-programming concept I called "DEEP-object concept" (http://www.smsconsulting.spb.ru/shamil_s/articles/deepcnpt.htm) was partially about Model-View-Controller model partially about what is called "low coupling" and "high cohesion" OOP concepts and related stuff.(I wasn't aware about that concepts that times, stupid me) It was developed later into several proprietary commercial frameworks - so it was never published. (Well, I did give it a try to develop open source very advanced VBA framework using MS Access 2000 summer 1999 but because it was a programming on the edge and because MS Access 97/2000 have "termination bug", which didn't have stable workaround it didn't work and I deleted/lost all the code I developed that times. Stupid me again. In MS Access XP/2003 the "termination bug" was finally fixed.) Well known here in AccessD VBA framework based on these concepts is John Colby's framework of course. > Since I have far from a deep understanding of MVC IMO it would have better called Model View Dispatcher model (or Model Dispatcher View). Or I don't understand English well to feel all the nuances or certain words - for me Controller is something that controls and Dispatcher is something that dispatches - and dispatching IMO implies no strict control at all and less coupling between Model and View. And in MVC model Controller's role is just to dispatch messages (calls) from View to Model or callbacks(events) from Model to View(s) - it doesn't control anything... Thank you for the links on Django and TurboGears but it looks like I will have time for them "in my next life only"... Shamil ----- Original Message ----- From: "Ken Ismert" To: "Access Developers discussion and problem solving" Sent: Wednesday, October 19, 2005 11:26 PM Subject: Re: [AccessD] Data interface The best way > > Shamil, > > >As for "an object design down to the lowest level" - > >this is still questionable here how it should be done - > >and it's getting the more questionable what this design > >should be the more I'm getting into the modern methods > >of OOP&D... > > Theoretical questions aside, the notable object-data systems doing > useful things now are the open-source web frameworks using the > Model-View-Controller model. Ruby on Rails is the prime example. > > Since I have far from a deep understanding of MVC, I will just point out > that the data objects are modeled in code, and changes in the data > objects are reflected to the table structure of the underlying database. > > > One challenge that future OO DBMS projects will have is equalling or > bettering the ease-of-use of these MVC frameworks. One thing is certain: > they'll never beat the price. > > Ruby on Rails > http://www.rubyonrails.org/ > > Django > http://www.djangoproject.com/ > > TurboGears > http://www.turbogears.org/ > > Ruby on Rails > Model-View-Controller Article > http://en.wikipedia.org/wiki/Ruby_On_Rails > > -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Sep 29 10:46:09 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 29 Sep 2006 15:46:09 +0000 Subject: [AccessD] Select All Text in DropDown In-Reply-To: Message-ID: Sounds to me like the row source has mor than 1 column(ID,Description). When you use LEN of that field...it is using the length of your bound column. I tried the following but it only worked when I used a breakpoint and stepped thru the code. Not sure why...but does show why your LEN is giving you the wrong results...also I used the code ONENTER not click. Hope it helps, Mark A. Matte Combo4.SetFocus Dim test test = Len(Combo4.Text) Combo4.SelLength = test >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Select All Text in DropDown >Date: Fri, 29 Sep 2006 15:20:08 +0200 > >Hi Virginia > >When tabbing into the combo, all the text should be selected. If clicking, >it should not, but the cursor should be positioned at the click point - if >the cursor moves to first position, it sounds like you have some update or >refresh code running at the OnClick event. > >/gustav > > >>> hollisvj at pgdp.usec.com 29-09-2006 14:57:24 >>> >No, wish it was that easy..... that is already selected. When they click >or enter the combo box, it does not select the existing text. Shouldn't >the SelLength or one of the Sel do it? But it isn't.... > > > >Virginia > >________________________________ > > >...tools/options/keyboard/select entire field? > >William Hindman > >________________________________ > > >From: Hollis, Virginia >Sent: Thursday, September 28, 2006 2:13 PM >To: 'accessD at databaseadvisors.com' >Subject: Select All Text in DropDown > > > >I have a form with a combo box that brings up the data for the selected >name in the dropdown. When the user enters, clicks, or has the focus of >the combo I need it to select all the text in the field. For some reason >it always goes to the beginning of the field so they can't just start >typing a name to find it, they always have to scroll the list or >highlight the text in the box first, then delete it or start typing >after it is highlighted. They want the text in the combo from the >current record to already be highlighted so they can easily find another >record by typing the person's name without any extra steps. > > > >I tried this, but it only highlights the first 3 characters of the name >instead of the whole name. How does it determine the length of the field >and select all of it? > > > >Private Sub FindName_GotFocus() > > FindName.SetFocus > FindName.SelLength = Len(FindName) > >End Sub > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 29 10:47:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Sep 2006 17:47:03 +0200 Subject: [AccessD] AJAX/Atlas: Rich Internet Applications (RIA) (was: Switching to VB.net) Message-ID: Thanks Mary, I hadn't heard of that. Looks promising. Note that roadshows for developers may be arranged in a city near you, and that a little confusion about the name exists: ASP.NET 2.0 AJAX (formerly Atlas) /gustav >>> martyconnelly at shaw.ca 26-09-2006 19:49:29 >>> There is ATLAS which is AJAX controls and javascript framework and ASP.Net ontop of Net 2.0 framework, works cross browser. http://atlas.asp.net/default.aspx?tabid=47 Charlotte Foust wrote: >AJAX does the same thing. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, September 26, 2006 6:36 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: >Switchingto VB.net) > >I briefly looked at AJAX last week, and ended up finding a program >called ThinWire. This program, written in JAVA and still in beta, has a >claim that it can have a GUI just like a Client-Server app, but works in >a web browser. > > >Perhaps the next .net framework is headed in that direction. It would >make sense . . . > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Switching to VB.net > >You expect me to REMEMBER?? > >Atlas/AJAX are impressive. There are new interactive designers coming. >I haven't had time to even review the DVD they gave us because we're >trying to get a beta out by Thursday, so don't expect coherence from me >this week! There are 4 developers madly scrambling to make things work >the way they're specified TODAY (never mind how they were specified >originally or even yesterday) and a fun time is being had by all. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Monday, September 25, 2006 3:26 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Switching to VB.net > >What are the 'nifty new capabilities'? > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Monday, September 25, 2006 4:10 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >Version 3.0 of the Framework is in beta, indeed and will be released ... >That was as far as they committed. LOL. I recently saw it demonstrated >and fell madly in love with some of the nifty new capabilities. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael >Maddison >Sent: Friday, September 22, 2006 8:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >I was forced to go the C# route., however Vb.net or C#, the languages >are pretty irrelevent I think. >As others have said there are just soooo many damn options. >You can easily find yourself endlessly refactoring - but maybe its just >me...lol. >The framework is enormous, and getting bigger. >I believe v3 is in beta... > >What I found helpful was the Nettiers templates (free) >http://www.nettiers.com/ which you use with CodeSmith (30 day trial) >http://codesmithtools.com/ and the MS Application blocks (free) >http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 >e25-94e2-91be63527327 > >JC, you will love this stuff. > >I'm just hoping none of my code ends up here... >http://thedailywtf.com/Default.aspx > >cheers > >Michael M From martyconnelly at shaw.ca Fri Sep 29 11:17:39 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Sep 2006 09:17:39 -0700 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: <0J6C005TJ8B72G20@l-daemon> References: <0J6C005TJ8B72G20@l-daemon> Message-ID: <451D4723.3050709@shaw.ca> I tried this originally a while back by creating an html file and it works okay by right clicking on the html file and bringing up in IE but I couldn't get it to work directly in an IE document with a Document.Write it would just hang. So I stuck in a refresh and it worked, must have something to do with a a redirect behind the scenes to another site to obtain the .js control. If you view the html source without the refresh command some how it adds another line of html code at bottom for another .js file. I suppose you can download the .js control to your machine but that wouldn't guarantee the latest version. Well it is still Beta and I haven't read the entire SDK. Jim Lawrence wrote: >Impressive Marty... > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, September 28, 2006 7:34 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db > >For those of you wanting to footle around with Access and MS Virtual Earth >Here is some sample code, it also dumps the html code to an html file >By clicking on map you display Lat/Long position of cursor > >Option Compare Database >Option Explicit > > >Function testVirtualEarthMap() >'------------------ >'display Virtual Earth at a fixed LatLong >' then click on map to display Lat/Long position of cursor >'see these for info: >'http://dev.live.com/virtualearth/sdk/ >'http://www.ftponline.com/special/web20/pvarholasp/default.aspx > >Dim objExplorer As Object >Dim objDocument As Object >Dim strHTML As String > >Set objExplorer = CreateObject("InternetExplorer.Application") > >objExplorer.Navigate "about:blank" >objExplorer.Toolbar = 1 ' 0= off >objExplorer.StatusBar = 1 '0 =off >objExplorer.Width = 800 >objExplorer.Height = 870 >objExplorer.Left = 0 >objExplorer.Top = 0 >objExplorer.Visible = 1 > >Do While (objExplorer.Busy) >Loop > > >Set objDocument = objExplorer.Document >objDocument.Open >'create html string and dump to a test file > strHTML = "" > strHTML = strHTML & createhtml > >WriteFile "c:\gis\test.html", strHTML > >'objDocument.Writeln strHTML >objDocument.Write strHTML >objExplorer.Refresh ' ??This has to be done because of >http://local.live.com/veapi.ashx >'objDocument.Close 'stall here >Do While (objExplorer.Busy) >Loop >'MsgBox "finished" >'Set objExplorer = Nothing >'Set objDocument = Nothing > >End Function > >Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) >' Dump XML or html String to File for debugging > Dim fhFile As Integer > fhFile = FreeFile > ' Debug.Print "Length of string=" & Len(sContents) > Open sFileName For Output As #fhFile > Print #fhFile, sContents; > Close #fhFile > Debug.Print "Out File" & sFileName >End Sub > >Function createhtml() As String > >Dim strHTML As String > strHTML = "" > strHTML = strHTML & "Virtual Earth Map" > strHTML = strHTML & "content=""text/html; charset=utf-8"">" >'When your page has referenced the map control, set up the call to >display a default map by completing a LoadMap ( ) method call: > strHTML = strHTML & vbCrLf & " " >' strHTML = strHTML & vbCrLf & "" > strHTML = strHTML & vbCrLf & "" >' strhtml = strhtml & vbCrLf & "// -->" >'Last, you display the map: > > strHTML = strHTML & vbCrLf & "" > strHTML = strHTML & vbCrLf & "
" > strHTML = strHTML & vbCrLf & " right or left click map for latitude >longitude position " > strHTML = strHTML & vbCrLf & "" > strHTML = strHTML & vbCrLf & "" >WriteFile "c:\gis\test.html", strHTML >createhtml = strHTML >End Function > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri Sep 29 11:48:58 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 29 Sep 2006 17:48:58 +0100 Subject: [AccessD] GUID PK References: Message-ID: Gustav Works like a charm. Can I use this in a section I am writing. You as source will be acknowledged. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Gustav Brock Sent: Fri 29/09/2006 12:36 To: accessd at databaseadvisors.com Subject: Re: [AccessD] GUID PK Hi Martin I guess you need a GUID in its string representation. We use this function which (or similar) is quite common. Public Type GUID Data1 As Long Data2 As Integer Data3 As Integer Data4(0 To 7) As Byte End Type Private Declare Function CoCreateGuid Lib "ole32.dll" ( _ ByRef pguid As GUID) As Long Private Declare Function StringFromGUID2 Lib "ole32.dll" ( _ ByRef rguid As Any, _ ByVal lpstrClsId As Long, _ ByVal cbMax As Long) As Long Public Function GetGUIDString() As String ' Create a GUID and return its string representation. ' ' 2002-12-15. Cactus Data ApS, CPH. ' Length of GUID string per definition. Const clngGUID As Long = 38 ' Length of buffer with added space for zero terminator. Const clngBuffer As Long = clngGUID + 1 Dim udtGuid As GUID Dim strGUID As String * clngGUID Dim abytGUID() As Byte ' Dim byte array. abytGUID() = String(clngBuffer, vbNullChar) ' Create GUID. If CoCreateGuid(udtGuid) = 0 Then ' GUID was successfully created. If StringFromGUID2(udtGuid, VarPtr(abytGUID(0)), clngBuffer) = clngBuffer Then ' GUID was successfully copied into byte array abytGUID in Unicode. ' Convert byte array to Ansi GUID string stripping zero terminator. strGUID = abytGUID End If End If GetGUIDString = strGUID End Function As Marty tells, those GUIDs will always contain 4 at position 13. You may set off from the crowd by replacing this char with something else. /gustav >>> mwp.reid at qub.ac.uk 28-09-2006 21:52:32 >>> Havnt needed this much help in some time I am doing an update to a system table. The table has a PK of ReplicationID Data type number. The insert includes some of the XML stuff I posted earlier. The new issue is when you run the wizard the insert happens by magic including the GUID PK. How can I create this GUID via CODE? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Sep 29 12:09:53 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Sep 2006 10:09:53 -0700 Subject: [AccessD] XML In-Reply-To: References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: <451D5361.9080303@shaw.ca> Just to create an xml string that you could drop into the XML DOM Function createxml() As String Dim strXLML As String strXML = "" strXML = strXML & "?xml version="1.0" encoding="UTF-8"?" strXML = strXML & "" strXML = strXML & "" etc..... createxml = strXML Martin Reid wrote: >Note I didnt prefix this OT as it isnt. Its part of Access 2007 Data Collection Via Email > > >Given the following structure and data would it be easier to use VBA to create this or simply type up the XML in an editor. In fact would you use VBA at all? I could do this in 30 seconds in an XML editor. I havnt a clue where to start with the VBA side of this. In terms of Access this is dropped into a Memo field. > > > > > > >true > >true > >25 >0 >true >true >false >0 >true > > > > > > > > > >
>
>
> > > > > > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.407 / Virus Database: 268.12.9/458 - Release Date: 27/09/2006 > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri Sep 29 12:56:16 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 29 Sep 2006 18:56:16 +0100 Subject: [AccessD] XML References: <000c01c6e2db$0cd070e0$6401a8c0@nant> <451D5361.9080303@shaw.ca> Message-ID: marty The full file is below. Would it be just as easy to create this totally in an editor or via VBA. The XML file itself isnt a problem. If you notice the values for example maxReplies set to 25. If I was doing it I would just type it up and then pass the string to VBA. What do you think? true true 25 0 true true false 0 true
Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From markamatte at hotmail.com Fri Sep 29 13:30:20 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 29 Sep 2006 18:30:20 +0000 Subject: [AccessD] OT: Myrtle Beach,SC In-Reply-To: Message-ID: Anyone for lunch this weekend in Myrtle...let me know. Mark A. Matte 336/253-5270 From RRANTHON at sentara.com Fri Sep 29 13:38:41 2006 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Fri, 29 Sep 2006 14:38:41 -0400 Subject: [AccessD] OT: Myrtle Beach,SC In-Reply-To: References: Message-ID: <200609291839.k8TId5S25538@databaseadvisors.com> Sorry, Mark, I'm only there over Thanksgiving and in May (playing golf, natch)... >>> "Mark A Matte" 9/29/2006 2:30 PM >>> Anyone for lunch this weekend in Myrtle...let me know. Mark A. Matte 336/253-5270 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Fri Sep 29 14:52:29 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 29 Sep 2006 20:52:29 +0100 Subject: [AccessD] Excel and VBA References: Message-ID: I have an editor looking for someone to write a book on Excel and VBA. Anyone interested please contact me of list. I would say intermediate to experienced required. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From martyconnelly at shaw.ca Fri Sep 29 15:05:05 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Sep 2006 13:05:05 -0700 Subject: [AccessD] XML In-Reply-To: References: <000c01c6e2db$0cd070e0$6401a8c0@nant> <451D5361.9080303@shaw.ca> Message-ID: <451D7C71.6040005@shaw.ca> Not sure what you are trying to accomplish but this looks oddly like the xml you might import into InfoPath to create a form template and hook with a data connection. Is that what you are trying to do? If you have XMLSpy it might be easier to fill in. Failing that fill in the variable elements with VBA. Martin Reid wrote: >marty > >The full file is below. Would it be just as easy to create this totally in an editor or via VBA. The XML file itself isnt a problem. If you notice the values for example maxReplies set to 25. If I was doing it I would just type it up and then pass the string to VBA. What do you think? > > > > > >true > >true > >25 > >0 > >true > >true > >false > >0 > >true > > > > > > > > > > > > > > > > > > > >
> >
> >
> > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.407 / Virus Database: 268.12.10/459 - Release Date: 29/09/2006 > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri Sep 29 15:16:54 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 29 Sep 2006 21:16:54 +0100 Subject: [AccessD] XML References: <000c01c6e2db$0cd070e0$6401a8c0@nant><451D5361.9080303@shaw.ca> <451D7C71.6040005@shaw.ca> Message-ID: Marty Its the XML data for an Access 2007 Data Collection via Email. If your interested I can send you the stuff to date - be interested in seeing what you think? The Access 2007 Email Data Collection wiz populates a system table eventually with XML. The XML holds all the choices you made in the wizard. What I am doing is trying to develop a more flexible coding approach to this. I can do almost all of it in VBA but am getting hung up on the XML. Well the XML itself is simple but getting it put together in a sensible and flexible way is the problem. Even if at the end of the day I recommend dont do it the wiz is easier I am to far into it to stop now (<: This is really step 1. Step 2 is to set up the outlook side as well. Again using XML config fiels to tell outlook this process is enabled. Hence the email re com add ins etc Martin Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Fri 29/09/2006 21:05 To: Access Developers discussion and problem solving Subject: Re: [AccessD] XML Not sure what you are trying to accomplish but this looks oddly like the xml you might import into InfoPath to create a form template and hook with a data connection. Is that what you are trying to do? If you have XMLSpy it might be easier to fill in. Failing that fill in the variable elements with VBA. From martyconnelly at shaw.ca Fri Sep 29 16:05:21 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Sep 2006 14:05:21 -0700 Subject: [AccessD] XML In-Reply-To: References: <000c01c6e2db$0cd070e0$6401a8c0@nant> <451D5361.9080303@shaw.ca> <451D7C71.6040005@shaw.ca> Message-ID: <451D8A91.4050506@shaw.ca> I'll take a look but don't have Outlook installed. Do have Access & InfoPath 2007 installed. Martin Reid wrote: >Marty > >Its the XML data for an Access 2007 Data Collection via Email. If your interested I can send you the stuff to date - be interested in seeing what you think? > >The Access 2007 Email Data Collection wiz populates a system table eventually with XML. The XML holds all the choices you made in the wizard. What I am doing is trying to develop a more flexible coding approach to this. I can do almost all of it in VBA but am getting hung up on the XML. Well the XML itself is simple but getting it put together in a sensible and flexible way is the problem. Even if at the end of the day I recommend dont do it the wiz is easier I am to far into it to stop now (<: > >This is really step 1. Step 2 is to set up the outlook side as well. Again using XML config fiels to tell outlook this process is enabled. Hence the email re com add ins etc > >Martin > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly >Sent: Fri 29/09/2006 21:05 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] XML > > > >Not sure what you are trying to accomplish but this looks oddly like >the xml you might import into InfoPath to create a form template >and hook with a data connection. Is that what you are trying to do? >If you have XMLSpy it might be easier to fill in. >Failing that fill in the variable elements with VBA. > > > > > -- Marty Connelly Victoria, B.C. Canada From bheid at sc.rr.com Fri Sep 29 16:12:57 2006 From: bheid at sc.rr.com (Bobby Heid) Date: Fri, 29 Sep 2006 17:12:57 -0400 Subject: [AccessD] OT: Myrtle Beach,SC In-Reply-To: <200609291839.k8TId5S25538@databaseadvisors.com> Message-ID: <000401c6e40c$0a131100$2d01a8c0@bhxp> I used to live down there. Surfside and Pawleys Island. Where do you live? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Friday, September 29, 2006 2:39 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Myrtle Beach,SC Sorry, Mark, I'm only there over Thanksgiving and in May (playing golf, natch)... >>> "Mark A Matte" 9/29/2006 2:30 PM >>> Anyone for lunch this weekend in Myrtle...let me know. Mark A. Matte 336/253-5270 From pedro at plex.nl Fri Sep 29 16:13:06 2006 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 29 Sep 2006 23:13:06 +0200 Subject: [AccessD] trying to understand code Message-ID: <003d01c6e40c$0eef92c0$4001a8c0@qmotionfaa3ad9> Hello Group, i use Candace trips code for displaying photo's in a database, without storing them in a database. Part of the code is about the path where the picture and database is stored. I changed the pad to store the pictures where i would like to store them. But in this code is also the part of ......... I don't understand what's happening there. Who can explain this to me. Also the format of the textfield where you give the name of the displayed picture is: $#.##0,00;($#.##0,00) What does this mean. Thanks Pedro Private Function GetPathPart() As String Dim db As DAO.Database Dim strPath As String Dim intCounter As Integer Set db = CurrentDb strPath = "C:\my-directoryname\" db.Close Set db = Nothing For intCounter = Len(strPath) To 1 Step -1 If Mid$(strPath, intCounter, 1) = "\" Then Exit For End If Next intCounter GetPathPart = Left$(strPath, intCounter) From mwp.reid at qub.ac.uk Fri Sep 29 16:39:55 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 29 Sep 2006 22:39:55 +0100 Subject: [AccessD] XML References: <000c01c6e2db$0cd070e0$6401a8c0@nant><451D5361.9080303@shaw.ca><451D7C71.6040005@shaw.ca> <451D8A91.4050506@shaw.ca> Message-ID: Will send it to you. yes have both here. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Fri 29/09/2006 22:05 To: Access Developers discussion and problem solving Subject: Re: [AccessD] XML I'll take a look but don't have Outlook installed. Do have Access & InfoPath 2007 installed. Martin Reid wrote: >Marty > >Its the XML data for an Access 2007 Data Collection via Email. If your interested I can send you the stuff to date - be interested in seeing what you think? > >The Access 2007 Email Data Collection wiz populates a system table eventually with XML. The XML holds all the choices you made in the wizard. What I am doing is trying to develop a more flexible coding approach to this. I can do almost all of it in VBA but am getting hung up on the XML. Well the XML itself is simple but getting it put together in a sensible and flexible way is the problem. Even if at the end of the day I recommend dont do it the wiz is easier I am to far into it to stop now (<: > >This is really step 1. Step 2 is to set up the outlook side as well. Again using XML config fiels to tell outlook this process is enabled. Hence the email re com add ins etc > >Martin > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly >Sent: Fri 29/09/2006 21:05 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] XML > > > >Not sure what you are trying to accomplish but this looks oddly like >the xml you might import into InfoPath to create a form template >and hook with a data connection. Is that what you are trying to do? >If you have XMLSpy it might be easier to fill in. >Failing that fill in the variable elements with VBA. > > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From scapistrant at symphonyinfo.com Fri Sep 29 16:56:47 2006 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Fri, 29 Sep 2006 16:56:47 -0500 Subject: [AccessD] Longitude/Latitude References: <000601c6e3f7$75f3ff70$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F0103A46D@LAKATOS.Symphony.local> Hello all, Sorry if this has been asked recently and I didn't pay attention. What options exist for programmatically inserting longitude and latitude values on an address record? I was told that Google had some way to return that information from their database, but can't seem to find it (perhaps if I paid for a business account). This is a task I'd do regularly (perhaps twice a month) as data gets uploaded from a local Access db into a website, where the website is coded to calculate distance between addresses. Ideally, it would be SO cool to due this by connecting to a website and looping through the recordset of an Address table. But another option I suppose is getting occasional downloads of a reference table, and use that as my lookup. Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Main: 763-391-7400 ext 801 Toll Free: 888-357-1373 ext 801 Direct: 612-237-0075 From JHewson at karta.com Fri Sep 29 17:06:00 2006 From: JHewson at karta.com (Jim Hewson) Date: Fri, 29 Sep 2006 17:06:00 -0500 Subject: [AccessD] trying to understand code Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04907C38@karta-exc-int.Karta.com> Pedro, What I have used is: Image.Picture = Application.CurrentProject.Path & "\images\" & GraphicFile This allows you to move the database to any directory as long the sub directory is named "images". GraphicFile is the field in the table depicting the graphic file name which includes the extension. HTH Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Friday, September 29, 2006 4:13 PM To: AccessD Subject: [AccessD] trying to understand code Hello Group, i use Candace trips code for displaying photo's in a database, without storing them in a database. Part of the code is about the path where the picture and database is stored. I changed the pad to store the pictures where i would like to store them. But in this code is also the part of ......... I don't understand what's happening there. Who can explain this to me. Also the format of the textfield where you give the name of the displayed picture is: $#.##0,00;($#.##0,00) What does this mean. Thanks Pedro Private Function GetPathPart() As String Dim db As DAO.Database Dim strPath As String Dim intCounter As Integer Set db = CurrentDb strPath = "C:\my-directoryname\" db.Close Set db = Nothing For intCounter = Len(strPath) To 1 Step -1 If Mid$(strPath, intCounter, 1) = "\" Then Exit For End If Next intCounter GetPathPart = Left$(strPath, intCounter) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Sep 29 17:28:23 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 29 Sep 2006 18:28:23 -0400 Subject: [AccessD] Longitude/Latitude References: <000601c6e3f7$75f3ff70$4b4f5a46@Symphony.local> <02F5B8F3D893A845A3DF342F14D80F0103A46D@LAKATOS.Symphony.local> Message-ID: <00c101c6e416$93cbac90$153ce944@50NM721> ...reference tables abound ...including high quality free ones ...start here, but there are plenty more http://spatialnews.geocomm.com/newsletter/2000/jan/zipcodes.html William Hindman ----- Original Message ----- From: "Steve Capistrant" To: "Access Developers discussion and problem solving" ; Sent: Friday, September 29, 2006 5:56 PM Subject: [AccessD] Longitude/Latitude > Hello all, > > Sorry if this has been asked recently and I didn't pay attention. What > options exist for programmatically inserting longitude and latitude values > on an address record? I was told that Google had some way to return that > information from their database, but can't seem to find it (perhaps if I > paid for a business account). This is a task I'd do regularly (perhaps > twice a month) as data gets uploaded from a local Access db into a > website, where the website is coded to calculate distance between > addresses. > > Ideally, it would be SO cool to due this by connecting to a website and > looping through the recordset of an Address table. But another option I > suppose is getting occasional downloads of a reference table, and use that > as my lookup. > > Steve Capistrant > Symphony Information Services > scapistrant at symphonyinfo.com > www.symphonyinfo.com > Main: 763-391-7400 ext 801 > Toll Free: 888-357-1373 ext 801 > Direct: 612-237-0075 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Fri Sep 29 20:31:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Sep 2006 18:31:35 -0700 Subject: [AccessD] Longitude/Latitude In-Reply-To: <02F5B8F3D893A845A3DF342F14D80F0103A46D@LAKATOS.Symphony.local> References: <000601c6e3f7$75f3ff70$4b4f5a46@Symphony.local> <02F5B8F3D893A845A3DF342F14D80F0103A46D@LAKATOS.Symphony.local> Message-ID: <451DC8F7.2080308@shaw.ca> Here is one that supplies an access table on a monthly basis. http://zipinfo.com/products/z5ll/ To calculate distances using great circle method between lat long's. Shortest distance on a sphere. Const PI As Double = 3.14159265358979 Const Circumference As Double = 40123.648 'kilometers Const MilesPerKilometer As Double = 0.6214 Sub test() Debug.Print Distance(32.815, -117.135866, 37.79333, -122.554722, True) End Sub Public Function Distance( _ ByVal Latitude1 As Double, _ ByVal Longitude1 As Double, _ ByVal Latitude2 As Double, _ ByVal Longitude2 As Double, _ Optional Miles As Boolean) As Double 'courtesy Lyle Fairfield 'assumes we are getting latitude-longitude 'as degrees with fractions expresed as decimals 'if minutes-seconds then use Sexagesimal function to convert Dim CosArc As Double Dim Arc As Double Latitude1 = Radians(Latitude1) Longitude1 = Radians(Longitude1) Latitude2 = Radians(Latitude2) Longitude2 = Radians(Longitude2) CosArc = (Sin(Latitude1) * Sin(Latitude2)) + _ (Cos(Latitude1) * Cos(Latitude2) * Cos(Longitude1 - Longitude2)) If Abs(CosArc) = 1 Then Arc = PI Else Arc = Atn(-CosArc / Sqr(-CosArc * CosArc + 1)) + 2 * Atn(1) End If Distance = Arc / PI / 2 * Circumference If Miles = True Then Distance = Distance * MilesPerKilometer Distance = Round(Distance, 2) End Function Private Function Radians(ByVal degrees As Double) As Double Radians = PI * degrees / 180 End Function Public Function SexagesimalToDecimal(ParamArray Sexagesimals()) As Double ' send this function degrees, minutes, seconds ' degrees as convenience; degrees will not be changed Dim z As Long For z = 0 To UBound(Sexagesimals()) - LBound(Sexagesimals()) SexagesimalToDecimal = SexagesimalToDecimal + Sexagesimals(z)/ 60 ^ (z) Next z End Function Sub testsex() Debug.Print Distance(SexagesimalToDecimal(39, 56, 58), SexagesimalToDecimal(-75, 9, 21), 35.667, 139.75) ' Philly to Tokyo 10916.89 km ' SanFrancisco to SanDiego 460.99 miles End Sub Steve Capistrant wrote: >Hello all, > >Sorry if this has been asked recently and I didn't pay attention. What options exist for programmatically inserting longitude and latitude values on an address record? I was told that Google had some way to return that information from their database, but can't seem to find it (perhaps if I paid for a business account). This is a task I'd do regularly (perhaps twice a month) as data gets uploaded from a local Access db into a website, where the website is coded to calculate distance between addresses. > >Ideally, it would be SO cool to due this by connecting to a website and looping through the recordset of an Address table. But another option I suppose is getting occasional downloads of a reference table, and use that as my lookup. > >Steve Capistrant >Symphony Information Services >scapistrant at symphonyinfo.com >www.symphonyinfo.com > > > -- Marty Connelly Victoria, B.C. Canada From markamatte at hotmail.com Sat Sep 30 07:00:11 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Sat, 30 Sep 2006 12:00:11 +0000 Subject: [AccessD] OT: Myrtle Beach,SC In-Reply-To: <000401c6e40c$0a131100$2d01a8c0@bhxp> Message-ID: Bobby, Right now I live in Greensboro, NC. Just in Myrtle(North Myrtle actually) for a little R&R. Thought I'd see if anyone were close. Where are you located? Thanks, Mark >From: "Bobby Heid" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] OT: Myrtle Beach,SC >Date: Fri, 29 Sep 2006 17:12:57 -0400 > >I used to live down there. Surfside and Pawleys Island. Where do you >live? > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R >ANTHONY >Sent: Friday, September 29, 2006 2:39 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] OT: Myrtle Beach,SC > >Sorry, Mark, I'm only there over Thanksgiving and in May (playing golf, >natch)... > > >>> "Mark A Matte" 9/29/2006 2:30 PM >>> >Anyone for lunch this weekend in Myrtle...let me know. > >Mark A. Matte >336/253-5270 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From lembit.dbamail at t-online.de Sat Sep 30 13:01:24 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sat, 30 Sep 2006 20:01:24 +0200 Subject: [AccessD] Access 97 nasty behaviour of subform References: <000e01c6e3da$5780eac0$0202fea9@BPCS> Message-ID: <005d01c6e4ba$71fec5d0$1800a8c0@s1800> good evening everyone, I have a form with a subform, form is continuous and has 3 little subforms in the header. form is bound to a table. subforms are bund to tables (which are named spaces in an EXCEL worksheet. form has a button. when I click it, some code runs and copies and processes data from some other excel table to Access BE tables. works fine so far. at the end of the update I want to write to the one table on the excel sheet the project-number to indicate it has been processed. this works as many times as I click, but only UNTIL I close the main form and open it again. NOW it tells me error 3027 database or object is read-only. If I now close the main form open the subform and change something like allow updates, THen change it back to what it was and save it, THEN I can open the main form and it will happily run and update the exxel sheet as often as I like. close the main form, open it again ERROR 3027. cahnge something on subform, save, close, mainform works again for one opening. I have now put me.allowedits = tru in the subform onLoad event nochange I have in my code tried both: a) open the table and write to the table b) write to the control on the subform in both cases I get the effect that after closing the main form and reopening it, I get 3027 error. any idea what I'm missing? thank you Lembit From pedro at plex.nl Sat Sep 30 14:26:42 2006 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 30 Sep 2006 21:26:42 +0200 Subject: [AccessD] trying to understand code References: <9C382E065F54AE48BC3AA7925DCBB01C04907C38@karta-exc-int.Karta.com> Message-ID: <000701c6e4c6$5be8d180$4001a8c0@qmotionfaa3ad9> Hello Jim, that's a great idea. Thanks. Pedro My question in the original mail wasn't complete. I meant But in this code is also the part of: For intCounter ..... I don't understand what's happening there. Who can explain this to me. Also the format of the textfield where you give the name of the displayed picture is: $#.##0,00;($#.##0,00) What does this mean. For intCounter = Len(strPath) To 1 Step -1 If Mid$(strPath, intCounter, 1) = "\" Then Exit For End If Next intCounter GetPathPart = Left$(strPath, intCounter) ----- Original Message ----- From: "Jim Hewson" To: "Access Developers discussion and problem solving" Sent: Saturday, September 30, 2006 12:06 AM Subject: Re: [AccessD] trying to understand code > Pedro, > What I have used is: > Image.Picture = Application.CurrentProject.Path & "\images\" & GraphicFile > > This allows you to move the database to any directory as long the sub > directory is named "images". GraphicFile is the field in the table > depicting the graphic file name which includes the extension. > > HTH > > Jim > jhewson at karta.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen > Sent: Friday, September 29, 2006 4:13 PM > To: AccessD > Subject: [AccessD] trying to understand code > > Hello Group, > > i use Candace trips code for displaying photo's in a database, without > storing them in a database. > > Part of the code is about the path where the picture and database is > stored. I changed the pad to store the pictures where i would like to > store them. But in this code is also the part of ......... > I don't understand what's happening there. Who can explain this to me. > Also the format of the textfield where you give the name of the displayed > picture is: $#.##0,00;($#.##0,00) What does this mean. > > > Thanks > > Pedro > > > > > > Private Function GetPathPart() As String > > Dim db As DAO.Database > Dim strPath As String > Dim intCounter As Integer > > Set db = CurrentDb > strPath = "C:\my-directoryname\" > db.Close > Set db = Nothing > > For intCounter = Len(strPath) To 1 Step -1 > If Mid$(strPath, intCounter, 1) = "\" Then > Exit For > End If > Next intCounter > > GetPathPart = Left$(strPath, intCounter) > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sat Sep 30 18:23:38 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Oct 2006 09:23:38 +1000 Subject: [AccessD] Access 97 nasty behaviour of subform In-Reply-To: <005d01c6e4ba$71fec5d0$1800a8c0@s1800> References: , <005d01c6e4ba$71fec5d0$1800a8c0@s1800> Message-ID: <451F891A.30079.12755964@stuart.lexacorp.com.pg> Sounds as though the first instance of the subform gets a lock on the Excel table which isn't closed when the main form is closed. Opening the main form creates a new instance of the subform which tries to get a second lock and so can only get a RO connection. Editing the sub form must be completely destroying the first instance thus breaking the lock and allowing the next instance to establish a RW connection Not sure what to suggest on how to overcome it, but hopefully this gives you an idea of where to look. -- Stuart On 30 Sep 2006 at 20:01, Lembit Soobik wrote: > good evening everyone, > I have a form with a subform, > form is continuous and has 3 little subforms in the header. > form is bound to a table. > subforms are bund to tables (which are named spaces in an EXCEL worksheet. > > form has a button. when I click it, some code runs and copies and processes > data from some other excel table to Access BE tables. > > works fine so far. > > at the end of the update I want to write to the one table on the excel sheet > the project-number to indicate it has been processed. this works as many > times as I click, but only UNTIL I close the main form and open it again. > NOW it tells me error 3027 database or object is read-only. > > If I now close the main form > open the subform and change something like allow updates, THen change it > back to what it was and save it, THEN I can open the main form and it will > happily run and update the exxel sheet as often as I like. > > close the main form, open it again ERROR 3027. > cahnge something on subform, save, close, mainform works again for one > opening. > > I have now put me.allowedits = tru in the subform onLoad event > nochange > I have in my code tried both: > a) open the table and write to the table > b) write to the control on the subform > > in both cases I get the effect that after closing the main form and > reopening it, I get 3027 error. > > any idea what I'm missing? > > thank you > Lembit > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bheid at sc.rr.com Sat Sep 30 21:09:39 2006 From: bheid at sc.rr.com (Bobby Heid) Date: Sat, 30 Sep 2006 22:09:39 -0400 Subject: [AccessD] OT: Myrtle Beach,SC In-Reply-To: Message-ID: <001b01c6e4fe$a6ecca00$2d01a8c0@bhxp> I'm in Lexington, SC. About 150 miles from there. Have a great time! Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Saturday, September 30, 2006 8:00 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Myrtle Beach,SC Bobby, Right now I live in Greensboro, NC. Just in Myrtle(North Myrtle actually) for a little R&R. Thought I'd see if anyone were close. Where are you located? Thanks, Mark From bheygood at abestsystems.com Fri Sep 1 00:12:20 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Thu, 31 Aug 2006 22:12:20 -0700 Subject: [AccessD] Query Parameter In-Reply-To: <44F776E2.7030609@san.rr.com> Message-ID: Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, August 31, 2006 4:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query Parameter I usually make a public function in a module which return the value from the forms and call that function in the criteria line on the QBE grid. Don't forget the () in the call on the QBE grid. Rocky T Bob Heygood wrote: > Yeah. > Tried to supply the !Forms.... to the query parameters box even. No luck.... > > > Bob > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, August 31, 2006 4:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query Parameter > > > How do you run it from code? db.Execute? > > Rocky > > > Bob Heygood wrote: > >> I have a query that I execute from code. >> It has criteria and an alias that references a form control value. >> This query works fine when run from the db window. >> But complains that "Too few parameters..1 expected.", when run from my >> > code. > >> TIA >> >> Bob Heygood >> >> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Sep 1 08:14:03 2006 From: askolits at ot.com (John Skolits) Date: Fri, 1 Sep 2006 09:14:03 -0400 Subject: [AccessD] File Copy In-Reply-To: <44F774DA.7080308@san.rr.com> Message-ID: <002501c6cdc8$8253a170$800101df@officexp> Rocky, I tried this by creating an 'unbound' form and ran it multiple times and it just kept overwriting the file with no problem. Was your form bound? The various output files names I placed in the text box 'txtOutputFileName' were: "c:\test.xls" "c:\test 2.xls" "test.xls" "test 2.xls" Since you didn't specify a path, I tried it with and without one. When no path was specified, it obviously used the default. 'MyDocuments' John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, August 31, 2006 7:47 PM To: Access Developers discussion and problem solving Subject: [AccessD] File Copy Dear List: When I run a chunk of code which includes: FileCopy "Cressona Template.xls", Me.txtOutputFileName it runs fine. If I run it again, however, without closing the form and reopening it (but deleting the target file specified in Me.txtOutputFileName that was created the first time), I get an error 52 - bad file number. Does anyone know why? MTIA, Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Sep 1 08:58:20 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 01 Sep 2006 06:58:20 -0700 Subject: [AccessD] File Copy In-Reply-To: <002501c6cdc8$8253a170$800101df@officexp> References: <002501c6cdc8$8253a170$800101df@officexp> Message-ID: <44F83C7C.7010300@san.rr.com> John: Unbound form. I would guess that there's something going on in my form that's not releasing the file number. I know I get this error if I try to open a file with a file number that's already in use. But with FileCopy there's no file number. For the moment I kind of went around the problem by using: Dim fs As Object Set fs = CreateObject("Scripting.FileSystemObject") fs.copyfile strExportPath & "Cressona Template.xls", Me.txtOutputFileName and that seems to work. Are there any known gotchas with file scripting? The FileCopy seemed so much mo' simpler. Thanks and Regards, Rocky John Skolits wrote: > Rocky, > > I tried this by creating an 'unbound' form and ran it multiple times and it > just kept overwriting the file with no problem. Was your form bound? > The various output files names I placed in the text box 'txtOutputFileName' > were: > "c:\test.xls" > "c:\test 2.xls" > "test.xls" > "test 2.xls" > Since you didn't specify a path, I tried it with and without one. > > When no path was specified, it obviously used the default. 'MyDocuments' > > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, August 31, 2006 7:47 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] File Copy > > Dear List: > > When I run a chunk of code which includes: > > FileCopy "Cressona Template.xls", Me.txtOutputFileName > > it runs fine. If I run it again, however, without closing the form and > reopening it (but deleting the target file specified in > Me.txtOutputFileName that was created the first time), I get an error > 52 - bad file number. > > Does anyone know why? > > MTIA, > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Lambert.Heenan at Aig.com Fri Sep 1 09:16:31 2006 From: Lambert.Heenan at Aig.com (Heenan, Lambert) Date: Fri, 1 Sep 2006 09:16:31 -0500 Subject: [AccessD] File Copy Message-ID: Maybe it's time to decompile the app. "When Access Gets Weird - Decompile" Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, September 01, 2006 9:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] File Copy John: Unbound form. I would guess that there's something going on in my form that's not releasing the file number. I know I get this error if I try to open a file with a file number that's already in use. But with FileCopy there's no file number. s For the moment I kind of went around the problem by using: Dim fs As Object Set fs = CreateObject("Scripting.FileSystemObject") fs.copyfile strExportPath & "Cressona Template.xls", Me.txtOutputFileName and that seems to work. Are there any known gotchas with file scripting? The FileCopy seemed so much mo' simpler. Thanks and Regards, Rocky John Skolits wrote: > Rocky, > > I tried this by creating an 'unbound' form and ran it multiple times > and it just kept overwriting the file with no problem. Was your form > bound? The various output files names I placed in the text box > 'txtOutputFileName' > were: > "c:\test.xls" > "c:\test 2.xls" > "test.xls" > "test 2.xls" > Since you didn't specify a path, I tried it with and without one. > > When no path was specified, it obviously used the default. > 'MyDocuments' > > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin - Beach Access Software > Sent: Thursday, August 31, 2006 7:47 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] File Copy > > Dear List: > > When I run a chunk of code which includes: > > FileCopy "Cressona Template.xls", Me.txtOutputFileName > > it runs fine. If I run it again, however, without closing the form and > reopening it (but deleting the target file specified in > Me.txtOutputFileName that was created the first time), I get an error > 52 - bad file number. > > Does anyone know why? > > MTIA, > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Sep 1 09:23:53 2006 From: askolits at ot.com (John Skolits) Date: Fri, 1 Sep 2006 10:23:53 -0400 Subject: [AccessD] File Copy In-Reply-To: <44F83C7C.7010300@san.rr.com> Message-ID: <003101c6cdd2$43749d60$6701a8c0@LaptopXP> I use both methods with good success so not sure if there are any gotchas. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, September 01, 2006 9:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] File Copy John: Unbound form. I would guess that there's something going on in my form that's not releasing the file number. I know I get this error if I try to open a file with a file number that's already in use. But with FileCopy there's no file number. For the moment I kind of went around the problem by using: Dim fs As Object Set fs = CreateObject("Scripting.FileSystemObject") fs.copyfile strExportPath & "Cressona Template.xls", Me.txtOutputFileName and that seems to work. Are there any known gotchas with file scripting? The FileCopy seemed so much mo' simpler. Thanks and Regards, Rocky John Skolits wrote: > Rocky, > > I tried this by creating an 'unbound' form and ran it multiple times and it > just kept overwriting the file with no problem. Was your form bound? > The various output files names I placed in the text box 'txtOutputFileName' > were: > "c:\test.xls" > "c:\test 2.xls" > "test.xls" > "test 2.xls" > Since you didn't specify a path, I tried it with and without one. > > When no path was specified, it obviously used the default. 'MyDocuments' > > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, August 31, 2006 7:47 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] File Copy > > Dear List: > > When I run a chunk of code which includes: > > FileCopy "Cressona Template.xls", Me.txtOutputFileName > > it runs fine. If I run it again, however, without closing the form and > reopening it (but deleting the target file specified in > Me.txtOutputFileName that was created the first time), I get an error > 52 - bad file number. > > Does anyone know why? > > MTIA, > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From scapistrant at symphonyinfo.com Fri Sep 1 11:16:21 2006 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Fri, 1 Sep 2006 11:16:21 -0500 Subject: [AccessD] CPU and locks References: <000001c6cd42$a3c2dc30$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F0103A41B@LAKATOS.Symphony.local> To: Arthur F, Marty C, Jim D, Jim L, Stuart M, Thank you for your detailed responses. I need all the ammo I can get to respond professionally to the server people about this. I'm going to google for for MSKB articles that explain this, unless any of you have specific links or Article numbers conveniently available. Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Main: 763-391-7400 ext 801 Toll Free: 888-357-1373 ext 801 Direct: 612-237-0075 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of artful at rogers.com Sent: Thu 8/31/2006 4:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CPU and locks What I have to offer may or may not be useful. Mostly it is a counter-example. I had about 70 users all hitting a TS box with 2GB of RAM, and the SQL db lived on another box. Users in several cities across North America. Never ONCE a performance problem. In fact, the sickening thing from my point of view: it was quicker to hit that remote box than to hit my local instance of exactly the same DB. We never experienced any collisions or deadlocks (polishing my nails for clever coding ), and we never suffered a performance issue or a deadlock. It simply did not happen, even once in about 4 years. I almost wish that it HAD happened so I would have a problem to investigate, but it never did. I ran the resource allocation stuff but it never presented a problem. Using TS, the initial user grabs a chunk of memory and everyone else uses re-entrant code, so the additional mem-grabs were tiny in comparison. Two GB sufficed to serve a potential 70 users (in reality, only maybe 40 were hitting the system at once, given time-zone variations etc.), but the point is that I did not have to throw heavy hardware at this problem, and everything worked beautifully. Admittedly, when 50 users were aboard, the CPU usage went way up, but that is only to be expected. More important, nobody whined about the performance delays. (Other facts of potential importance: it was an Access ADP app whose every object was driven by a sproc or udf; nothing was dynamic SQL. The server was not awesome, merely a P4 with 2GB of RAM. The OS was w2K TS with appropriate patches. The connections were all quick.We didn't bother with Citrix since TS gave us everything we needed.) Arthur ----- Original Message ---- From: Steve Capistrant To: Access Developers discussion and problem solving Sent: Thursday, August 31, 2006 4:40:47 PM Subject: [AccessD] CPU and locks Dear List, We have an Access 2000 app that has been running for years at a customer's site, provided to 100 users via Citrix profiles. In daily practice, there are usually 5 to 15 people logged in at any given time. The techies running the server are belly-aching about resource utilization. They note that CPU utlization per user zips up to 25% or 30% of server capacity when they perform routine actions (like applying filter rules to search on a form). It drops down to zero after a second or two. But they say "do the math" -- just 4 users doing stuff is going to completely max out our servers. We (our development team) are scratching our heads. This is normal for Access. It grabs as much resources as it can get to perform data access requests. And I've never heard of a server blowing up from too many simultaneous requests. Windows is designed to handle process threading reasonably well, putting things in order, assigning priorities, reserving some CPU for critical processes, etc. Nothing's really changed over the years. Is it just their awareness that has changed? Are these techies just freaking out because they have a new Performance Monitoring tool? The other observation they make that might cause overuse of CPU is something new to me: When you look at START > Control Panel > Adminstrative Tools > Computer Management > Shared Folders > Open Files.... ....they note that most of the MS Access item in this view are showing large numbers in the "# of Locks" column. Ranging from 15 to 42 each. This is something I can't explain. It's a standard FE/BE deployment, so an ldb gets generated at both the FE and BE levels. But what is this huge number of locks? Stranded ldbs? Some calculus involving the number of simultaneous users? I told them I'd explore what this meant.. Thank you ! Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Main: 763-391-7400 ext 801 Toll Free: 888-357-1373 ext 801 Direct: 612-237-0075 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Sep 1 11:45:01 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 01 Sep 2006 09:45:01 -0700 Subject: [AccessD] CPU and locks In-Reply-To: <02F5B8F3D893A845A3DF342F14D80F0103A41B@LAKATOS.Symphony.local> Message-ID: <0J4X007FOAHYK9J0@l-daemon> Hi Steve: Interesting enough you can get a 100% CPU utilization displayed, at times, if you are using Word or Excel and I suspect any other MS office product. Maybe the network guys should be focusing on eliminating all MS products from their systems.... just kidding of course. :-) And here is from the horse's mouth: http://support.microsoft.com/?kbid=160819 Pay particular attention to the second sentence. Note Microsoft Access only uses CPU resources that are idle. If your computer has other processes that are ready to run, it will run them. Microsoft Access does not decrease the performance of other applications as it polls its message queues. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Friday, September 01, 2006 9:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CPU and locks To: Arthur F, Marty C, Jim D, Jim L, Stuart M, Thank you for your detailed responses. I need all the ammo I can get to respond professionally to the server people about this. I'm going to google for for MSKB articles that explain this, unless any of you have specific links or Article numbers conveniently available. Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Main: 763-391-7400 ext 801 Toll Free: 888-357-1373 ext 801 Direct: 612-237-0075 From bchacc at san.rr.com Sat Sep 2 10:19:52 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 2 Sep 2006 08:19:52 -0700 Subject: [AccessD] OT: Old Printers Message-ID: <002201c6cea3$3ce04680$6901a8c0@HAL9005> Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky From jmhecht at earthlink.net Sat Sep 2 10:28:25 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sat, 2 Sep 2006 08:28:25 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: <002201c6cea3$3ce04680$6901a8c0@HAL9005> Message-ID: Good Morning Rocky, Do you a worthwhile group that is doing multi copy forms. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Saturday, September 02, 2006 8:20 AM To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Sep 2 10:33:50 2006 From: artful at rogers.com (artful at rogers.com) Date: Sat, 2 Sep 2006 08:33:50 -0700 (PDT) Subject: [AccessD] OT: Old Printers In-Reply-To: <002201c6cea3$3ce04680$6901a8c0@HAL9005> Message-ID: <20060902153350.34832.qmail@web88212.mail.re2.yahoo.com> There is a place here in Canada where people can donate old equipment, and they recycle it and send it to the Third World, I believe. There must be some equivalent in the USA. ----- Original Message ---- From: Beach Access Software To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Sent: Saturday, September 2, 2006 11:19:52 AM Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Sep 2 10:44:30 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 2 Sep 2006 08:44:30 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS08kGyAA Message-ID: <002d01c6cea6$adce28a0$6901a8c0@HAL9005> Dumping them is no problem. Goodwill will take them and either refurbish them and they'll find a new life somewhere or recycle them. I was just casting about for some useful alternative. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Saturday, September 02, 2006 8:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Old Printers There is a place here in Canada where people can donate old equipment, and they recycle it and send it to the Third World, I believe. There must be some equivalent in the USA. ----- Original Message ---- From: Beach Access Software To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Sent: Saturday, September 2, 2006 11:19:52 AM Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Sep 2 10:46:12 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 2 Sep 2006 08:46:12 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS08EGyAA Message-ID: <002e01c6cea6$eaa39580$6901a8c0@HAL9005> Easier said than done when IJ and Lasers are so cheap. Mutely-part? Just print three copies. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 02, 2006 8:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers Good Morning Rocky, Do you a worthwhile group that is doing multi copy forms. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Saturday, September 02, 2006 8:20 AM To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Sep 2 10:57:34 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 2 Sep 2006 08:57:34 -0700 Subject: [AccessD] OT: Thunderbird to Outlook Message-ID: <003301c6cea8$815dbef0$6901a8c0@HAL9005> Dear List(s): Does anyone know a way to transfer all of the email I've got in Thunderbird to Outlook? I've checked the web and can't find anything useful. MTIA Rocky From kathryn at bassett.net Sat Sep 2 11:54:00 2006 From: kathryn at bassett.net (Kathryn Bassett) Date: Sat, 2 Sep 2006 09:54:00 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: <002201c6cea3$3ce04680$6901a8c0@HAL9005> Message-ID: <001c01c6ceb0$63755e40$6501a8c0@Kathryn> http://groups.yahoo.com/group/SDFreecycle/ I've given away lots of stuff through Freecycle - I'm member of both the San Gabriel Valley list and the Arcadia list. Join the San Diego one, and ask if there is also one for Del Mar or north county etc. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Beach Access Software > Sent: 02 Sep 2006 8:20 am > To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com > Subject: [AccessD] OT: Old Printers > > Dear List(s): > > > > I've got two old dot matrix printers in the garage - Okidata > - one narrow one wide carriage. Gathering dust. I keep > looking at them thinking they should have some useful life - > they're great workhorses - cheap to run (bit noisy if you > remember). I'm thinking they go to Goodwill today along with > the extra CRT monitors and the old NEC laser printer taking > up space in the garage as well. > > > > What can be done with a wonderful but obsolete dot matrix printer? > > > > Rocky > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cclenright at yahoo.com Sat Sep 2 13:04:48 2006 From: cclenright at yahoo.com (Chris Enright) Date: Sat, 2 Sep 2006 11:04:48 -0700 (PDT) Subject: [AccessD] Where is the Zip Drive? In-Reply-To: Message-ID: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn?t where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn?t tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please don?t laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------------- Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. From bill_Patten at earthlink.net Sat Sep 2 13:20:37 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Sat, 2 Sep 2006 11:20:37 -0700 Subject: [AccessD] Where is the Zip Drive? References: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> Message-ID: <001e01c6cebc$7d7aa140$6401a8c0@BPCS> Hi Chris, Will this help? Its from the API Guide 2.7, you could loop through the drives till there where non and When Z for example came back as "backup" or what ever it is You would know. Private Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long Private Sub Form_Load() 'KPD-Team 1998 'URL: http://www.allapi.net/ 'E-Mail: KPDTeam at Allapi.net 'Set the graphic mode to persistent Me.AutoRedraw = True 'Get information about the C:\ Select Case GetDriveType("C:\") Case 2 Me.Print "Removable" Case 3 Me.Print "Drive Fixed" Case Is = 4 Me.Print "Remote" Case Is = 5 Me.Print "Cd-Rom" Case Is = 6 Me.Print "Ram disk" Case Else Me.Print "Unrecognized" End Select End Sub ----- Original Message ----- From: "Chris Enright" To: "Access Developers discussion and problem solving" Sent: Saturday, September 02, 2006 11:04 AM Subject: [AccessD] Where is the Zip Drive? The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn't where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn't tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please don't laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------------- Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Sep 2 14:00:51 2006 From: artful at rogers.com (artful at rogers.com) Date: Sat, 2 Sep 2006 12:00:51 -0700 (PDT) Subject: [AccessD] Where is the Zip Drive? In-Reply-To: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> Message-ID: <20060902190051.10283.qmail@web88212.mail.re2.yahoo.com> One thing that you could do fairly easily is create a table in the BE with exactly one row, and call it SysParameters or somesuch. Place a column in said table that would house the path to the backup instrument. Given that you have two variables, one indicating the name of the FE and the other indicating the path to the backup, you might want to add both columns to the SysParameters table. There are several schools of thought as to how to retrieve these values from the SysParameters table. A colleague of mine likes to drop some invisible controls on his Switchboard form, and draw the values into said controls using Dlookup(). I am not a fan of this approach; I prefer to use static functions (which are functions that retain their value between calls). JWC will tell you that the best approach is a class. Ultimately, it doesn't matter which path you select. The goal is to move the specifics out of your code and into a table. You could even fancy this up by running some code in the startup that looks in this table to see if these values are null, and if so it presents a form asking the user to name these objects (the FE and the target BU path). Your code ultimately needs to anticipate every possible drive/dir combination. For example, my main squeeze has 3 USB ports and depending on the day, who knows what's plugged into which port? Could be a digital camera, could be one of my two memory sticks. And conceivably I could be pointing to my DVD writer, which happens not to be on my main squeeze but instead is mapped. That's why I like the SysParameters approach. The user can set her situation up and be done with it, and if she happens to acquire a new DVD writer, she just visits this form, fixes the pointer and that is that. hth. Arthur ----- Original Message ---- From: Chris Enright To: Access Developers discussion and problem solving Sent: Saturday, September 2, 2006 2:04:48 PM Subject: [AccessD] Where is the Zip Drive? The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isnt where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didnt tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please dont laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------------- Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sat Sep 2 14:09:48 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 02 Sep 2006 12:09:48 -0700 Subject: [AccessD] Where is the Zip Drive? In-Reply-To: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> References: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> Message-ID: <44F9D6FC.5000801@shaw.ca> running sub checkavailabledrives should indicate a zip drive as a "Removable drive." and its path like so Path A:\ Drive Type Floppy drive. Path C:\ Drive Type Hard drive; can not be removed. Path D:\ Drive Type CD-ROM drive. Path E:\ Drive Type Hard drive; can not be removed. Public Declare Function GetLogicalDriveStrings Lib "kernel32" _ Alias "GetLogicalDriveStringsA" _ (ByVal nBufferLength As Long, _ ByVal lpBuffer As String) As Long Public Declare Function GetDriveType Lib "kernel32" _ Alias "GetDriveTypeA" _ (ByVal nDrive As String) As Long 'drive type constants Public Const DRIVE_REMOVABLE As Long = 2 Public Const DRIVE_FIXED As Long = 3 Public Const DRIVE_REMOTE As Long = 4 Public Const DRIVE_CDROM As Long = 5 Public Const DRIVE_RAMDISK As Long = 6 Public Sub CheckAvailableDrives() Dim lpBuffer As String 'get list of available drives lpBuffer = GetDriveString() 'Separate the drive strings 'and add to the combo. StripNulls 'will continually shorten the 'string. Loop until a single 'remaining terminating null is 'encountered. Do Until lpBuffer = Chr$(0) Dim strDrive As String 'strip off one drive item 'and add to the combo strDrive = StripNull(lpBuffer) Debug.Print "Path " & strDrive & " Drive Type " & rgbGetDriveType(strDrive) Loop End Sub Private Function rgbGetDriveType(RootPathName As String) As String 'returns the type of drive. Select Case GetDriveType(RootPathName) Case 0: rgbGetDriveType = "The drive type cannot be determined." Case 1: rgbGetDriveType = "The root directory does not exist." Case DRIVE_REMOVABLE: Select Case Left(RootPathName, 1) Case "a", "b": rgbGetDriveType = "Floppy drive." Case Else: rgbGetDriveType = "Removable drive." End Select Case DRIVE_FIXED: rgbGetDriveType = "Hard drive; can not be removed." Case DRIVE_REMOTE: rgbGetDriveType = "Remote (network) drive." Case DRIVE_CDROM: rgbGetDriveType = "CD-ROM drive." Case DRIVE_RAMDISK: rgbGetDriveType = "RAM disk." End Select End Function Public Function GetDriveString() As String 'returns string of available 'drives each separated by a null Dim sBuffer As String 'possible 26 drives, three characters each, plus trailing null sBuffer = Space$(26 * 4) If GetLogicalDriveStrings(Len(sBuffer), sBuffer) Then 'do not trim off trailing null! GetDriveString = Trim$(sBuffer) End If End Function Function StripNull(startStrg As String) As String 'Take a string separated by Chr(0)'s, and split off 1 item, and 'shorten the string so that the next item is ready for removal. Dim pos As Integer pos = InStr(startStrg, Chr$(0)) If pos Then StripNull = Mid(startStrg, 1, pos - 1) startStrg = Mid(startStrg, pos + 1, Len(startStrg)) End If End Function Chris Enright wrote: >The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J > > I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. > > Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. > > My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) > > However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn?t where I programmed it. > > The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn?t tell me what he had done) tracking down a problem on a new installation. > > Below is my, very crude, (please don?t laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? > > TIA > > Chris > > {Oh I am embarrassed about showing my code to you lot} > > ---------------------------------------------------------------------------------- > > Private Function Backup() > > Dim strNewDBName As String > Dim strOldDbName As String > Dim fso > Dim file As String > Dim msg As String > > On Error GoTo Err_Backup > > DoCmd.Hourglass True > > ' copy database > strOldDbName = "C:\Startan\Startan BE.mdb" > strNewDBName = "D:\BuExp.mdb" > FileCopy strOldDbName, strNewDBName > > ' if a previous backup exists then delete it > file = "D:\StartanBU.mdb" > Set fso = CreateObject("Scripting.FileSystemObject") > If fso.FileExists(file) Then > fso.DeleteFile file, True > End If > > ' rename backup database > Name strNewDBName As file > > DoCmd.Hourglass False > > Exit_Backup: > Exit Function > > Err_Backup: > msg = "Make sure the Zip Disk is in the computer " '& Chr(10) > msg = msg & "and that the drive lights have stopped flashing " > msg = msg & "and then press Enter" > MsgBox msg > Resume > > End Function > > > > > Still blushing, going for a drink!! > > > Chris > > > >--------------------------------- >Stay in the know. Pulse on the new Yahoo.com. Check it out. > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Sat Sep 2 15:07:02 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 02 Sep 2006 13:07:02 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: <002201c6cea3$3ce04680$6901a8c0@HAL9005> Message-ID: <0J4Z001RIEIJHXM1@l-daemon> Rocky: Oddly enough may of my clients use them in the counter sales. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Saturday, September 02, 2006 8:20 AM To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Sep 2 15:33:09 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 02 Sep 2006 13:33:09 -0700 Subject: [AccessD] Where is the Zip Drive? In-Reply-To: <20060902180448.10449.qmail@web34303.mail.mud.yahoo.com> Message-ID: <0J4Z001M5FQ2HXO1@l-daemon> Chris: If it works, you're an expert. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Saturday, September 02, 2006 11:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] Where is the Zip Drive? The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn't where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn't tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please don't laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------- ------ Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Sat Sep 2 17:39:36 2006 From: kismert at gmail.com (Ken Ismert) Date: Sat, 02 Sep 2006 17:39:36 -0500 Subject: [AccessD] OT: Thunderbird to Outlook Message-ID: <44FA0828.7080406@gmail.com> Rocky, Thunderbird stores its email in a plain text file format, which should be directly importable to Outlook using the Eudora setting. See: How do I export e-mail messages to another mail program or computer? http://www.mozilla.org/support/thunderbird/faq#q2.10 -Ken From cclenright at yahoo.com Sun Sep 3 05:44:27 2006 From: cclenright at yahoo.com (Chris Enright) Date: Sun, 3 Sep 2006 03:44:27 -0700 (PDT) Subject: [AccessD] Where is the Zip Drive? In-Reply-To: <0J4Z001M5FQ2HXO1@l-daemon> Message-ID: <20060903104427.40119.qmail@web34314.mail.mud.yahoo.com> I wish!! I seem to remember the definition of expert: x is an unknown quantity spurt is a drip under pressure or An expert is someone who knows more and more about less and less until in the end he knows everything about nothing! Jim Lawrence wrote: Chris: If it works, you're an expert. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Saturday, September 02, 2006 11:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] Where is the Zip Drive? The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn't where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn't tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please don't laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------- ------ Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. From rbgajewski at adelphia.net Sun Sep 3 16:20:24 2006 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Sun, 3 Sep 2006 17:20:24 -0400 Subject: [AccessD] Where is the Zip Drive? In-Reply-To: <20060903104427.40119.qmail@web34314.mail.mud.yahoo.com> Message-ID: <001001c6cf9e$c57fb060$bd00a8c0@DG1P2N21> You're close, Chris, but the "ex" part really stands for "has-been". Bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Sunday, September 03, 2006 06:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Where is the Zip Drive? I wish!! I seem to remember the definition of expert: x is an unknown quantity spurt is a drip under pressure or An expert is someone who knows more and more about less and less until in the end he knows everything about nothing! Jim Lawrence wrote: Chris: If it works, you're an expert. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Saturday, September 02, 2006 11:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] Where is the Zip Drive? The little I know about VBA I got from this site. Every day I read every email! Eighty percent goes right over my head! But the little I have understood from AccessD makes me a living. J I have a program that the customer loves. He keeps opening new branches and, because he is slightly computer literate (and therefore dangerous), he happily installs FE and, a BE with blank tables, on each new PC. Unfortunately, the people who supply the PCs to him configure them differently each time they supply one. My program is designed so that, at close down, it will backup the BE to an Iola Zip Disk. This is normally E:. (Based on A: Floppy, B: (showing your age), C: Hard Disk, D: CD/DVD.) However, sometimes there seem to be all sorts of odd drives, even phantom disk partitions and the Zip Drive isn't where I programmed it. The customer LOVES going in to my FE and sorting it out! Inevitably I then spend hours (because he didn't tell me what he had done) tracking down a problem on a new installation. Below is my, very crude, (please don't laugh, it normally works), backup function. Could someone please correct it, either to the list or offline, so that it will detect where the Zip Disk is? TIA Chris {Oh I am embarrassed about showing my code to you lot} ---------------------------------------------------------------------------- ------ Private Function Backup() Dim strNewDBName As String Dim strOldDbName As String Dim fso Dim file As String Dim msg As String On Error GoTo Err_Backup DoCmd.Hourglass True ' copy database strOldDbName = "C:\Startan\Startan BE.mdb" strNewDBName = "D:\BuExp.mdb" FileCopy strOldDbName, strNewDBName ' if a previous backup exists then delete it file = "D:\StartanBU.mdb" Set fso = CreateObject("Scripting.FileSystemObject") If fso.FileExists(file) Then fso.DeleteFile file, True End If ' rename backup database Name strNewDBName As file DoCmd.Hourglass False Exit_Backup: Exit Function Err_Backup: msg = "Make sure the Zip Disk is in the computer " '& Chr(10) msg = msg & "and that the drive lights have stopped flashing " msg = msg & "and then press Enter" MsgBox msg Resume End Function Still blushing, going for a drink!! Chris --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Sep 4 14:21:35 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 12:21:35 -0700 Subject: [AccessD] OT: AV and the New Box Message-ID: <002d01c6d057$56a390d0$6701a8c0@HAL9005> Dear list: I got a new machine that came pre-loaded with McAfee. It seems to be pretty well laced into the whole OS. I'm considering removing the entire thing. I'll put in AVG for anti-virus and Sygate for firewall. I'm also considering forgetting about the firewall and I'm already behind a hardware firewall with the router. So software firewall seems redundant and may cause more problems than it solves. Any opinions? Rocky From bchacc at san.rr.com Mon Sep 4 14:24:00 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 12:24:00 -0700 Subject: [AccessD] OT: Thunderbird to Outlook In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS09kIyAA Message-ID: <003201c6d057$ad219830$6701a8c0@HAL9005> I may give that a try. However, I'm questioning the whole assumption that I need all that email transferred. I'm not sure why I keep it. In six months I'll have another pile of it on the new machine. What does everybody do with email? Keep it all forever? Delete it as you go? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Saturday, September 02, 2006 3:40 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Thunderbird to Outlook Rocky, Thunderbird stores its email in a plain text file format, which should be directly importable to Outlook using the Eudora setting. See: How do I export e-mail messages to another mail program or computer? http://www.mozilla.org/support/thunderbird/faq#q2.10 -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 4 15:11:35 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 4 Sep 2006 16:11:35 -0400 Subject: [AccessD] OT: Thunderbird to Outlook References: <003201c6d057$ad219830$6701a8c0@HAL9005> Message-ID: <000701c6d05e$53738260$153ce944@50NM721> ...I routinely transfer what I consider "keeper" stuff to into separate folders ...every couple of weeks I go through the other folders and do mass deletes ...when time permits I go through the keeper folders like "Access" and edit out the code or ideas or links and transfer them into a Treepad txt database that makes finding and using them so much simpler ...then I clean out those folders as well. ...takes some time but the stuff that I get off lists like this has saved me so many more hours than it took to archive it ...often enough the stuff I save isn't currently useful, but then along comes another tid-bit and the lightbulb comes on and the two or three pieces together add up to something really useful. William Hindman ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 04, 2006 3:24 PM Subject: Re: [AccessD] OT: Thunderbird to Outlook >I may give that a try. However, I'm questioning the whole assumption that >I > need all that email transferred. I'm not sure why I keep it. In six > months > I'll have another pile of it on the new machine. > > What does everybody do with email? Keep it all forever? Delete it as you > go? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert > Sent: Saturday, September 02, 2006 3:40 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: Thunderbird to Outlook > > Rocky, > > Thunderbird stores its email in a plain text file format, which should > be directly importable to Outlook using the Eudora setting. See: > > How do I export e-mail messages to another mail program or computer? > http://www.mozilla.org/support/thunderbird/faq#q2.10 > > -Ken > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Mon Sep 4 15:18:47 2006 From: artful at rogers.com (artful at rogers.com) Date: Mon, 4 Sep 2006 13:18:47 -0700 (PDT) Subject: [AccessD] OT: AV and the New Box In-Reply-To: <002d01c6d057$56a390d0$6701a8c0@HAL9005> Message-ID: <20060904201847.47298.qmail@web88205.mail.re2.yahoo.com> I did too. And also behind the firewall built into my LinkSys router. ----- Original Message ---- From: Beach Access Software To: accessd at databaseadvisors.com Sent: Monday, September 4, 2006 3:21:35 PM Subject: [AccessD] OT: AV and the New Box Dear list: I got a new machine that came pre-loaded with McAfee. It seems to be pretty well laced into the whole OS. I'm considering removing the entire thing. I'll put in AVG for anti-virus and Sygate for firewall. From artful at rogers.com Mon Sep 4 15:20:55 2006 From: artful at rogers.com (artful at rogers.com) Date: Mon, 4 Sep 2006 13:20:55 -0700 (PDT) Subject: [AccessD] OT: Thunderbird to Outlook In-Reply-To: <003201c6d057$ad219830$6701a8c0@HAL9005> Message-ID: <20060904202055.25653.qmail@web88207.mail.re2.yahoo.com> Speaking only for myself, I stopped keeping any of it locally. It's all on some box owned by yahoo. Arthur ----- Original Message ---- From: Beach Access Software To: Access Developers discussion and problem solving Sent: Monday, September 4, 2006 3:24:00 PM Subject: Re: [AccessD] OT: Thunderbird to Outlook I may give that a try. However, I'm questioning the whole assumption that I need all that email transferred. I'm not sure why I keep it. In six months I'll have another pile of it on the new machine. What does everybody do with email? Keep it all forever? Delete it as you go? Rocky From bchacc at san.rr.com Mon Sep 4 15:50:32 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 13:50:32 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS09EISAA Message-ID: <004301c6d063$c56f1910$6701a8c0@HAL9005> One's a Panasonic KX-P1524, the other is a KX-P2123. Both vintage printers from the 80s. Don't suppose there's any interest? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, September 02, 2006 1:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers Rocky: Oddly enough may of my clients use them in the counter sales. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Saturday, September 02, 2006 8:20 AM To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] OT: Old Printers Dear List(s): I've got two old dot matrix printers in the garage - Okidata - one narrow one wide carriage. Gathering dust. I keep looking at them thinking they should have some useful life - they're great workhorses - cheap to run (bit noisy if you remember). I'm thinking they go to Goodwill today along with the extra CRT monitors and the old NEC laser printer taking up space in the garage as well. What can be done with a wonderful but obsolete dot matrix printer? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Sep 4 15:57:02 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 13:57:02 -0700 Subject: [AccessD] OT: AV and the New Box In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS0+EPyAA Message-ID: <004901c6d064$abf476f0$6701a8c0@HAL9005> You did? Delete McAfee? Use AVG and/or Sygate? Can a software firewall do anything that a hardware firewall would miss? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, September 04, 2006 1:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: AV and the New Box I did too. And also behind the firewall built into my LinkSys router. ----- Original Message ---- From: Beach Access Software To: accessd at databaseadvisors.com Sent: Monday, September 4, 2006 3:21:35 PM Subject: [AccessD] OT: AV and the New Box Dear list: I got a new machine that came pre-loaded with McAfee. It seems to be pretty well laced into the whole OS. I'm considering removing the entire thing. I'll put in AVG for anti-virus and Sygate for firewall. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 4 16:08:23 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 4 Sep 2006 17:08:23 -0400 Subject: [AccessD] OT: Old Printers References: <004301c6d063$c56f1910$6701a8c0@HAL9005> Message-ID: <005801c6d066$425ab400$153ce944@50NM721> ...join your local freecycle group ...there is always someone who thinks your trash is really treasure ...I joined the one here and it actually works ...besides the things I've picked up myself, its amazing how quickly people will run over to pick something up that you would have otherwise thrown out. http://www.freecycle.org/ William Hindman ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 04, 2006 4:50 PM Subject: Re: [AccessD] OT: Old Printers > One's a Panasonic KX-P1524, the other is a KX-P2123. Both vintage > printers > from the 80s. Don't suppose there's any interest? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Saturday, September 02, 2006 1:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Old Printers > > Rocky: Oddly enough may of my clients use them in the counter sales. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access > Software > Sent: Saturday, September 02, 2006 8:20 AM > To: dba-ot at databaseadvisors.com; accessd at databaseadvisors.com > Subject: [AccessD] OT: Old Printers > > Dear List(s): > > > > I've got two old dot matrix printers in the garage - Okidata - one narrow > one wide carriage. Gathering dust. I keep looking at them thinking they > should have some useful life - they're great workhorses - cheap to run > (bit > noisy if you remember). I'm thinking they go to Goodwill today along with > the extra CRT monitors and the old NEC laser printer taking up space in > the > garage as well. > > > > What can be done with a wonderful but obsolete dot matrix printer? > > > > Rocky > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Mon Sep 4 16:09:04 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 4 Sep 2006 16:09:04 -0500 Subject: [AccessD] OT: AV and the New Box Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDCFC@MARLOW_MAIN2.marlow.com> A software firewall will alert you as to what is coming in and out. But that's about it. Usually software firewalls are a little easier to configure, depending on what you are using. In the consumer world they are, but the industrial routers have capabilities that would make ya drool! ;) Drew -----Original Message----- From: Beach Access Software [mailto:bchacc at san.rr.com] Sent: Monday, September 04, 2006 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: AV and the New Box You did? Delete McAfee? Use AVG and/or Sygate? Can a software firewall do anything that a hardware firewall would miss? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, September 04, 2006 1:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: AV and the New Box I did too. And also behind the firewall built into my LinkSys router. ----- Original Message ---- From: Beach Access Software To: accessd at databaseadvisors.com Sent: Monday, September 4, 2006 3:21:35 PM Subject: [AccessD] OT: AV and the New Box Dear list: I got a new machine that came pre-loaded with McAfee. It seems to be pretty well laced into the whole OS. I'm considering removing the entire thing. I'll put in AVG for anti-virus and Sygate for firewall. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 4 16:11:46 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 4 Sep 2006 17:11:46 -0400 Subject: [AccessD] OT: AV and the New Box References: <004901c6d064$abf476f0$6701a8c0@HAL9005> Message-ID: <000301c6d066$bbb46080$153ce944@50NM721> ...unfortunately, yes http://www.smallbusinesscomputing.com/webmaster/article.php/3103431 William Hindman ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 04, 2006 4:57 PM Subject: Re: [AccessD] OT: AV and the New Box > You did? Delete McAfee? Use AVG and/or Sygate? > > Can a software firewall do anything that a hardware firewall would miss? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Monday, September 04, 2006 1:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: AV and the New Box > > I did too. And also behind the firewall built into my LinkSys router. > > ----- Original Message ---- > From: Beach Access Software > To: accessd at databaseadvisors.com > Sent: Monday, September 4, 2006 3:21:35 PM > Subject: [AccessD] OT: AV and the New Box > > Dear list: > I got a new machine that came pre-loaded with McAfee. It seems to be > pretty > well laced into the whole OS. I'm considering removing the entire thing. > I'll put in AVG for anti-virus and Sygate for firewall. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Mon Sep 4 16:26:11 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 04 Sep 2006 14:26:11 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: <004301c6d063$c56f1910$6701a8c0@HAL9005> Message-ID: <0J53004617I6NQ60@l-daemon> Rocky, you can still buy all the ribbons you want. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, September 04, 2006 1:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers One's a Panasonic KX-P1524, the other is a KX-P2123. Both vintage printers from the 80s. Don't suppose there's any interest? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, September 02, 2006 1:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers Rocky: Oddly enough may of my clients use them in the counter sales. Jim From bchacc at san.rr.com Mon Sep 4 16:32:45 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 14:32:45 -0700 Subject: [AccessD] OT: Old Printers In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS0/kQSAA Message-ID: <004a01c6d069$a975a200$6701a8c0@HAL9005> Oh, fabulous. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 04, 2006 2:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers Rocky, you can still buy all the ribbons you want. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, September 04, 2006 1:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers One's a Panasonic KX-P1524, the other is a KX-P2123. Both vintage printers from the 80s. Don't suppose there's any interest? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, September 02, 2006 1:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Old Printers Rocky: Oddly enough may of my clients use them in the counter sales. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Sep 4 16:44:56 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 05 Sep 2006 07:44:56 +1000 Subject: [AccessD] OT: AV and the New Box In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BDCFC@MARLOW_MAIN2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1BDCFC@MARLOW_MAIN2.marlow.com> Message-ID: <44FD2AF8.9631.168D9D0B@stuart.lexacorp.com.pg> On 4 Sep 2006 at 16:09, DWUTKA at marlow.com wrote: > A software firewall will alert you as to what is coming in and out. But > that's about it. Usually software firewalls are a little easier to > configure, depending on what you are using. In the consumer world they are, > but the industrial routers have capabilities that would make ya drool! ;) Software firewalls also allow you to control what *applications* can go in and out. For example a standard hardware router will be allowing traffic on Port 80(HTTP), 25(SMTP mail) and 21(FTP). It won't control what applications use these ports. A decent software firewall, allows you to deteremine what any specific application can do and will tell you if any un-authorised application such as a virus or trojan tries to use one of these ports. I advise people to use both. -- Stuart From bchacc at san.rr.com Mon Sep 4 23:32:09 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 4 Sep 2006 21:32:09 -0700 Subject: [AccessD] OT: AV and the New Box In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS0/EQiAA Message-ID: <005a01c6d0a4$40640af0$6701a8c0@HAL9005> OK. Done. Tomorrow - goodbye McAfee, hello Sygate and AVG. Thanks to all and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 04, 2006 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: AV and the New Box On 4 Sep 2006 at 16:09, DWUTKA at marlow.com wrote: > A software firewall will alert you as to what is coming in and out. But > that's about it. Usually software firewalls are a little easier to > configure, depending on what you are using. In the consumer world they are, > but the industrial routers have capabilities that would make ya drool! ;) Software firewalls also allow you to control what *applications* can go in and out. For example a standard hardware router will be allowing traffic on Port 80(HTTP), 25(SMTP mail) and 21(FTP). It won't control what applications use these ports. A decent software firewall, allows you to deteremine what any specific application can do and will tell you if any un-authorised application such as a virus or trojan tries to use one of these ports. I advise people to use both. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Tue Sep 5 14:21:18 2006 From: kismert at gmail.com (Ken Ismert) Date: Tue, 05 Sep 2006 14:21:18 -0500 Subject: [AccessD] OT: Thunderbird to Outlook Message-ID: <44FDCE2E.4090202@gmail.com> Rocky, >What does everybody do with email? Keep it all forever? >Delete it as you go? You can setup Thunderbird to auto-delete old emails from a folder. Right-click on a folder, and select Properties. In the Folder Properties dialog, select the Retention Policy tab. From there you can set the maximum number or age of emails to keep. I set a limit of 30 days on most of my email digest subscriptions. Anything older and I rely on DatabaseAdvisors search. -Ken From dw-murphy at cox.net Tue Sep 5 14:27:57 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 5 Sep 2006 12:27:57 -0700 Subject: [AccessD] OT: AV and the New Box In-Reply-To: <005a01c6d0a4$40640af0$6701a8c0@HAL9005> Message-ID: <005901c6d121$64871c60$0200a8c0@murphy3234aaf1> Hi folks, I have been using Access 2003 now for about 4 months. Tried to create a form this morning and put a tab control on it with the background set to transparent. Even though the background property on the control says it is transparent, the background does not change from the default white. As I recollect in XP and 2000 the tab control work area would turn transparent if the transparent property was set. Is this some new feature with Access 2003, a bug, or am I missing something? Thanks in advance for any information on this. Doug From dw-murphy at cox.net Tue Sep 5 14:35:20 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 5 Sep 2006 12:35:20 -0700 Subject: [AccessD] Access 2003 Tab Control visibility In-Reply-To: <005901c6d121$64871c60$0200a8c0@murphy3234aaf1> Message-ID: <005e01c6d122$6c9ab7d0$0200a8c0@murphy3234aaf1> All, Sorry about the subject not being on subject in my previous post. To creat a new message to this group I usually just respond to a previous message, but change the subject. In any case I found my problem with the tab control. The "Use Windows Themed Controls on Forms" item was checked in the Options group. Unchecked it and now my tab is transparent. Maybe this will save someone else some trouble. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 05, 2006 12:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: AV and the New Box Hi folks, I have been using Access 2003 now for about 4 months. Tried to create a form this morning and put a tab control on it with the background set to transparent. Even though the background property on the control says it is transparent, the background does not change from the default white. As I recollect in XP and 2000 the tab control work area would turn transparent if the transparent property was set. Is this some new feature with Access 2003, a bug, or am I missing something? Thanks in advance for any information on this. Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Tue Sep 5 14:55:09 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 5 Sep 2006 12:55:09 -0700 Subject: [AccessD] A97 and confused??? In-Reply-To: Message-ID: Mark, Did you ever get the answer to this? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, August 22, 2006 7:23 AM To: accessd at databaseadvisors.com Subject: [AccessD] A97 and confused??? Hello All, I have a table with 147 rows. If I open the table...there are no filters...only 147 rows. If I run a MakeTable or an APPEND query based on this table I get 147 rows...If I display the datasheet view of "DELETE tblPostCardList.* FROM tblPostCardList;"...I get 147 rows...but if I execute this exact same SQL...the message is I'm about to delete 3723 rows??? I haven't clicked yes...not really too concerned...just repair and compact...but very curious if anyone has an understanding/explanation of this? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Sep 6 01:15:24 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 06 Sep 2006 06:15:24 +0000 Subject: [AccessD] A97 and confused??? Message-ID: Hey Joe, I got some opinions...I knew if I actually executed the query...or compacted...it would be back to normal...and it was...but the consencus was that Access just remembers how many rows used to be there...and it got confused? I was just curious if anyone KNEW the answer definitively. Thanks, Mark A. Matte >From: "Joe Hecht" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 and confused??? >Date: Tue, 5 Sep 2006 12:55:09 -0700 > >Mark, > >Did you ever get the answer to this? > > >Joe Hecht >jmhecht at earthlink.net > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Tuesday, August 22, 2006 7:23 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 and confused??? > >Hello All, > >I have a table with 147 rows. If I open the table...there are no >filters...only 147 rows. If I run a MakeTable or an APPEND query based on >this table I get 147 rows...If I display the datasheet view of "DELETE >tblPostCardList.* FROM tblPostCardList;"...I get 147 rows...but if I >execute >this exact same SQL...the message is I'm about to delete 3723 rows??? I >haven't clicked yes...not really too concerned...just repair and >compact...but very curious if anyone has an understanding/explanation of >this? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Sep 6 01:18:29 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 06 Sep 2006 06:18:29 +0000 Subject: [AccessD] OT: Tucson anyone? Message-ID: Hello All, I'm visiting Tucson, AZ for the week...Anyone up for lunch, dinner, or beverages (billiards prefered)...let me know. Mark A. Matte 336/253-5270 From bchacc at san.rr.com Wed Sep 6 08:37:16 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 6 Sep 2006 06:37:16 -0700 Subject: [AccessD] App Not Digitally Signed Message-ID: <002401c6d1b9$953262a0$6701a8c0@HAL9005> Dear List: I sent an app over to my distributor in Taiwan, an mde. She cannot run it because she gets a message ?Cannot Open (app name) due to security restrictions. Security settings restrict access to the file because it is not digitally signed.? I?m sure it has to do with some setting on her machine because the client who is using it in Shanghai has no problem. Is this the Macro-->Security setting or some other setting? MTIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 From bchacc at san.rr.com Wed Sep 6 08:57:17 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 6 Sep 2006 06:57:17 -0700 Subject: [AccessD] OT: Thunderbird to Outlook In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS0+EVyAA Message-ID: <002a01c6d1bc$5e355c50$6701a8c0@HAL9005> I have a few clients that I just keep everything on. With the stuff in the Send folder it provides a history of the activities. Those are the ones that I am thinking of shifting over to Outlook. But when I try the import from machine 2, the folder I point to on machine 1 with the email doesn't allow access. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Tuesday, September 05, 2006 12:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Thunderbird to Outlook Rocky, >What does everybody do with email? Keep it all forever? >Delete it as you go? You can setup Thunderbird to auto-delete old emails from a folder. Right-click on a folder, and select Properties. In the Folder Properties dialog, select the Retention Policy tab. From there you can set the maximum number or age of emails to keep. I set a limit of 30 days on most of my email digest subscriptions. Anything older and I rely on DatabaseAdvisors search. -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 From bchacc at san.rr.com Wed Sep 6 08:58:13 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 6 Sep 2006 06:58:13 -0700 Subject: [AccessD] OT: AV and the New Box In-Reply-To: AAAAALNYn5QmsCVIpPJsk6RuS0/EQiAA Message-ID: <002b01c6d1bc$7ee5bd00$6701a8c0@HAL9005> So I got rid of McAfee which seemed to have itself laced into WXP pretty good (like 6-7 different applications), and replaced with AVG and Sygate. Things seem to run more smoothly now. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 04, 2006 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: AV and the New Box On 4 Sep 2006 at 16:09, DWUTKA at marlow.com wrote: > A software firewall will alert you as to what is coming in and out. But > that's about it. Usually software firewalls are a little easier to > configure, depending on what you are using. In the consumer world they are, > but the industrial routers have capabilities that would make ya drool! ;) Software firewalls also allow you to control what *applications* can go in and out. For example a standard hardware router will be allowing traffic on Port 80(HTTP), 25(SMTP mail) and 21(FTP). It won't control what applications use these ports. A decent software firewall, allows you to deteremine what any specific application can do and will tell you if any un-authorised application such as a virus or trojan tries to use one of these ports. I advise people to use both. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 From wdhindman at dejpolsystems.com Wed Sep 6 09:23:06 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 6 Sep 2006 10:23:06 -0400 Subject: [AccessD] App Not Digitally Signed References: <002401c6d1b9$953262a0$6701a8c0@HAL9005> Message-ID: <002b01c6d1bf$f93ef7d0$153ce944@50NM721> ...its the macro security ...if she sets it to low the app should run. ...you can add a digital signature to your app to resolve this issue ...but be aware that if you do then modifying any action queries in code may break your app. William Hindman ----- Original Message ----- From: "Beach Access Software" To: Sent: Wednesday, September 06, 2006 9:37 AM Subject: [AccessD] App Not Digitally Signed > Dear List: > > > > I sent an app over to my distributor in Taiwan, an mde. She cannot run it > because she gets a message ?Cannot Open (app name) due to security > restrictions. Security settings restrict access to the file because it is > not digitally signed.? > > > > I?m sure it has to do with some setting on her machine because the client > who is using it in Shanghai has no problem. > > > > Is this the Macro-->Security setting or some other setting? > > > > MTIA > > > > Rocky > > > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 9/5/2006 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Wed Sep 6 15:35:21 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 6 Sep 2006 15:35:21 -0500 Subject: [AccessD] OT: What exactly, do Date Modified, Date Created, and Date Accessed really mean? Message-ID: <007001c6d1f3$f9ff8b10$0200a8c0@danwaters> I want to list the files in a folder on a form so a user can select the file they want to open. I can list these three dates to help give more info, but they don't seem to make sense. I think I see that Modified can be earlier than Created if the file was a copy and hadn't been modified since the copy action. But what does Date Accessed mean? I opened a file, looked at it, then closed it w/o changes. The Date Accessed did not change. I did a Google search, but nothing helpful showed up. Thanks! Dan From dajomigo at tpg.com.au Wed Sep 6 17:09:57 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Thu, 07 Sep 2006 08:09:57 +1000 Subject: [AccessD] Updating a bound image using VBA In-Reply-To: References: <004301c67958$7a683350$6601a8c0@office> Message-ID: <6.2.1.2.2.20060907071131.03eae2f8@mail.tpg.com.au> I have a form for entering new movie stock into a Video Library database. This form also allows the user to update details for all copies of the title. Because of this the data is updated using code. One of the fields in the table is an image field. The code I am using is: 'Update Movie Title Details Dim rsUpdateMovieTitleDetails As Recordset Dim strMovieName As String strMovieName = Forms![frmAddNewMovieStock]![cboSelectMovieTitle] Set rsUpdateMovieTitleDetails = New ADODB.Recordset rsUpdateMovieTitleDetails.ActiveConnection = CurrentProject.Connection rsUpdateMovieTitleDetails.Open "tblTitles", , adOpenKeyset, adLockOptimistic, adCmdTable 'Loop through the recordset Do Until rsUpdateMovieTitleDetails.EOF If rsUpdateMovieTitleDetails.Fields("name") = strMovieName Then rsUpdateMovieTitleDetails.Fields("supplier") = Me.supplier rsUpdateMovieTitleDetails.Fields("rating") = Me.rating rsUpdateMovieTitleDetails.Fields("categoryName") = Me.categoryName rsUpdateMovieTitleDetails.Fields("RentalTypeID") = Me.RentalTypeID rsUpdateMovieTitleDetails.Fields("cover") = Me.oleCover End If rsUpdateMovieTitleDetails.MoveNext Loop rsUpdateMovieTitleDetails.Close I keep getting this error message: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. Can anyone explain to me what I can do about this? TIA David Gould DG Solutions From martyconnelly at shaw.ca Wed Sep 6 19:13:45 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 06 Sep 2006 17:13:45 -0700 Subject: [AccessD] Updating a bound image using VBA In-Reply-To: <6.2.1.2.2.20060907071131.03eae2f8@mail.tpg.com.au> References: <004301c67958$7a683350$6601a8c0@office> <6.2.1.2.2.20060907071131.03eae2f8@mail.tpg.com.au> Message-ID: <44FF6439.8080302@shaw.ca> Assuming you have an embedded OLEfield that contains your photo, in other words you have say a jpg within an OLE wrapper or header that says what OLE server draws the image it could be Kodak Wang or Paintbrush or ..... Otherwise you will have to use unembedded methods to handle just the blob The blob could be an xml string, word .doc file or say a .gif as a binary string. So use this method. http://www.lebans.com/loadsavejpeg.htm If it is embedded; to copy ole field to another table use appendchunk AppendChunk and GetChunk Methods Example from Access 97 help This example uses the AppendChunk and GetChunk methods to fill an OLE object field with data from another record, 32K at a time. In a real application, one might use a procedure like this to copy an employee record (including the employee's photo) from one table to another. In this example, the record is simply being copied back to same table. Note that all the chunk manipulation takes place within a single AddNew-Update sequence. Sub AppendChunkX() Dim dbsNorthwind As Database Dim rstEmployees As Recordset Dim rstEmployees2 As Recordset Set dbsNorthwind = OpenDatabase("Northwind.mdb") ' Open two recordsets from the Employees table. Set rstEmployees = _ dbsNorthwind.OpenRecordset("Employees", _ dbOpenDynaset) Set rstEmployees2 = rstEmployees.Clone ' Add a new record to the first Recordset and copy the ' data from a record in the second Recordset. With rstEmployees .AddNew !FirstName = rstEmployees2!FirstName !LastName = rstEmployees2!LastName CopyLargeField rstEmployees2!Photo, !Photo .Update ' Delete new record because this is a demonstration. .Bookmark = .LastModified .Delete .Close End With rstEmployees2.Close dbsNorthwind.Close End Sub Function CopyLargeField(fldSource As Field, _ fldDestination As Field) ' Set size of chunk in bytes. Const conChunkSize = 32768 Dim lngOffset As Long Dim lngTotalSize As Long Dim strChunk As String ' Copy the photo from one Recordset to the other in 32K ' chunks until the entire field is copied. lngTotalSize = fldSource.FieldSize Do While lngOffset < lngTotalSize strChunk = fldSource.GetChunk(lngOffset, conChunkSize) fldDestination.AppendChunk strChunk lngOffset = lngOffset + conChunkSize Loop End Function David & Joanne Gould wrote: >I have a form for entering new movie stock into a Video Library database. >This form also allows the user to update details for all copies of the >title. Because of this the data is updated using code. One of the fields in >the table is an image field. The code I am using is: > > 'Update Movie Title Details > Dim rsUpdateMovieTitleDetails As Recordset > Dim strMovieName As String > > strMovieName = Forms![frmAddNewMovieStock]![cboSelectMovieTitle] > > Set rsUpdateMovieTitleDetails = New ADODB.Recordset > rsUpdateMovieTitleDetails.ActiveConnection = CurrentProject.Connection > rsUpdateMovieTitleDetails.Open "tblTitles", , adOpenKeyset, >adLockOptimistic, adCmdTable > > 'Loop through the recordset > Do Until rsUpdateMovieTitleDetails.EOF > If rsUpdateMovieTitleDetails.Fields("name") = strMovieName Then > rsUpdateMovieTitleDetails.Fields("supplier") = Me.supplier > rsUpdateMovieTitleDetails.Fields("rating") = Me.rating > rsUpdateMovieTitleDetails.Fields("categoryName") = Me.categoryName > rsUpdateMovieTitleDetails.Fields("RentalTypeID") = Me.RentalTypeID > rsUpdateMovieTitleDetails.Fields("cover") = Me.oleCover > End If > rsUpdateMovieTitleDetails.MoveNext > Loop > rsUpdateMovieTitleDetails.Close > >I keep getting this error message: > >Multiple-step OLE DB operation generated errors. Check each OLE DB status >value, if available. No work was done. > >Can anyone explain to me what I can do about this? > >TIA > >David Gould >DG Solutions > > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Wed Sep 6 19:40:54 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 06 Sep 2006 17:40:54 -0700 Subject: [AccessD] Updating a bound image using VBA In-Reply-To: <6.2.1.2.2.20060907071131.03eae2f8@mail.tpg.com.au> Message-ID: <0J5700FG35UH05H1@l-daemon> Hi David: My first issues would be to have an image embedded in the database. It will definitely limit the performance and needs special handling to use and update. Personally, I would suggest that a url/directory string pointing to the image file guarantees better performance, reliability and stops other strange events that tend to bite. If you have to have Images, in tables, you either use the Chunk method or ADODB.Stream object to pull from the OLE field. Traditionally these tables only store images. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David & Joanne Gould Sent: Wednesday, September 06, 2006 3:10 PM To: Access Developers discussion and problem solving Subject: [AccessD] Updating a bound image using VBA I have a form for entering new movie stock into a Video Library database. This form also allows the user to update details for all copies of the title. Because of this the data is updated using code. One of the fields in the table is an image field. The code I am using is: 'Update Movie Title Details Dim rsUpdateMovieTitleDetails As Recordset Dim strMovieName As String strMovieName = Forms![frmAddNewMovieStock]![cboSelectMovieTitle] Set rsUpdateMovieTitleDetails = New ADODB.Recordset rsUpdateMovieTitleDetails.ActiveConnection = CurrentProject.Connection rsUpdateMovieTitleDetails.Open "tblTitles", , adOpenKeyset, adLockOptimistic, adCmdTable 'Loop through the recordset Do Until rsUpdateMovieTitleDetails.EOF If rsUpdateMovieTitleDetails.Fields("name") = strMovieName Then rsUpdateMovieTitleDetails.Fields("supplier") = Me.supplier rsUpdateMovieTitleDetails.Fields("rating") = Me.rating rsUpdateMovieTitleDetails.Fields("categoryName") = Me.categoryName rsUpdateMovieTitleDetails.Fields("RentalTypeID") = Me.RentalTypeID rsUpdateMovieTitleDetails.Fields("cover") = Me.oleCover End If rsUpdateMovieTitleDetails.MoveNext Loop rsUpdateMovieTitleDetails.Close I keep getting this error message: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. Can anyone explain to me what I can do about this? TIA David Gould DG Solutions -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Sep 6 23:23:51 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 7 Sep 2006 14:23:51 +1000 Subject: [AccessD] Updating a bound image using VBA Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116AA21@ddi-01.DDI.local> Hi David, Aren't you missing the Update before the movenext? rsUpdateMovieTitleDetails.Update Been a while... cheers Michael Maddison -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, 7 September 2006 10:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Updating a bound image using VBA Hi David: My first issues would be to have an image embedded in the database. It will definitely limit the performance and needs special handling to use and update. Personally, I would suggest that a url/directory string pointing to the image file guarantees better performance, reliability and stops other strange events that tend to bite. If you have to have Images, in tables, you either use the Chunk method or ADODB.Stream object to pull from the OLE field. Traditionally these tables only store images. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David & Joanne Gould Sent: Wednesday, September 06, 2006 3:10 PM To: Access Developers discussion and problem solving Subject: [AccessD] Updating a bound image using VBA I have a form for entering new movie stock into a Video Library database. This form also allows the user to update details for all copies of the title. Because of this the data is updated using code. One of the fields in the table is an image field. The code I am using is: 'Update Movie Title Details Dim rsUpdateMovieTitleDetails As Recordset Dim strMovieName As String strMovieName = Forms![frmAddNewMovieStock]![cboSelectMovieTitle] Set rsUpdateMovieTitleDetails = New ADODB.Recordset rsUpdateMovieTitleDetails.ActiveConnection = CurrentProject.Connection rsUpdateMovieTitleDetails.Open "tblTitles", , adOpenKeyset, adLockOptimistic, adCmdTable 'Loop through the recordset Do Until rsUpdateMovieTitleDetails.EOF If rsUpdateMovieTitleDetails.Fields("name") = strMovieName Then rsUpdateMovieTitleDetails.Fields("supplier") = Me.supplier rsUpdateMovieTitleDetails.Fields("rating") = Me.rating rsUpdateMovieTitleDetails.Fields("categoryName") = Me.categoryName rsUpdateMovieTitleDetails.Fields("RentalTypeID") = Me.RentalTypeID rsUpdateMovieTitleDetails.Fields("cover") = Me.oleCover End If rsUpdateMovieTitleDetails.MoveNext Loop rsUpdateMovieTitleDetails.Close I keep getting this error message: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. Can anyone explain to me what I can do about this? TIA David Gould DG Solutions -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Thu Sep 7 07:48:54 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 7 Sep 2006 08:48:54 -0400 Subject: [AccessD] OT: What exactly, do Date Modified, Date Created, and Date Accessed really mean? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E24E51@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35888@ADGSERVER> It looks like the date accessed really only updates the date part of the value. On my system (XP Pro XP2) the time always shows 12:00am. I opened a Wireshark file that was created on 9/5 and last accessed on 9/5, then closed Wireshark. The new accessed date is 9/7 12:00am. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 06, 2006 4:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: What exactly, do Date Modified, Date Created,and Date Accessed really mean? I want to list the files in a folder on a form so a user can select the file they want to open. I can list these three dates to help give more info, but they don't seem to make sense. I think I see that Modified can be earlier than Created if the file was a copy and hadn't been modified since the copy action. But what does Date Accessed mean? I opened a file, looked at it, then closed it w/o changes. The Date Accessed did not change. I did a Google search, but nothing helpful showed up. Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Sep 7 09:09:07 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 7 Sep 2006 09:09:07 -0500 Subject: [AccessD] OT: What exactly, do Date Modified, Date Created, and Date Accessed really mean? Message-ID: Well my accessed dates are accurate to the second. XP PRO, SP1. ??? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, September 07, 2006 8:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: What exactly, do Date Modified, Date Created, and Date Accessed really mean? It looks like the date accessed really only updates the date part of the value. On my system (XP Pro XP2) the time always shows 12:00am. I opened a Wireshark file that was created on 9/5 and last accessed on 9/5, then closed Wireshark. The new accessed date is 9/7 12:00am. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 06, 2006 4:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: What exactly, do Date Modified, Date Created,and Date Accessed really mean? I want to list the files in a folder on a form so a user can select the file they want to open. I can list these three dates to help give more info, but they don't seem to make sense. I think I see that Modified can be earlier than Created if the file was a copy and hadn't been modified since the copy action. But what does Date Accessed mean? I opened a file, looked at it, then closed it w/o changes. The Date Accessed did not change. I did a Google search, but nothing helpful showed up. Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 7 12:46:30 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Sep 2006 10:46:30 -0700 Subject: [AccessD] Test Message Message-ID: I haven't received any posts today. Am I the only one? Charlotte Foust From RRANTHON at sentara.com Thu Sep 7 12:51:24 2006 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Thu, 07 Sep 2006 13:51:24 -0400 Subject: [AccessD] Test Message In-Reply-To: References: Message-ID: <200609071751.k87HpcS24935@databaseadvisors.com> I've had a couple, maybe it's just a slow day... >>> "Charlotte Foust" 9/7/2006 1:46 PM >>> I haven't received any posts today. Am I the only one? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Sep 7 13:04:44 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 7 Sep 2006 11:04:44 -0700 Subject: [AccessD] Test Message In-Reply-To: Message-ID: I get so many I had to look. Charlotte, you were communication on this list today. I feel special. ; ) Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 07, 2006 10:47 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Test Message I haven't received any posts today. Am I the only one? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 7 13:20:54 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Sep 2006 11:20:54 -0700 Subject: [AccessD] Test Message In-Reply-To: Message-ID: <0J5800D6AIX14I10@l-daemon> Charlotte, Count your blessing as no one has broken anything... yet. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 07, 2006 10:47 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Test Message I haven't received any posts today. Am I the only one? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Sep 7 13:24:39 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 7 Sep 2006 13:24:39 -0500 Subject: [AccessD] Test Message In-Reply-To: <14233890.1157651931454.JavaMail.root@sniper30> Message-ID: <002101c6d2aa$e226ba60$0200a8c0@danwaters> I posted a question yesterday but it never came through. . . Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 07, 2006 12:47 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Test Message I haven't received any posts today. Am I the only one? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Sep 7 13:26:37 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 7 Sep 2006 13:26:37 -0500 Subject: [AccessD] OT: What does Last Date Accessed mean? Message-ID: <002501c6d2ab$283ee950$0200a8c0@danwaters> I want to list the files in a folder on a form so a user can select the file they want to open. I can list these three dates to help give more info, but they don't seem to make sense. I think I see that Modified can be earlier than Created if the file was a copy and hadn't been modified since the copy action. But what does Date Accessed mean? I opened a file, looked at it, then closed it w/o changes. The Date Accessed did not change. I did a Google search, but nothing helpful showed up. Thanks! Dan From carbonnb at gmail.com Thu Sep 7 13:32:53 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 7 Sep 2006 14:32:53 -0400 Subject: [AccessD] Test Message In-Reply-To: <002101c6d2aa$e226ba60$0200a8c0@danwaters> References: <14233890.1157651931454.JavaMail.root@sniper30> <002101c6d2aa$e226ba60$0200a8c0@danwaters> Message-ID: On 9/7/06, Dan Waters wrote: > I posted a question yesterday but it never came through. . . Which question Dan? The Last Accessed date question? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From garykjos at gmail.com Thu Sep 7 13:44:27 2006 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 7 Sep 2006 13:44:27 -0500 Subject: [AccessD] OT: What does Last Date Accessed mean? In-Reply-To: <002501c6d2ab$283ee950$0200a8c0@danwaters> References: <002501c6d2ab$283ee950$0200a8c0@danwaters> Message-ID: Perhaps you have that timestamp update turned off? http://www.windowsnetworking.com/nt/registry/rtips71.shtml Here is some mroe info. http://www.xxcopy.com/xxcopy15.htm If you google search on "windows file timestamps" you will find lots of info.... Apparently it is up to the application to update the "Accessed" timestamp so it's not consistently updated as the system maintained Created and modified timestamps are. GK On 9/7/06, Dan Waters wrote: > I want to list the files in a folder on a form so a user can select the file > they want to open. I can list these three dates to help give more info, but > they don't seem to make sense. > > I think I see that Modified can be earlier than Created if the file was a > copy and hadn't been modified since the copy action. > > But what does Date Accessed mean? I opened a file, looked at it, then > closed it w/o changes. The Date Accessed did not change. > > I did a Google search, but nothing helpful showed up. > > Thanks! > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From ewaldt at gdls.com Thu Sep 7 14:57:39 2006 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Thu, 7 Sep 2006 15:57:39 -0400 Subject: [AccessD] Replication and Referential Integrity In-Reply-To: Message-ID: I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From cfoust at infostatsystems.com Thu Sep 7 15:16:33 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Sep 2006 13:16:33 -0700 Subject: [AccessD] Replication and Referential Integrity In-Reply-To: Message-ID: That's the first time I've ever heard that statement, and I see no reason for it to be true. What kind of replication are you talking about, partial or full? And is this database a split front and backend or not? If it isn't on a drive shared by them, how are they both using it and why should it be exclusive to one of them? Are you actually passing the database back and forth to different locations? You really need to fill in more information before you can get a good answer. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Thursday, September 07, 2006 12:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 From mwp.reid at qub.ac.uk Thu Sep 7 15:25:00 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 7 Sep 2006 21:25:00 +0100 Subject: [AccessD] Numbers References: Message-ID: What would you dim the following number as in VBA 34567899999999 In order to carry out math on it. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From accessd at shaw.ca Thu Sep 7 15:40:17 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Sep 2006 13:40:17 -0700 Subject: [AccessD] Replication and Referential Integrity In-Reply-To: Message-ID: <0J5800KJ1PDB61F0@l-daemon> Hi Thomas: The best way to accomplish this is to split the Access application into a FE and a BE. The BE hold the tables and the FE holds everything else. The BE would be made into a Master and Replicate and the data synchronized between the 2 either manually or automatically through a timed form. If this layout is used referential integrity of the BE mdb should not enter into it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Thursday, September 07, 2006 12:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 7 15:57:32 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 7 Sep 2006 16:57:32 -0400 Subject: [AccessD] Numbers In-Reply-To: Message-ID: <007401c6d2c0$3e56fd80$657aa8c0@m6805> Probably a single. If not that, a double. And then there is the issue of rounding errors. In spite of the large size, is it going to need precision down in the decimals? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, September 07, 2006 4:25 PM To: Access Developers discussion and problem solving Subject: [AccessD] Numbers What would you dim the following number as in VBA 34567899999999 In order to carry out math on it. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From cfoust at infostatsystems.com Thu Sep 7 16:04:01 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Sep 2006 14:04:01 -0700 Subject: [AccessD] Numbers In-Reply-To: Message-ID: You might try a currency type to avoid the floating point problems with rounding. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, September 07, 2006 1:25 PM To: Access Developers discussion and problem solving Subject: [AccessD] Numbers What would you dim the following number as in VBA 34567899999999 In order to carry out math on it. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From artful at rogers.com Thu Sep 7 16:33:00 2006 From: artful at rogers.com (artful at rogers.com) Date: Thu, 7 Sep 2006 14:33:00 -0700 (PDT) Subject: [AccessD] Numbers In-Reply-To: Message-ID: <20060907213300.45206.qmail@web88202.mail.re2.yahoo.com> This appears to work, mind you I didn't do much math on it: Sub TestLong() Dim x As Double x = 34567899999999# Debug.Print x / 2 Debug.Print Sqr(x) End Sub ' returns 17283949999999.5 ' returns 5879447.25293109 Will that do, or is more testing required? hth, Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Thursday, September 7, 2006 4:25:00 PM Subject: [AccessD] Numbers What would you dim the following number as in VBA 34567899999999 In order to carry out math on it. Martin From artful at rogers.com Thu Sep 7 16:45:36 2006 From: artful at rogers.com (artful at rogers.com) Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) Subject: [AccessD] Replication and Referential Integrity In-Reply-To: Message-ID: <20060907214536.55515.qmail@web88205.mail.re2.yahoo.com> I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Sep 7 16:45:28 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 08 Sep 2006 07:45:28 +1000 Subject: [AccessD] Numbers In-Reply-To: <007401c6d2c0$3e56fd80$657aa8c0@m6805> References: , <007401c6d2c0$3e56fd80$657aa8c0@m6805> Message-ID: <45011F98.24872.260117F3@stuart.lexacorp.com.pg> On 7 Sep 2006 at 16:57, JWColby wrote: > Probably a single. No! Maximum precision 7 places. That would store and manipulate it as 34567900000000 >> What would you dim the following number as in VBA >> >> 34567899999999 >> >> In order to carry out math on it. You will have to use either a Double or Currency. Which one depends on what sort of math you want to do. Double will allow you to use larger numbers but currency will give you greater precision. -- Stuart From jwcolby at colbyconsulting.com Thu Sep 7 17:23:18 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 7 Sep 2006 18:23:18 -0400 Subject: [AccessD] Numbers In-Reply-To: <45011F98.24872.260117F3@stuart.lexacorp.com.pg> Message-ID: <007501c6d2cc$38f17f30$657aa8c0@m6805> Very good! I knew single had precision limitations, I just didn't have the time to go discover what they were. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, September 07, 2006 5:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Numbers On 7 Sep 2006 at 16:57, JWColby wrote: > Probably a single. No! Maximum precision 7 places. That would store and manipulate it as 34567900000000 >> What would you dim the following number as in VBA >> >> 34567899999999 >> >> In order to carry out math on it. You will have to use either a Double or Currency. Which one depends on what sort of math you want to do. Double will allow you to use larger numbers but currency will give you greater precision. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Sep 7 19:42:37 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 7 Sep 2006 19:42:37 -0500 Subject: [AccessD] OT: What does Last Date Accessed mean? In-Reply-To: <24939425.1157654963677.JavaMail.root@sniper11> Message-ID: <004a01c6d2df$af4ac250$0200a8c0@danwaters> Thanks Gary! Turns out the registry key for Last Accessed doesn't even exist on my PC. And I'm not adding it. It does look like the only reliable date is Last Modified. I'll stick with just that. Dan Waters -----Original Message----- Subject: Re: [AccessD] OT: What does Last Date Accessed mean? Perhaps you have that timestamp update turned off? http://www.windowsnetworking.com/nt/registry/rtips71.shtml Here is some mroe info. http://www.xxcopy.com/xxcopy15.htm If you google search on "windows file timestamps" you will find lots of info.... Apparently it is up to the application to update the "Accessed" timestamp so it's not consistently updated as the system maintained Created and modified timestamps are. GK On 9/7/06, Dan Waters wrote: > I want to list the files in a folder on a form so a user can select the file > they want to open. I can list these three dates to help give more info, but > they don't seem to make sense. > > I think I see that Modified can be earlier than Created if the file was a > copy and hadn't been modified since the copy action. > > But what does Date Accessed mean? I opened a file, looked at it, then > closed it w/o changes. The Date Accessed did not change. > > I did a Google search, but nothing helpful showed up. > > Thanks! > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Thu Sep 7 19:42:57 2006 From: pcs at azizaz.com (Borge Hansen) Date: Fri, 8 Sep 2006 10:42:57 +1000 Subject: [AccessD] Startup parameter to simulate runtime References: <007501c6d2cc$38f17f30$657aa8c0@m6805> Message-ID: <028201c6d2df$bb1ce1d0$fa10a8c0@Albatross> Hi, Quick one: What's the startup parameter to simulate runtime environment? regards borge From wdhindman at dejpolsystems.com Thu Sep 7 20:32:40 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 7 Sep 2006 21:32:40 -0400 Subject: [AccessD] Startup parameter to simulate runtime References: <007501c6d2cc$38f17f30$657aa8c0@m6805> <028201c6d2df$bb1ce1d0$fa10a8c0@Albatross> Message-ID: <002201c6d2e6$ad862ac0$153ce944@50NM721> "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /runtime "C:\TSM\TSMfe.mde" William Hindman ----- Original Message ----- From: "Borge Hansen" To: "Access Developers discussion and problem solving" Sent: Thursday, September 07, 2006 8:42 PM Subject: Re: [AccessD] Startup parameter to simulate runtime > Hi, > Quick one: > What's the startup parameter to simulate runtime environment? > > regards > borge > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Sep 7 21:47:16 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 7 Sep 2006 22:47:16 -0400 Subject: [AccessD] How does it work Message-ID: <007601c6d2f1$198bc720$657aa8c0@m6805> I have now successfully created a Raid5 on my new server. For the moment it is a 4 disk array using 320g drives for a total size (available) of around 900g. I will be adding another pair, one of which will be a hot spare, which will bump it to 1.2g available and one drive just sitting there for (automatic) use in a failure. My question now is, if I place all of the SQL Server database files (not the program files, but the database files FOR SQL SERVER) as well as the actual files for the various databases and their logs, if I place all that stuff out on this mongo raid drive, and then my boot drive dies... can SQL Server be installed to use an existing set of files? I actually have one more SATA connector which I intend to use to copy an image of the boot drive once a week or so (maybe even nightly), so that if the boot drive dies I should be able to get back up with a minimum of pain. For that I will need Ghost or something similar running as a scheduled task. And then of course there is the issue of "what happens if the house burns down". How do you conveniently back up a large db offsite? Or in a fire safe? I actually read about a rather expensive A while back I actually purchased this SQL Server backup program called Imceda Litespeed (now sold I believe) which does a great job of backing up large databases, compacting on the way out. I am thinking about setting up a small machine down in the basement at the far end of the house, on the other end of a 1gbit line, and have Litespeed place the backup file on hard disks on that machine. Even at 10:1 compression which it seems to do, an 800gb database turns into an 80gb backup file. Over a 1gbit line that will take an hour to copy the backup file. If you folks do this kind of stuff how about starting a discussion of how you handle it. John W. Colby Colby Consulting www.ColbyConsulting.com From wdhindman at dejpolsystems.com Thu Sep 7 22:12:10 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 7 Sep 2006 23:12:10 -0400 Subject: [AccessD] How does it work References: <007601c6d2f1$198bc720$657aa8c0@m6805> Message-ID: <000301c6d2f4$93f136f0$153ce944@50NM721> ...assuming this is a software raid ...the cost of a dual hardware raid controller is low enough to benefit from being able to put your boot disk on the raid and get a real backup including system state ...that way a hot swap and rebuild really works and I don't have to worry about the types of things you are asking about. ...I backup app data to my website using ftp ...but then I don't have 900gb of data :) William Hindman ----- Original Message ----- From: "JWColby" To: ; "'Access Developers discussion and problem solving'" Sent: Thursday, September 07, 2006 10:47 PM Subject: [AccessD] How does it work >I have now successfully created a Raid5 on my new server. For the moment >it > is a 4 disk array using 320g drives for a total size (available) of around > 900g. I will be adding another pair, one of which will be a hot spare, > which will bump it to 1.2g available and one drive just sitting there for > (automatic) use in a failure. > > My question now is, if I place all of the SQL Server database files (not > the > program files, but the database files FOR SQL SERVER) as well as the > actual > files for the various databases and their logs, if I place all that stuff > out on this mongo raid drive, and then my boot drive dies... can SQL > Server > be installed to use an existing set of files? > > I actually have one more SATA connector which I intend to use to copy an > image of the boot drive once a week or so (maybe even nightly), so that if > the boot drive dies I should be able to get back up with a minimum of > pain. > For that I will need Ghost or something similar running as a scheduled > task. > > And then of course there is the issue of "what happens if the house burns > down". How do you conveniently back up a large db offsite? Or in a fire > safe? I actually read about a rather expensive > > A while back I actually purchased this SQL Server backup program called > Imceda Litespeed (now sold I believe) which does a great job of backing up > large databases, compacting on the way out. I am thinking about setting > up > a small machine down in the basement at the far end of the house, on the > other end of a 1gbit line, and have Litespeed place the backup file on > hard > disks on that machine. Even at 10:1 compression which it seems to do, an > 800gb database turns into an 80gb backup file. Over a 1gbit line that > will > take an hour to copy the backup file. > > If you folks do this kind of stuff how about starting a discussion of how > you handle it. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Thu Sep 7 22:26:17 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 07 Sep 2006 20:26:17 -0700 Subject: [AccessD] How does it work In-Reply-To: <007601c6d2f1$198bc720$657aa8c0@m6805> Message-ID: <0J59009RA85YNI10@l-daemon> John; just a note that may be unrelated but the government standard server setup is: One OS disk with SQL server installed and all applications. One mirrored disk for a backup to the applications disk. One 5 disk array; raid 5 which holds all the data and transactions files. There is a company, in town that has been selling its' hardware systems as raid 6. (Their loose description is not like that as describing the official description of Raid 6 and if I can re-find their address I will send it along.) It has the configuration as above as well as, but in the background synchronizes multiple servers without software so there is no CPU impact. Just a comment. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, September 07, 2006 7:47 PM To: dba-sqlserver at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: [AccessD] How does it work I have now successfully created a Raid5 on my new server. For the moment it is a 4 disk array using 320g drives for a total size (available) of around 900g. I will be adding another pair, one of which will be a hot spare, which will bump it to 1.2g available and one drive just sitting there for (automatic) use in a failure. My question now is, if I place all of the SQL Server database files (not the program files, but the database files FOR SQL SERVER) as well as the actual files for the various databases and their logs, if I place all that stuff out on this mongo raid drive, and then my boot drive dies... can SQL Server be installed to use an existing set of files? I actually have one more SATA connector which I intend to use to copy an image of the boot drive once a week or so (maybe even nightly), so that if the boot drive dies I should be able to get back up with a minimum of pain. For that I will need Ghost or something similar running as a scheduled task. And then of course there is the issue of "what happens if the house burns down". How do you conveniently back up a large db offsite? Or in a fire safe? I actually read about a rather expensive A while back I actually purchased this SQL Server backup program called Imceda Litespeed (now sold I believe) which does a great job of backing up large databases, compacting on the way out. I am thinking about setting up a small machine down in the basement at the far end of the house, on the other end of a 1gbit line, and have Litespeed place the backup file on hard disks on that machine. Even at 10:1 compression which it seems to do, an 800gb database turns into an 80gb backup file. Over a 1gbit line that will take an hour to copy the backup file. If you folks do this kind of stuff how about starting a discussion of how you handle it. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Fri Sep 8 03:07:36 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 8 Sep 2006 09:07:36 +0100 Subject: [AccessD] Replication and Referential Integrity References: <20060907214536.55515.qmail@web88205.mail.re2.yahoo.com> Message-ID: Not bad Arthur. What I am trying to get is the whole number returned. X+Y where X could be a massive number Y any number between 1 and 10. I had this problem for a while and anything I try ends up returning a number in scentification notation. Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DElam at jenkens.com Fri Sep 8 08:38:40 2006 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 8 Sep 2006 08:38:40 -0500 Subject: [AccessD] Replication and Referential Integrity Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DE571@natexch.jenkens.com> I have used replication on databases with referential integrity, so that is not an issue. Be sure to keep the master in a safe location where the users cannot touch it and where it is backed up frequently. You should not get corruption, but it does happen more often with replication. Keeping that master at a remove form the day to day work helps recovery go smoother. Debbie ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From DWUTKA at marlow.com Fri Sep 8 09:14:28 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 8 Sep 2006 09:14:28 -0500 Subject: [AccessD] How does it work Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0100E60B@MARLOW_MAIN2.marlow.com> What are you using for the RAID? A raid controller, or are you letting the OS do it? Either way, you're boot drive should be mirrored. What's the sense of having a RAID 5 for your data, if you don't mirror your boot/OS drive? As for you SQL Server question, If you have the data and index files for a SQL Server database, you can import them into another SQL Server. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, September 07, 2006 9:47 PM To: dba-sqlserver at databaseadvisors.com; 'Access Developers discussion and problem solving' Subject: [AccessD] How does it work I have now successfully created a Raid5 on my new server. For the moment it is a 4 disk array using 320g drives for a total size (available) of around 900g. I will be adding another pair, one of which will be a hot spare, which will bump it to 1.2g available and one drive just sitting there for (automatic) use in a failure. My question now is, if I place all of the SQL Server database files (not the program files, but the database files FOR SQL SERVER) as well as the actual files for the various databases and their logs, if I place all that stuff out on this mongo raid drive, and then my boot drive dies... can SQL Server be installed to use an existing set of files? I actually have one more SATA connector which I intend to use to copy an image of the boot drive once a week or so (maybe even nightly), so that if the boot drive dies I should be able to get back up with a minimum of pain. For that I will need Ghost or something similar running as a scheduled task. And then of course there is the issue of "what happens if the house burns down". How do you conveniently back up a large db offsite? Or in a fire safe? I actually read about a rather expensive A while back I actually purchased this SQL Server backup program called Imceda Litespeed (now sold I believe) which does a great job of backing up large databases, compacting on the way out. I am thinking about setting up a small machine down in the basement at the far end of the house, on the other end of a 1gbit line, and have Litespeed place the backup file on hard disks on that machine. Even at 10:1 compression which it seems to do, an 800gb database turns into an 80gb backup file. Over a 1gbit line that will take an hour to copy the backup file. If you folks do this kind of stuff how about starting a discussion of how you handle it. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Sep 8 10:11:21 2006 From: artful at rogers.com (artful at rogers.com) Date: Fri, 8 Sep 2006 08:11:21 -0700 (PDT) Subject: [AccessD] Replication and Referential Integrity In-Reply-To: Message-ID: <20060908151121.96651.qmail@web88204.mail.re2.yahoo.com> I am not having a problem with that either, Martin. Sub TestLong2() Dim x As Double Dim y As Integer x = 34567899999999# y = 10 Debug.Print x + 10 End Sub ' returns 34567900000009 No scientific notation. For a moment I thought that the order of declaration or the order of summing might be the culprit, but apparently not: Sub TestLong3() Dim y As Integer Dim x As Double x = 34567899999999# y = 10 Debug.Print y + x End Sub ' returns 34567900000009 I wonder whether any differences we are experiencing have to do with regional settings or something un-obvious like that. If this code is returning scientific notation, then I'm at a loss to explain why. One more detail. I ran this code in Access 2000. Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 8, 2006 4:07:36 AM Subject: Re: [AccessD] Replication and Referential Integrity Not bad Arthur. What I am trying to get is the whole number returned. X+Y where X could be a massive number Y any number between 1 and 10. I had this problem for a while and anything I try ends up returning a number in scentification notation. Martin WP Reid From martyconnelly at shaw.ca Fri Sep 8 13:28:37 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 08 Sep 2006 11:28:37 -0700 Subject: [AccessD] Replication and Referential Integrity In-Reply-To: <20060908151121.96651.qmail@web88204.mail.re2.yahoo.com> References: <20060908151121.96651.qmail@web88204.mail.re2.yahoo.com> Message-ID: <4501B655.5030209@shaw.ca> You will get scientification notation returned once the number x exceeds 15 digits of precision and truncation occurs. Just try multiplying x by 100. artful at rogers.com wrote: >I am not having a problem with that either, Martin. > > >Sub TestLong2() > Dim x As Double > Dim y As Integer > x = 34567899999999# > y = 10 > Debug.Print x + 10 > >End Sub > >' returns 34567900000009 > >No scientific notation. For a moment I thought that the order of declaration or the order of summing might be the culprit, but apparently not: > > >Sub TestLong3() > Dim y As Integer > Dim x As Double > x = 34567899999999# > y = 10 > Debug.Print y + x > >End Sub >' returns 34567900000009 > > >I wonder whether any differences we are experiencing have to do with regional settings or something un-obvious like that. If this code is returning scientific notation, then I'm at a loss to explain why. One more detail. I ran this code in Access 2000. > >Arthur > >----- Original Message ---- >From: Martin Reid >To: Access Developers discussion and problem solving >Sent: Friday, September 8, 2006 4:07:36 AM >Subject: Re: [AccessD] Replication and Referential Integrity > >Not bad Arthur. > >What I am trying to get is the whole number returned. X+Y where X could be a massive number Y any number between 1 and 10. I had this problem for a while and anything I try ends up returning a number in scentification notation. > > Martin WP Reid > > > > > > -- Marty Connelly Victoria, B.C. Canada From ewaldt at gdls.com Sat Sep 9 15:26:18 2006 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Sat, 9 Sep 2006 16:26:18 -0400 Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: Message-ID: The answer to nearly all of your questions is found in my (apparently less than clear statement): "For purposes of security, it cannot be on a network drive shared by the two companies." I guess the problem is the word "security". Don't think of "database security" or "network security"; note that I work for General Dynamics, and think of "military security" or even "national security" instead, although that might be a bit of overkill. We are working with another company. We cannot have a normal shared network with them; again, that's because of security (see above). We can, however deposit the database in a very secure place where they can pick it up, use it, return it, and then we pick it up again. I was hoping that replication might avoid this. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 Message: 16 Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) From: Subject: Re: [AccessD] Replication and Referential Integrity To: Access Developers discussion and problem solving Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From stuart at lexacorp.com.pg Sat Sep 9 17:03:23 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 10 Sep 2006 08:03:23 +1000 Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: References: , Message-ID: <4503C6CB.31755.305E2A3A@stuart.lexacorp.com.pg> I see it all now (I too couldn't quite grasp the situation from your description). Replication is definitely the way to go here. The individual who said that replication doesn't work with referential integerity has probably tried to replicate systems which use Autonumber Primary Keys with the default defininiton as Longs and using the PK as a autoincrementing meaningful number. In a replicated system, ANPKs are always "random numbering" and should generally be of type "Replication ID" Grab a copy of the "Microsoft Access 2000, Microsoft Access 2002, and Microsoft Office Access 2003 Replication FAQ" "The ReplFAQJet40.exe file contains a Microsoft Word document titled "Frequently Asked Questions About Microsoft Access 2000, Microsoft Access 2002, and Microsoft Office Access 2003 Replication" written by Michael Kaplan, Mary Chipman, Paul Litwin, Steve Thompson, and John Blaine. This document answers many Microsoft Access replication questions you may have." Available at http://support.microsoft.com/kb/q282977/ DIrect download link: http://download.microsoft.com/download/4/2/c/42c1f8e7-ae0d-4dcd-ac90- efddcfc29898/replfaqjet40.exe On 9 Sep 2006 at 16:26, ewaldt at gdls.com wrote: > The answer to nearly all of your questions is found in my (apparently less > than clear statement): > > "For purposes of security, it cannot be on a network drive shared by > the two companies." > > I guess the problem is the word "security". Don't think of "database > security" or "network security"; note that I work for General Dynamics, and > think of "military security" or even "national security" instead, although > that might be a bit of overkill. > > We are working with another company. We cannot have a normal shared network > with them; again, that's because of security (see above). We can, however > deposit the database in a very secure place where they can pick it up, use > it, return it, and then we pick it up again. I was hoping that replication > might avoid this. > > Thomas F. Ewald > FCS Database Manager > General Dynamics Land Systems > (586) 276-1256 > > > Message: 16 > Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) > From: > Subject: Re: [AccessD] Replication and Referential Integrity > To: Access Developers discussion and problem solving > > Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> > Content-Type: text/plain; charset=us-ascii > > I have mined Access replication extensively and like to pretend that I know > it very well. So perhaps I can help in that regard. However, before we go > there, I must say that I think something is very wrong if only one company > can use the database at a time. Perhaps you are so fortunate that they > reside in time zones that will never collide. > > IMO, your first question should be, Why is it that only one company can use > the DB at a time? (And secondly, does this mean that 20 users within one > company can use it simultaneously? Or is it even worse?) I have been trying > for the past few minutes (not long, admittedly), but I cannot see a > situation which forces you into this "one-company" scenario. Further, I > don't see how replication will get you out of this problem, which seems to > me of your own creation. > > Using replication strictly within Access, I have successfully tied together > 4 branches distributed across North America, with a total of about 70 users, > everyone hitting the same fixed-inventory tables. I can say with confidence > that when this is set up correctly, nothing goes wrong. Not a single > collision in over six months of operation. (After that we migrated to SQL > Server.) > > So back to your original question. What is lacking in the design that > forces you to restrict access to just one company? Something is strange in > Denmark, methinks. Without knowing anything about your DB, at the very least > I might suggest creating a Companies table and inheriting its PK in all the > immediate tables, so that Company 1's customers have an FK pointing to > Company 1, etc. This would effectively isolate all rows from each company, > and also permit adding Company 3. > > Or perhaps I'm missing something. > > ----- Original Message ---- > From: ewaldt at gdls.com > To: accessd at databaseadvisors.com > Sent: Thursday, September 7, 2006 3:57:39 PM > Subject: [AccessD] Replication and Referential Integrity > > I've created a database that is used by two companies. For purposes of > security, it cannot be on a network drive shared by the two companies. More > detail isn't really necessary. What it amounts to is that only one company > can use it at a time. > > I have had replication suggested to me. I know what it is, of course, but > have only played with it on a very minor and experimental basis. However, > the individual who recommended it to me is more experienced with it, and he > said that it cannot be used with a database that employs referential > integrity. Is he correct? I am sure that he knows more than I do about > replication, but that doesn't mean much. > > TIA. > > > Thomas F. Ewald > FCS Database Manager > General Dynamics Land Systems > (586) 276-1256 > > > > > > > This is an e-mail from General Dynamics Land Systems. It is for the intended > recipient only and may contain confidential and privileged information. No > one else may read, print, store, copy, forward or act in reliance on it or > its attachments. If you are not the intended recipient, please return this > message to the sender and delete the message and any attachments from your > computer. Your cooperation is appreciated. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From stuart at lexacorp.com.pg Sat Sep 9 17:16:53 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 10 Sep 2006 08:16:53 +1000 Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: <4503C6CB.31755.305E2A3A@stuart.lexacorp.com.pg> References: , , <4503C6CB.31755.305E2A3A@stuart.lexacorp.com.pg> Message-ID: <4503C9F5.2308.306A86F6@stuart.lexacorp.com.pg> On 10 Sep 2006 at 8:03, Stuart McLachlan wrote: > autoincrementing meaningful number. In a replicated system, ANPKs are > always "random numbering" and should generally be of type "Replication ID" I should have added: You should however avoid ANPKs whenever possible in replicated databases. They can cause a number of problems. A common solution is to use a compound PK which comprises an Autonumber field of type Long and a unique ID which you assign to each replica (Company in your case). -- Stuart From artful at rogers.com Sun Sep 10 08:27:16 2006 From: artful at rogers.com (artful at rogers.com) Date: Sun, 10 Sep 2006 06:27:16 -0700 (PDT) Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: Message-ID: <20060910132716.19516.qmail@web88205.mail.re2.yahoo.com> First, thanks for the clarification. That makes the problem much more interesting. The data must move from your allegedly secure place to another allegedly secure place on an allegedly secure channel (however that might be achived, encryption being one possible answer). Maybe you've got all that in place already, but maybe not. Once that is all settled, we're back to the simpler part of the problem. To replicate or not to replicate? If the back-end database is MDB, then replication is a great way to go. I have worked extensively with Access replication, linking together several branch offices and dozens of employees. There was a database server in each office and the home office ran the replicator. Data was at most 5 minutes stale. If the database is SQL Server 2005, then you win a cool new thing called "mirrored" databases. You need a pair of servers, yours and theirs, able to communicate. After that, it's a cinch to set up. A wizard takes you through it. hth, Arthur ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Saturday, September 9, 2006 4:26:18 PM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 The answer to nearly all of your questions is found in my (apparently less than clear statement): "For purposes of security, it cannot be on a network drive shared by the two companies." I guess the problem is the word "security". Don't think of "database security" or "network security"; note that I work for General Dynamics, and think of "military security" or even "national security" instead, although that might be a bit of overkill. We are working with another company. We cannot have a normal shared network with them; again, that's because of security (see above). We can, however deposit the database in a very secure place where they can pick it up, use it, return it, and then we pick it up again. I was hoping that replication might avoid this. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 Message: 16 Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) From: Subject: Re: [AccessD] Replication and Referential Integrity To: Access Developers discussion and problem solving Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sun Sep 10 10:12:15 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 10 Sep 2006 10:12:15 -0500 Subject: [AccessD] Formatting a Check Box Message-ID: <000001c6d4eb$81498540$0200a8c0@danwaters> I would like to 'soften' the border around a checkbox. The property list shows the border color, but even when I change the color, on display the border stays black. I also can't make the border transparent. Thanks! Dan From jwcolby at colbyconsulting.com Sun Sep 10 10:32:36 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 10 Sep 2006 11:32:36 -0400 Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: <20060910132716.19516.qmail@web88205.mail.re2.yahoo.com> Message-ID: <000d01c6d4ee$5a1cce20$657aa8c0@m6805> I think what everyone is forgetting is that the database is physically moved. Only one person (or location) is ever in here at one time. Given that, then there is no issue. Site1 uses it. It moves. Site2 uses it. It moves. Site1 uses it. It moves. No replication involved. Unless Site1 uses it A COPY is placed somewhere. (How do you do this without sharing that location?) Site1 continues to use it. Site2 uses it. Site2's copy is brought back to site1. Again how? Site2's copy is then merged with site1's copy. Site2's copy is then sent back to site1. Replication REQUIRES using a shared site, whether that is an FTP drop location or a location where the BE sits. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, September 10, 2006 9:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 First, thanks for the clarification. That makes the problem much more interesting. The data must move from your allegedly secure place to another allegedly secure place on an allegedly secure channel (however that might be achived, encryption being one possible answer). Maybe you've got all that in place already, but maybe not. Once that is all settled, we're back to the simpler part of the problem. To replicate or not to replicate? If the back-end database is MDB, then replication is a great way to go. I have worked extensively with Access replication, linking together several branch offices and dozens of employees. There was a database server in each office and the home office ran the replicator. Data was at most 5 minutes stale. If the database is SQL Server 2005, then you win a cool new thing called "mirrored" databases. You need a pair of servers, yours and theirs, able to communicate. After that, it's a cinch to set up. A wizard takes you through it. hth, Arthur ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Saturday, September 9, 2006 4:26:18 PM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 The answer to nearly all of your questions is found in my (apparently less than clear statement): "For purposes of security, it cannot be on a network drive shared by the two companies." I guess the problem is the word "security". Don't think of "database security" or "network security"; note that I work for General Dynamics, and think of "military security" or even "national security" instead, although that might be a bit of overkill. We are working with another company. We cannot have a normal shared network with them; again, that's because of security (see above). We can, however deposit the database in a very secure place where they can pick it up, use it, return it, and then we pick it up again. I was hoping that replication might avoid this. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 Message: 16 Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) From: Subject: Re: [AccessD] Replication and Referential Integrity To: Access Developers discussion and problem solving Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sun Sep 10 14:47:53 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 10 Sep 2006 15:47:53 -0400 Subject: [AccessD] dll deployment References: <000d01c6d4ee$5a1cce20$657aa8c0@m6805> Message-ID: <000201c6d512$022a44d0$153ce944@50NM721> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic_link_library_redirection.asp ...anyone using such redirection with Access? William Hindman From stuart at lexacorp.com.pg Sun Sep 10 16:57:58 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Sep 2006 07:57:58 +1000 Subject: [AccessD] Formatting a Check Box In-Reply-To: <000001c6d4eb$81498540$0200a8c0@danwaters> References: <000001c6d4eb$81498540$0200a8c0@danwaters> Message-ID: <45051706.19057.357F88B3@stuart.lexacorp.com.pg> On 10 Sep 2006 at 10:12, Dan Waters wrote: > I would like to 'soften' the border around a checkbox. The property list > shows the border color, but even when I change the color, on display the > border stays black. I also can't make the border transparent. The only way I've been able to soften one is to set it's style fo chiselled or etched. (incidentally, the border colour sets the colour of the drop shadow) -- Stuart From dwaters at usinternet.com Sun Sep 10 17:06:13 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 10 Sep 2006 17:06:13 -0500 Subject: [AccessD] Formatting a Check Box In-Reply-To: <11218741.1157925730772.JavaMail.root@sniper47> Message-ID: <000401c6d525$553f5d00$0200a8c0@danwaters> Thanks Stuart! Dan -----Original Message----- Subject: Re: [AccessD] Formatting a Check Box On 10 Sep 2006 at 10:12, Dan Waters wrote: > I would like to 'soften' the border around a checkbox. The property list > shows the border color, but even when I change the color, on display the > border stays black. I also can't make the border transparent. The only way I've been able to soften one is to set it's style fo chiselled or etched. (incidentally, the border colour sets the colour of the drop shadow) -- Stuart From artful at rogers.com Sun Sep 10 18:04:22 2006 From: artful at rogers.com (artful at rogers.com) Date: Sun, 10 Sep 2006 16:04:22 -0700 (PDT) Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: <000d01c6d4ee$5a1cce20$657aa8c0@m6805> Message-ID: <20060910230422.95788.qmail@web88203.mail.re2.yahoo.com> A database is never moved. It might be copied elsewhere, then deleted from its source, but that is not equivalent to movement. To cite only one of many objections to your thesis, where is the db during copy, and who has access at those moments? It could be that my objection is granular, and that work-shifts, time-standards (degrees off Greenwich) and so on make this unlikely. But impossible? I'm always very careful with the use of that word. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Sunday, September 10, 2006 11:32:36 AM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 I think what everyone is forgetting is that the database is physically moved. Only one person (or location) is ever in here at one time. Given that, then there is no issue. Site1 uses it. It moves. Site2 uses it. It moves. Site1 uses it. It moves. No replication involved. Unless Site1 uses it A COPY is placed somewhere. (How do you do this without sharing that location?) Site1 continues to use it. Site2 uses it. Site2's copy is brought back to site1. Again how? Site2's copy is then merged with site1's copy. Site2's copy is then sent back to site1. Replication REQUIRES using a shared site, whether that is an FTP drop location or a location where the BE sits. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, September 10, 2006 9:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 First, thanks for the clarification. That makes the problem much more interesting. The data must move from your allegedly secure place to another allegedly secure place on an allegedly secure channel (however that might be achived, encryption being one possible answer). Maybe you've got all that in place already, but maybe not. Once that is all settled, we're back to the simpler part of the problem. To replicate or not to replicate? If the back-end database is MDB, then replication is a great way to go. I have worked extensively with Access replication, linking together several branch offices and dozens of employees. There was a database server in each office and the home office ran the replicator. Data was at most 5 minutes stale. If the database is SQL Server 2005, then you win a cool new thing called "mirrored" databases. You need a pair of servers, yours and theirs, able to communicate. After that, it's a cinch to set up. A wizard takes you through it. hth, Arthur ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Saturday, September 9, 2006 4:26:18 PM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 The answer to nearly all of your questions is found in my (apparently less than clear statement): "For purposes of security, it cannot be on a network drive shared by the two companies." I guess the problem is the word "security". Don't think of "database security" or "network security"; note that I work for General Dynamics, and think of "military security" or even "national security" instead, although that might be a bit of overkill. We are working with another company. We cannot have a normal shared network with them; again, that's because of security (see above). We can, however deposit the database in a very secure place where they can pick it up, use it, return it, and then we pick it up again. I was hoping that replication might avoid this. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 Message: 16 Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) From: Subject: Re: [AccessD] Replication and Referential Integrity To: Access Developers discussion and problem solving Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Sun Sep 10 18:36:45 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Sun, 10 Sep 2006 16:36:45 -0700 Subject: [AccessD] change control source via vba In-Reply-To: <000d01c6d4ee$5a1cce20$657aa8c0@m6805> Message-ID: Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob From jwcolby at colbyconsulting.com Sun Sep 10 20:28:38 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 10 Sep 2006 21:28:38 -0400 Subject: [AccessD] AccessD Digest, Vol 43, Issue 8 In-Reply-To: <20060910230422.95788.qmail@web88203.mail.re2.yahoo.com> Message-ID: <001701c6d541$9cad9550$657aa8c0@m6805> My point is that in order to copy a database to some location, you must have access to that location. In order to copy that database FROM that location, you must have access to that location. Therefore there is some location that is shared. Unless the database is attached to an email or something. In the absence of details, I am assuming that both locations will be in the database all the time, and will "drop / pickup" a copy at some shared location "in the middle". I admit I have never done replication, but I have read about it and in general a "difference" file is "dropped" in some location by databaseA, whereupon that difference file is picked up and applied to (syncronized with) databaseB. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, September 10, 2006 7:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 A database is never moved. It might be copied elsewhere, then deleted from its source, but that is not equivalent to movement. To cite only one of many objections to your thesis, where is the db during copy, and who has access at those moments? It could be that my objection is granular, and that work-shifts, time-standards (degrees off Greenwich) and so on make this unlikely. But impossible? I'm always very careful with the use of that word. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Sunday, September 10, 2006 11:32:36 AM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 I think what everyone is forgetting is that the database is physically moved. Only one person (or location) is ever in here at one time. Given that, then there is no issue. Site1 uses it. It moves. Site2 uses it. It moves. Site1 uses it. It moves. No replication involved. Unless Site1 uses it A COPY is placed somewhere. (How do you do this without sharing that location?) Site1 continues to use it. Site2 uses it. Site2's copy is brought back to site1. Again how? Site2's copy is then merged with site1's copy. Site2's copy is then sent back to site1. Replication REQUIRES using a shared site, whether that is an FTP drop location or a location where the BE sits. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, September 10, 2006 9:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 First, thanks for the clarification. That makes the problem much more interesting. The data must move from your allegedly secure place to another allegedly secure place on an allegedly secure channel (however that might be achived, encryption being one possible answer). Maybe you've got all that in place already, but maybe not. Once that is all settled, we're back to the simpler part of the problem. To replicate or not to replicate? If the back-end database is MDB, then replication is a great way to go. I have worked extensively with Access replication, linking together several branch offices and dozens of employees. There was a database server in each office and the home office ran the replicator. Data was at most 5 minutes stale. If the database is SQL Server 2005, then you win a cool new thing called "mirrored" databases. You need a pair of servers, yours and theirs, able to communicate. After that, it's a cinch to set up. A wizard takes you through it. hth, Arthur ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Saturday, September 9, 2006 4:26:18 PM Subject: Re: [AccessD] AccessD Digest, Vol 43, Issue 8 The answer to nearly all of your questions is found in my (apparently less than clear statement): "For purposes of security, it cannot be on a network drive shared by the two companies." I guess the problem is the word "security". Don't think of "database security" or "network security"; note that I work for General Dynamics, and think of "military security" or even "national security" instead, although that might be a bit of overkill. We are working with another company. We cannot have a normal shared network with them; again, that's because of security (see above). We can, however deposit the database in a very secure place where they can pick it up, use it, return it, and then we pick it up again. I was hoping that replication might avoid this. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 Message: 16 Date: Thu, 7 Sep 2006 14:45:36 -0700 (PDT) From: Subject: Re: [AccessD] Replication and Referential Integrity To: Access Developers discussion and problem solving Message-ID: <20060907214536.55515.qmail at web88205.mail.re2.yahoo.com> Content-Type: text/plain; charset=us-ascii I have mined Access replication extensively and like to pretend that I know it very well. So perhaps I can help in that regard. However, before we go there, I must say that I think something is very wrong if only one company can use the database at a time. Perhaps you are so fortunate that they reside in time zones that will never collide. IMO, your first question should be, Why is it that only one company can use the DB at a time? (And secondly, does this mean that 20 users within one company can use it simultaneously? Or is it even worse?) I have been trying for the past few minutes (not long, admittedly), but I cannot see a situation which forces you into this "one-company" scenario. Further, I don't see how replication will get you out of this problem, which seems to me of your own creation. Using replication strictly within Access, I have successfully tied together 4 branches distributed across North America, with a total of about 70 users, everyone hitting the same fixed-inventory tables. I can say with confidence that when this is set up correctly, nothing goes wrong. Not a single collision in over six months of operation. (After that we migrated to SQL Server.) So back to your original question. What is lacking in the design that forces you to restrict access to just one company? Something is strange in Denmark, methinks. Without knowing anything about your DB, at the very least I might suggest creating a Companies table and inheriting its PK in all the immediate tables, so that Company 1's customers have an FK pointing to Company 1, etc. This would effectively isolate all rows from each company, and also permit adding Company 3. Or perhaps I'm missing something. ----- Original Message ---- From: ewaldt at gdls.com To: accessd at databaseadvisors.com Sent: Thursday, September 7, 2006 3:57:39 PM Subject: [AccessD] Replication and Referential Integrity I've created a database that is used by two companies. For purposes of security, it cannot be on a network drive shared by the two companies. More detail isn't really necessary. What it amounts to is that only one company can use it at a time. I have had replication suggested to me. I know what it is, of course, but have only played with it on a very minor and experimental basis. However, the individual who recommended it to me is more experienced with it, and he said that it cannot be used with a database that employs referential integrity. Is he correct? I am sure that he knows more than I do about replication, but that doesn't mean much. TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sun Sep 10 23:08:25 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sun, 10 Sep 2006 21:08:25 -0700 Subject: [AccessD] change control source via vba In-Reply-To: Message-ID: <001001c6d557$ee740610$6801a8c0@HAL9005> Bob: I think the right syntax is, in the Load or Open event (can never remember which is best) txtMyTextBox.ControlSource = "fieldnamefromyourtable" Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, September 10, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 From accessd at shaw.ca Sun Sep 10 23:18:49 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 10 Sep 2006 21:18:49 -0700 Subject: [AccessD] change control source via vba In-Reply-To: Message-ID: <0J5E00AHLUL5WTK0@l-daemon> Hi Bob: It is very simple: 1. In the Modules section create a public function that say calls a Form and/or sets a variable. In a form multiple option would be available. What ever way decided select an appropriate data sources. Public Sub SetTheReportDataSource(rptCallerReport as Report) 'Note: Public Variable strSelectedReprtTableSourceName = "" ' You could do multiple menu forms and select your own source ' or just one allow record source to be selected.... Select Case rptCallerReport.Name Case "ReportName1" ... DoCmd.OpenForm "ReportSourceSelectorMenu" Or strSelectedReprtTableSourceName = "MyTableSource" ... Case "ReportName2" ... End Select 'if change report data source name If strSelectedReprtTableSourceName <> "" Then rptCallerReport.RecordSource = strSelectedReprtTableSourceName End if End Sub 2. Go into design mode of the report and select the event tab, of the report properties. Right-mouse-click the 'On Open' event and select 'Build'. Private Sub Report_Open(Cancel As Integer) 'From the Report... SetTheReportDataSource [Reports]![ReportName1] End Sub This was done quickly from memory but it should and does work. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, September 10, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Sep 11 03:31:58 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 11 Sep 2006 10:31:58 +0200 Subject: [AccessD] dll deployment Message-ID: Hi William No, but thanks for the tip. I love this paragraph: It is good practice to install application DLLs in the same directory that contains the application, even if you are not using DLL redirection. This ensures that installing the application does not overwrite other copies of the DLL and cause other applications to fail. Also, if you follow this good practice, other applications do not overwrite your copy of the DLL and cause your application to fail. So much for shared DLLs. Wasn't the option to share a DLL one of the reasons to use these? /gustav >>> wdhindman at dejpolsystems.com 10-09-2006 21:47:53 >>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic_link_library_redirection.asp ...anyone using such redirection with Access? William Hindman From jimdettman at verizon.net Mon Sep 11 04:11:25 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 11 Sep 2006 05:11:25 -0400 Subject: [AccessD] dll deployment In-Reply-To: Message-ID: <0J5F00KUQ8768KQ2@vms044.mailsrvcs.net> Gustav <> Yes, but Microsoft basically gave up on the shared Dll approach years ago. The recommendation below has been around for many years; a couple of years before .Net in fact. I'm thinking this came out around the Access 95/97 time frame, but I could be wrong. In any case, this recommendation was Microsoft's first (and only that I'm aware of) that the whole concept of shared Dlls simply didn't work. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, September 11, 2006 4:32 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] dll deployment Hi William No, but thanks for the tip. I love this paragraph: It is good practice to install application DLLs in the same directory that contains the application, even if you are not using DLL redirection. This ensures that installing the application does not overwrite other copies of the DLL and cause other applications to fail. Also, if you follow this good practice, other applications do not overwrite your copy of the DLL and cause your application to fail. So much for shared DLLs. Wasn't the option to share a DLL one of the reasons to use these? /gustav >>> wdhindman at dejpolsystems.com 10-09-2006 21:47:53 >>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas e/dynamic_link_library_redirection.asp ...anyone using such redirection with Access? William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Mon Sep 11 07:27:01 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Mon, 11 Sep 2006 17:57:01 +0530 Subject: [AccessD] change control source via vba References: Message-ID: Bob, Typically, dynamic assignment of control source might also be accompanied by selective hiding/un-hiding of controls. For a practical demonstration covering reports as well as forms, my sample db named MotelBooking might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Second option on the main switchboard, captioned "Booking Status (Style 2) - Dates Across Columns", should be pertinent to your case. You could adapt the underlying approach suitably, for your specific needs. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Bob Heygood To: Access Developers discussion and problem solving Sent: Monday, September 11, 2006 05:06 Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob From Jim.Hale at FleetPride.com Mon Sep 11 09:09:46 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 11 Sep 2006 09:09:46 -0500 Subject: [AccessD] access.exe process not terminating Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF59@corp-es01.fleetpride.com> Welcome to AccessD. In your function try setting each of your object variables to nothing at the very end and see if this clears up the problem. ex set db=nothing set recLang=nothing set FrmF=nothing set ctlc=nothing HTH Jim Hale -----Original Message----- From: Daniel Hurtubise [mailto:danielh at eti-canada.com] Sent: Monday, May 01, 2006 3:03 PM To: accessd at databaseadvisors.com Subject: [AccessD] access.exe process not terminating Hello everyone: This is my first post. Sorry It might be a bit rough...... Objective: To have a screen change it labels depending on language selected. Situation: Labels are all successfully changed and application works perfectly. HOWEVER: when leaving the application MSACCESS.EXE does not close out in the task manager. This only happens if the translation module is called. The code is inoffensive but I've been at it now for two days !!!! The ghost being produced leaves me believing that something is not closed properly. Any ideas? Form A: Calls a function which sits within a Module ' ######################################################### ' Form Open Event ' ######################################################### Private Sub Form_Open(Cancel As Integer) ' ' Set Language to current form ' Call changeFormLanguage(glang, Me) End Sub Module Code: ' ######################################################### ' This section will cycle every form for a language change ' ######################################################### Public Function changeFormLanguage(strLang As String, strFormName As Form) Dim db As Database Dim recLang As Recordset Dim objAo As AccessObject Dim objCP As Object Dim FrmF As Form ' current form Dim ctlc As Control ' current control Dim strControlName As String ' name of control Dim intControlType As Integer ' control type Dim strLangField As String 'open the database and language recordset Set db = CurrentDb() Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) recLang.Index = "PrimaryKey" Set FrmF = strFormName strLangField = IIf(strLang = "English", "Lbl_DescEn", "Lbl_DescFr") With recLang .Seek "=", strFormName, strFormName 'add or update the form in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then FrmF.Caption = " " Else FrmF.Caption = .Fields(strLangField) End If 'now loop through the controls For Each ctlc In FrmF.Controls 'we are interested in the controls with captions intControlType = ctlc.ControlType If ControlHasCaption(intControlType) = True Then 'find the control in the language table strControlName = ctlc.Name .Seek "=", strFormName.Name, strControlName 'add or update the control in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then ctlc.Caption = "" Else ctlc.Caption = .Fields(strLangField) End If End If Next End With 'close up recLang.Close db.Close End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From mmattys at rochester.rr.com Mon Sep 11 09:24:42 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 11 Sep 2006 10:24:42 -0400 Subject: [AccessD] access.exe process not terminating References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF59@corp-es01.fleetpride.com> Message-ID: <00fc01c6d5ae$0771eb90$0202a8c0@default> Hi Jim, >From: Daniel Hurtubise >Sent: Monday, May 01, 2006 3:03 PM Did you receive this today? :) Michael R. Mattys MapPoint Developer www.mattysconsulting.com From bchacc at san.rr.com Mon Sep 11 09:29:04 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 11 Sep 2006 07:29:04 -0700 Subject: [AccessD] OT: Solution In Search Of A Problem Message-ID: <002c01c6d5ae$a41938e0$6801a8c0@HAL9005> I came across this tidbit as I was trying to figure out why the auto complete for email addresses wasn?t working consistently in Outlook. You can force the auto complete by pressing ctrl-K. Still haven?t figured out why the auto complete works for some addresses and not others. Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 From bchacc at san.rr.com Mon Sep 11 09:30:49 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 11 Sep 2006 07:30:49 -0700 Subject: [AccessD] Security Level Message-ID: <003101c6d5ae$e1101070$6801a8c0@HAL9005> Dear List: I wrote last week about my distributor in Taiwan not being able to run an mde ? getting an error that the file does not have a digital signature. The solution offered was, I think the correct one ? Tools-->Macro-->Security, and select ?Low?. However, she is running W2K with A2K and does not have that option. Is there a workaround for this in W2K/A2K? MTIA, Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 From Jim.Hale at FleetPride.com Mon Sep 11 09:34:46 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 11 Sep 2006 09:34:46 -0500 Subject: [AccessD] access.exe process not terminating Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF5C@corp-es01.fleetpride.com> yes. I didn't notice the date till just now though. Jim Hale -----Original Message----- From: Michael R Mattys [mailto:mmattys at rochester.rr.com] Sent: Monday, September 11, 2006 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] access.exe process not terminating Hi Jim, >From: Daniel Hurtubise >Sent: Monday, May 01, 2006 3:03 PM Did you receive this today? :) Michael R. Mattys MapPoint Developer www.mattysconsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From mmattys at rochester.rr.com Mon Sep 11 10:35:45 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 11 Sep 2006 11:35:45 -0400 Subject: [AccessD] access.exe process not terminating References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF5C@corp-es01.fleetpride.com> Message-ID: <013401c6d5b7$f471d4b0$0202a8c0@default> ----- Original Message ----- From: "Hale, Jim" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 11, 2006 10:34 AM Subject: Re: [AccessD] access.exe process not terminating > yes. I didn't notice the date till just now though. > Jim Hale Jim, I couldn't tell because I don't clear my email. Anyway, it should provide useful info for Daniel in case he wasn't aware. Michael R. Mattys MapPoint Developer www.mattysconsulting.com From jimdettman at verizon.net Mon Sep 11 11:02:00 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 11 Sep 2006 12:02:00 -0400 Subject: [AccessD] Security Level In-Reply-To: <003101c6d5ae$e1101070$6801a8c0@HAL9005> Message-ID: <0J5F0063MR7QOKH3@vms048.mailsrvcs.net> Rocky, Here's the other way around that: http://office.microsoft.com/en-us/assistance/HP010446111033.aspx Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, September 11, 2006 10:31 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Security Level Dear List: I wrote last week about my distributor in Taiwan not being able to run an mde - getting an error that the file does not have a digital signature. The solution offered was, I think the correct one - Tools-->Macro-->Security, and select 'Low". However, she is running W2K with A2K and does not have that option. Is there a workaround for this in W2K/A2K? MTIA, Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Sep 11 11:53:14 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 11 Sep 2006 09:53:14 -0700 Subject: [AccessD] Security Level In-Reply-To: <0J5F0063MR7QOKH3@vms048.mailsrvcs.net> Message-ID: <006901c6d5c2$c807bd80$6801a8c0@HAL9005> Jim: That addresses Access 2003 and we're working in A2K ("At the High or Medium macro security level in Access," - that level's not available in A2K). So I'm looking for a workaround in A2K, and I'd prefer not to get into the digital signature problem at all if possible. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 11, 2006 9:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Security Level Rocky, Here's the other way around that: http://office.microsoft.com/en-us/assistance/HP010446111033.aspx Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, September 11, 2006 10:31 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Security Level Dear List: I wrote last week about my distributor in Taiwan not being able to run an mde - getting an error that the file does not have a digital signature. The solution offered was, I think the correct one - Tools-->Macro-->Security, and select 'Low". However, she is running W2K with A2K and does not have that option. Is there a workaround for this in W2K/A2K? MTIA, Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 From bheygood at abestsystems.com Mon Sep 11 13:04:10 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Mon, 11 Sep 2006 11:04:10 -0700 Subject: [AccessD] change control source via vba In-Reply-To: <0J5E00AHLUL5WTK0@l-daemon> Message-ID: Hello Jim, I may have not been clear on this. I needed to set the source for a certain unbound control, not the report itself which has a recordsource. I think I got it now. Thanks for taking the time to respond. bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence Sent: Sunday, September 10, 2006 9:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] change control source via vba Hi Bob: It is very simple: 1. In the Modules section create a public function that say calls a Form and/or sets a variable. In a form multiple option would be available. What ever way decided select an appropriate data sources. Public Sub SetTheReportDataSource(rptCallerReport as Report) 'Note: Public Variable strSelectedReprtTableSourceName = "" ' You could do multiple menu forms and select your own source ' or just one allow record source to be selected.... Select Case rptCallerReport.Name Case "ReportName1" ... DoCmd.OpenForm "ReportSourceSelectorMenu" Or strSelectedReprtTableSourceName = "MyTableSource" ... Case "ReportName2" ... End Select 'if change report data source name If strSelectedReprtTableSourceName <> "" Then rptCallerReport.RecordSource = strSelectedReprtTableSourceName End if End Sub 2. Go into design mode of the report and select the event tab, of the report properties. Right-mouse-click the 'On Open' event and select 'Build'. Private Sub Report_Open(Cancel As Integer) 'From the Report... SetTheReportDataSource [Reports]![ReportName1] End Sub This was done quickly from memory but it should and does work. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, September 10, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Mon Sep 11 13:07:02 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Mon, 11 Sep 2006 11:07:02 -0700 Subject: [AccessD] change control source via vba In-Reply-To: <001001c6d557$ee740610$6801a8c0@HAL9005> Message-ID: Hey Rocky, Thanks for the jump start. This did the trick: Me!txtInfo5.ControlSource = gField5 best, bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Beach Access Software Sent: Sunday, September 10, 2006 9:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] change control source via vba Bob: I think the right syntax is, in the Load or Open event (can never remember which is best) txtMyTextBox.ControlSource = "fieldnamefromyourtable" Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, September 10, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Mon Sep 11 13:11:10 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Mon, 11 Sep 2006 11:11:10 -0700 Subject: [AccessD] change control source via vba In-Reply-To: Message-ID: Hello A D, Thanks for taking the time to respond. It appears that you are using queries to arrange the data, without actually modifying the form controls. This might have been a better way to do what I am doing, but I am now too far into another method. best, bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of A.D.TEJPAL Sent: Monday, September 11, 2006 5:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] change control source via vba Bob, Typically, dynamic assignment of control source might also be accompanied by selective hiding/un-hiding of controls. For a practical demonstration covering reports as well as forms, my sample db named MotelBooking might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Second option on the main switchboard, captioned "Booking Status (Style 2) - Dates Across Columns", should be pertinent to your case. You could adapt the underlying approach suitably, for your specific needs. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Bob Heygood To: Access Developers discussion and problem solving Sent: Monday, September 11, 2006 05:06 Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 11 13:28:05 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 11 Sep 2006 11:28:05 -0700 Subject: [AccessD] change control source via vba In-Reply-To: Message-ID: <0J5F00JUXXWILWN0@l-daemon> Sorry about that Bob... thought the problem was a little more complex or you would not have been asking... it was almost too simple. Good to see you got the answer. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Monday, September 11, 2006 11:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] change control source via vba Hello Jim, I may have not been clear on this. I needed to set the source for a certain unbound control, not the report itself which has a recordsource. I think I got it now. Thanks for taking the time to respond. bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence Sent: Sunday, September 10, 2006 9:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] change control source via vba Hi Bob: It is very simple: 1. In the Modules section create a public function that say calls a Form and/or sets a variable. In a form multiple option would be available. What ever way decided select an appropriate data sources. Public Sub SetTheReportDataSource(rptCallerReport as Report) 'Note: Public Variable strSelectedReprtTableSourceName = "" ' You could do multiple menu forms and select your own source ' or just one allow record source to be selected.... Select Case rptCallerReport.Name Case "ReportName1" ... DoCmd.OpenForm "ReportSourceSelectorMenu" Or strSelectedReprtTableSourceName = "MyTableSource" ... Case "ReportName2" ... End Select 'if change report data source name If strSelectedReprtTableSourceName <> "" Then rptCallerReport.RecordSource = strSelectedReprtTableSourceName End if End Sub 2. Go into design mode of the report and select the event tab, of the report properties. Right-mouse-click the 'On Open' event and select 'Build'. Private Sub Report_Open(Cancel As Integer) 'From the Report... SetTheReportDataSource [Reports]![ReportName1] End Sub This was done quickly from memory but it should and does work. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Sunday, September 10, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: [AccessD] change control source via vba Does anyone have a code snip that will show me how to change a report control from being unbound to one of the fields in the record source of the report?? This needs to be done either when opening the report or from code I run before opening. TIA bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 11 14:25:33 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 11 Sep 2006 15:25:33 -0400 Subject: [AccessD] dll deployment References: <0J5F00KUQ8768KQ2@vms044.mailsrvcs.net> Message-ID: <006c01c6d5d8$0e27cf20$153ce944@50NM721> gustav/jim ...so this is the way to go? ...no better alternatives around? ...I'm asking because after many years of avoiding 3rd party controls like the plague I'm now forced to use one ...and if I use one, I may be tempted to use others ...on first look, this approach would appear to resolve the version issues ...but I was certainly hoping someone had already been down this road. William Hindman ----- Original Message ----- From: "Jim Dettman" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 11, 2006 5:11 AM Subject: Re: [AccessD] dll deployment > Gustav > > < reasons to use these?>> > > Yes, but Microsoft basically gave up on the shared Dll approach years > ago. > The recommendation below has been around for many years; a couple of years > before .Net in fact. I'm thinking this came out around the Access 95/97 > time frame, but I could be wrong. > > In any case, this recommendation was Microsoft's first (and only that I'm > aware of) that the whole concept of shared Dlls simply didn't work. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, September 11, 2006 4:32 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] dll deployment > > Hi William > > No, but thanks for the tip. > I love this paragraph: > > > It is good practice to install application DLLs in the same directory that > contains the application, even if you are not using DLL redirection. This > ensures that installing the application does not overwrite other copies of > the DLL and cause other applications to fail. Also, if you follow this > good > practice, other applications do not overwrite your copy of the DLL and > cause > your application to fail. > > > So much for shared DLLs. Wasn't the option to share a DLL one of the > reasons > to use these? > > /gustav > > >>>> wdhindman at dejpolsystems.com 10-09-2006 21:47:53 >>> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas > e/dynamic_link_library_redirection.asp > > ...anyone using such redirection with Access? > > William Hindman > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Mon Sep 11 14:42:22 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 11 Sep 2006 12:42:22 -0700 Subject: [AccessD] Security Level In-Reply-To: <006901c6d5c2$c807bd80$6801a8c0@HAL9005> References: <006901c6d5c2$c807bd80$6801a8c0@HAL9005> Message-ID: <4505BC1E.4050908@shaw.ca> Well Access 2000 didn't have certificates for vba code. I think only for Word 2000 and Excel 2000. If you created an mdb in 2003 with a certificate converted to 2000 format and then you opened in Access 2000 and created an mde. You invalidated the digital signature by opening the file in Access 2000 and running the MDE conversion utility. To explain, you opened the MDB file in Access 2000, which doesn't support digital signatures, so slight changes were made to the file in order to successfully create the MDE file, making it "altered" from the original. If a signed file has been altered, then the digital signature becomes invalid. That's what digital signatures are for. A SelfCert digital certificate will work for medium level Macro Security, but not for high. Does she have the signature in the digital signature cache Go into IE --> Tools --> Internet Options --> Content There is an import option. Also check for registry keys for 9.0 (2000) either HKEY_Local_Machine\Software\Microsoft\Office\10.0\Access\Security\Level=1 HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level=1 Beach Access Software wrote: >Jim: > >That addresses Access 2003 and we're working in A2K ("At the High or Medium >macro security level in Access," - that level's not available in A2K). > >So I'm looking for a workaround in A2K, and I'd prefer not to get into the >digital signature problem at all if possible. > >Thanks and regards, > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, September 11, 2006 9:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Security Level > >Rocky, > >Here's the other way around that: > >http://office.microsoft.com/en-us/assistance/HP010446111033.aspx > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >Software >Sent: Monday, September 11, 2006 10:31 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Security Level > >Dear List: > > > >I wrote last week about my distributor in Taiwan not being able to run an >mde - getting an error that the file does not have a digital signature. The >solution offered was, I think the correct one - Tools-->Macro-->Security, >and select 'Low". > > > >However, she is running W2K with A2K and does not have that option. Is >there a workaround for this in W2K/A2K? > > > >MTIA, > > > >Rocky > > > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Sep 11 14:59:04 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 11 Sep 2006 12:59:04 -0700 Subject: [AccessD] dll deployment In-Reply-To: <006c01c6d5d8$0e27cf20$153ce944@50NM721> References: <0J5F00KUQ8768KQ2@vms044.mailsrvcs.net> <006c01c6d5d8$0e27cf20$153ce944@50NM721> Message-ID: <4505C008.7020703@shaw.ca> Here is the order of checking for a reference Access checks to see if the referenced file name is currently loaded in memory. If not, Access verifies whether the RefLibPaths registry key exists. If so, Access looks for a named value with the same name as the reference. If there is a match, Access loads the reference from the path that is pointed to by the named value. Access next searches the following locations for the referenced file: Application Folder (location of Msaccess.exe) Current Folder that you see if you click Open on the File menu where mdb file located WinDir where the operating system files are running System Folder located in the WinDir the PATH environment list of folders directly accessible by the system. William Hindman wrote: >gustav/jim > >...so this is the way to go? ...no better alternatives around? ...I'm asking >because after many years of avoiding 3rd party controls like the plague I'm >now forced to use one ...and if I use one, I may be tempted to use others >...on first look, this approach would appear to resolve the version issues >...but I was certainly hoping someone had already been down this road. > >William Hindman > >----- Original Message ----- >From: "Jim Dettman" >To: "'Access Developers discussion and problem solving'" > >Sent: Monday, September 11, 2006 5:11 AM >Subject: Re: [AccessD] dll deployment > > > > >>Gustav >> >><>reasons to use these?>> >> >> Yes, but Microsoft basically gave up on the shared Dll approach years >>ago. >>The recommendation below has been around for many years; a couple of years >>before .Net in fact. I'm thinking this came out around the Access 95/97 >>time frame, but I could be wrong. >> >> In any case, this recommendation was Microsoft's first (and only that I'm >>aware of) that the whole concept of shared Dlls simply didn't work. >> >>Jim. >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>Sent: Monday, September 11, 2006 4:32 AM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] dll deployment >> >>Hi William >> >>No, but thanks for the tip. >>I love this paragraph: >> >> >>It is good practice to install application DLLs in the same directory that >>contains the application, even if you are not using DLL redirection. This >>ensures that installing the application does not overwrite other copies of >>the DLL and cause other applications to fail. Also, if you follow this >>good >>practice, other applications do not overwrite your copy of the DLL and >>cause >>your application to fail. >> >> >>So much for shared DLLs. Wasn't the option to share a DLL one of the >>reasons >>to use these? >> >>/gustav >> >> >> >> >>>>>wdhindman at dejpolsystems.com 10-09-2006 21:47:53 >>> >>>>> >>>>> >>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas >>e/dynamic_link_library_redirection.asp >> >>...anyone using such redirection with Access? >> >>William Hindman >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > > > -- Marty Connelly Victoria, B.C. Canada From itsame2000 at sbcglobal.net Mon Sep 11 15:00:15 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Mon, 11 Sep 2006 13:00:15 -0700 (PDT) Subject: [AccessD] Open Database Method Message-ID: <20060911200015.4991.qmail@web83005.mail.mud.yahoo.com> I hit a snag with a process I'm putting together. I'm trying to use the OpenDatabase method in an Access 2000 database to open a second Access 2000 database so that I can enumerate indices. I want to delete indices and reindex on demand from the first database. I'm getting an error that the database is an unrecognized format. I can open the 2nd database without problem if I go to it directly. Here is the code I'm using. Ideas? Has anyone done this before? Thanks, Jeremy Sub TestThis() Dim wrkJet As DAO.Workspace Dim db As DAO.Database Dim sDB As String sDB = "C:\Test\BackEnd.mdb" Set wrkJet = CreateWorkspace("wrkSpace", "admin", "", dbUseJet) Set db = OpenDatabase(sDB, True) Set db = Nothing Set wrkject = Nothing End Sub From Johncliviger at aol.com Mon Sep 11 15:24:05 2006 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 11 Sep 2006 16:24:05 EDT Subject: [AccessD] Exporting questions and importing answers in AXP Message-ID: <3f0.a116201.32371fe5@aol.com> Hi all I have a fault report that AXP produces (in .snp format) and is emailed to a supplier. Which the supplier fills in by hand and returns. I need to cut out the hand writing bit and have a screen form to fill in by the supplier. What is the best approach using email to send a supplier a fault report that he can fill in on screen and return so that the fault report contents are uploaded into the AXP db with minimum effort? I'm looking for a general guide eg do I use a pdf format, do I go for a runtime db or a word doc? TIA regards johnc From jwcolby at colbyconsulting.com Mon Sep 11 16:07:34 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 11 Sep 2006 17:07:34 -0400 Subject: [AccessD] Strange bug Message-ID: <000f01c6d5e6$4ef39b20$657aa8c0@m6805> I have "malformed string" in a comma delimited file. The record in question has valid data, but out in the middle of the string has > 3000 spaces and InStr() cannot find any spaces out in the area of the string where these 3000 spaces reside. I'm baffled. I need to find this string (in a 3 million line file) and not copy just that line, but I can't sense the line. Weird. John W. Colby Colby Consulting www.ColbyConsulting.com From jimdettman at verizon.net Mon Sep 11 16:25:45 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 11 Sep 2006 17:25:45 -0400 Subject: [AccessD] Strange bug In-Reply-To: <000f01c6d5e6$4ef39b20$657aa8c0@m6805> Message-ID: <0J5G0006K674IVX0@vms046.mailsrvcs.net> John, You sure their spaces? I'd look at them with a hex editor. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 11, 2006 5:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Strange bug I have "malformed string" in a comma delimited file. The record in question has valid data, but out in the middle of the string has > 3000 spaces and InStr() cannot find any spaces out in the area of the string where these 3000 spaces reside. I'm baffled. I need to find this string (in a 3 million line file) and not copy just that line, but I can't sense the line. Weird. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Sep 11 16:43:48 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 11 Sep 2006 14:43:48 -0700 Subject: [AccessD] Security Level In-Reply-To: <4505BC1E.4050908@shaw.ca> Message-ID: <005201c6d5eb$5e380bc0$6801a8c0@HAL9005> If I created a new mdb in A2K and imported all the objects from the other one, then made the mde from that, do you think that would work? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, September 11, 2006 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Security Level Well Access 2000 didn't have certificates for vba code. I think only for Word 2000 and Excel 2000. If you created an mdb in 2003 with a certificate converted to 2000 format and then you opened in Access 2000 and created an mde. You invalidated the digital signature by opening the file in Access 2000 and running the MDE conversion utility. To explain, you opened the MDB file in Access 2000, which doesn't support digital signatures, so slight changes were made to the file in order to successfully create the MDE file, making it "altered" from the original. If a signed file has been altered, then the digital signature becomes invalid. That's what digital signatures are for. A SelfCert digital certificate will work for medium level Macro Security, but not for high. Does she have the signature in the digital signature cache Go into IE --> Tools --> Internet Options --> Content There is an import option. Also check for registry keys for 9.0 (2000) either HKEY_Local_Machine\Software\Microsoft\Office\10.0\Access\Security\Level=1 HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level=1 Beach Access Software wrote: >Jim: > >That addresses Access 2003 and we're working in A2K ("At the High or Medium >macro security level in Access," - that level's not available in A2K). > >So I'm looking for a workaround in A2K, and I'd prefer not to get into the >digital signature problem at all if possible. > >Thanks and regards, > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, September 11, 2006 9:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Security Level > >Rocky, > >Here's the other way around that: > >http://office.microsoft.com/en-us/assistance/HP010446111033.aspx > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >Software >Sent: Monday, September 11, 2006 10:31 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Security Level > >Dear List: > > > >I wrote last week about my distributor in Taiwan not being able to run an >mde - getting an error that the file does not have a digital signature. The >solution offered was, I think the correct one - Tools-->Macro-->Security, >and select 'Low". > > > >However, she is running W2K with A2K and does not have that option. Is >there a workaround for this in W2K/A2K? > > > >MTIA, > > > >Rocky > > > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 From jwcolby at colbyconsulting.com Mon Sep 11 16:45:30 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 11 Sep 2006 17:45:30 -0400 Subject: [AccessD] Strange bug In-Reply-To: <0J5G0006K674IVX0@vms046.mailsrvcs.net> Message-ID: <001401c6d5eb$9b629d80$657aa8c0@m6805> Good call. They are in fact a hex 00. The odd part is that I cut one of them into the paste buffer, and then inserted it between two quotes, and compared that to a space between two quotes (using the = operator) and got a positive compare. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 11, 2006 5:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Strange bug John, You sure their spaces? I'd look at them with a hex editor. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 11, 2006 5:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Strange bug I have "malformed string" in a comma delimited file. The record in question has valid data, but out in the middle of the string has > 3000 spaces and InStr() cannot find any spaces out in the area of the string where these 3000 spaces reside. I'm baffled. I need to find this string (in a 3 million line file) and not copy just that line, but I can't sense the line. Weird. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Sep 11 16:59:58 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 11 Sep 2006 16:59:58 -0500 Subject: [AccessD] Strange bug Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0100E8A2@MARLOW_MAIN2.marlow.com> Are you sure they are spaces, and not a strange ASCII character that looks like a space? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Monday, September 11, 2006 4:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Strange bug I have "malformed string" in a comma delimited file. The record in question has valid data, but out in the middle of the string has > 3000 spaces and InStr() cannot find any spaces out in the area of the string where these 3000 spaces reside. I'm baffled. I need to find this string (in a 3 million line file) and not copy just that line, but I can't sense the line. Weird. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 11 19:08:07 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 11 Sep 2006 20:08:07 -0400 Subject: [AccessD] dll deployment References: <0J5F00KUQ8768KQ2@vms044.mailsrvcs.net><006c01c6d5d8$0e27cf20$153ce944@50NM721> <4505C008.7020703@shaw.ca> Message-ID: <000301c6d5ff$87895920$153ce944@50NM721> ...that's the default check path that I've always depended upon ...but the article says that by sticking an app.local file in the app directory it will change that default check path to check the local directory first ...I was looking to see if anyone here had used it successfully. William Hindman ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Monday, September 11, 2006 3:59 PM Subject: Re: [AccessD] dll deployment > Here is the order of checking for a reference > > Access checks to see if the referenced file name is currently loaded in > memory. > If not, Access verifies whether the RefLibPaths registry key exists. If > so, Access looks for a named value with the same name as the reference. > If there is a match, Access loads the reference from the path that is > pointed to by the named value. > > Access next searches the following locations for the referenced file: > Application Folder (location of Msaccess.exe) > Current Folder that you see if you click Open on the File menu where > mdb file located > WinDir where the operating system files are running > System Folder located in the WinDir > the PATH environment list of folders directly accessible by the system. > > William Hindman wrote: > >>gustav/jim >> >>...so this is the way to go? ...no better alternatives around? ...I'm >>asking >>because after many years of avoiding 3rd party controls like the plague >>I'm >>now forced to use one ...and if I use one, I may be tempted to use others >>...on first look, this approach would appear to resolve the version issues >>...but I was certainly hoping someone had already been down this road. >> >>William Hindman >> >>----- Original Message ----- >>From: "Jim Dettman" >>To: "'Access Developers discussion and problem solving'" >> >>Sent: Monday, September 11, 2006 5:11 AM >>Subject: Re: [AccessD] dll deployment >> >> >> >> >>>Gustav >>> >>><>>reasons to use these?>> >>> >>> Yes, but Microsoft basically gave up on the shared Dll approach years >>>ago. >>>The recommendation below has been around for many years; a couple of >>>years >>>before .Net in fact. I'm thinking this came out around the Access 95/97 >>>time frame, but I could be wrong. >>> >>> In any case, this recommendation was Microsoft's first (and only that >>> I'm >>>aware of) that the whole concept of shared Dlls simply didn't work. >>> >>>Jim. >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>>Sent: Monday, September 11, 2006 4:32 AM >>>To: accessd at databaseadvisors.com >>>Subject: Re: [AccessD] dll deployment >>> >>>Hi William >>> >>>No, but thanks for the tip. >>>I love this paragraph: >>> >>> >>>It is good practice to install application DLLs in the same directory >>>that >>>contains the application, even if you are not using DLL redirection. This >>>ensures that installing the application does not overwrite other copies >>>of >>>the DLL and cause other applications to fail. Also, if you follow this >>>good >>>practice, other applications do not overwrite your copy of the DLL and >>>cause >>>your application to fail. >>> >>> >>>So much for shared DLLs. Wasn't the option to share a DLL one of the >>>reasons >>>to use these? >>> >>>/gustav >>> >>> >>> >>> >>>>>>wdhindman at dejpolsystems.com 10-09-2006 21:47:53 >>> >>>>>> >>>>>> >>>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas >>>e/dynamic_link_library_redirection.asp >>> >>>...anyone using such redirection with Access? >>> >>>William Hindman >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >> >> >> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Mon Sep 11 19:57:32 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 11 Sep 2006 20:57:32 -0400 Subject: [AccessD] Security Level References: <005201c6d5eb$5e380bc0$6801a8c0@HAL9005> Message-ID: <001d01c6d606$6e925730$153ce944@50NM721> ...it should but then what you've done already should have worked as well. ...you might give this a shot first ...its from an MSKB article that I can't find at the moment but from which I have notes in my Treepad: 1) decompile the mdb from A2K3, recompile, save, close. 2) open the mdb in A2K3 3) add a digital signature (use the wizard to create one first if you've not done it before) 4) save and close the mdb 5) open the mdb in A2K3 6) remove the digital signature 7) save and close the mdb 8) open the mdb in A2K3 (if you open it in another version first, the digital signature will still be there) 9) save and close the mdb ...you should now be able to create an A2K mde that will open in A2K without the warnings. William Hindman ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 11, 2006 5:43 PM Subject: Re: [AccessD] Security Level > If I created a new mdb in A2K and imported all the objects from the other > one, then made the mde from that, do you think that would work? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Monday, September 11, 2006 12:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Security Level > > Well Access 2000 didn't have certificates for vba code. > I think only for Word 2000 and Excel 2000. > > If you created an mdb in 2003 with a certificate converted to 2000 format > and then you opened in Access 2000 and created an mde. You invalidated > the digital > signature by opening the file in Access 2000 and running the MDE > conversion > utility. To explain, you opened the MDB file in Access 2000, which > doesn't > support digital signatures, so slight changes were made to the file in > order > to successfully create the MDE file, making it "altered" from the > original. > If a signed file has been altered, then the digital signature becomes > invalid. That's what digital signatures are for. > > > A SelfCert digital certificate will work for medium level Macro > Security, but not for high. > > Does she have the signature in the digital signature cache > Go into IE --> Tools --> Internet Options --> Content > There is an import option. > > Also check for registry keys for 9.0 (2000) > either > > HKEY_Local_Machine\Software\Microsoft\Office\10.0\Access\Security\Level=1 > > HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level=1 > > Beach Access Software wrote: > >>Jim: >> >>That addresses Access 2003 and we're working in A2K ("At the High or >>Medium >>macro security level in Access," - that level's not available in A2K). >> >>So I'm looking for a workaround in A2K, and I'd prefer not to get into the >>digital signature problem at all if possible. >> >>Thanks and regards, >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >>Sent: Monday, September 11, 2006 9:02 AM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] Security Level >> >>Rocky, >> >>Here's the other way around that: >> >>http://office.microsoft.com/en-us/assistance/HP010446111033.aspx >> >>Jim. >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >>Software >>Sent: Monday, September 11, 2006 10:31 AM >>To: 'Access Developers discussion and problem solving' >>Subject: [AccessD] Security Level >> >>Dear List: >> >> >> >>I wrote last week about my distributor in Taiwan not being able to run an >>mde - getting an error that the file does not have a digital signature. > The >>solution offered was, I think the correct one - Tools-->Macro-->Security, >>and select 'Low". >> >> >> >>However, she is running W2K with A2K and does not have that option. Is >>there a workaround for this in W2K/A2K? >> >> >> >>MTIA, >> >> >> >>Rocky >> >> >> >> >> >>Rocky Smolin >> >>Beach Access Software >> >>858-259-4334 >> >>www.e-z-mrp.com >> >> >> >> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From darrend at nimble.com.au Mon Sep 11 22:54:59 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 12 Sep 2006 13:54:59 +1000 Subject: [AccessD] Formatting a Check Box In-Reply-To: <000001c6d4eb$81498540$0200a8c0@danwaters> Message-ID: <20060912035502.TPIP16502.omta02ps.mx.bigpond.com@DENZILLAP> Hi Dan Sample Demo sent off list Any "me too's" to tripledee at bigpond.com.au See y'all Darren ------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, 11 September 2006 1:12 AM To: AccessD Subject: [AccessD] Formatting a Check Box I would like to 'soften' the border around a checkbox. The property list shows the border color, but even when I change the color, on display the border stays black. I also can't make the border transparent. Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Sep 12 00:33:52 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 11 Sep 2006 22:33:52 -0700 Subject: [AccessD] Security Level In-Reply-To: <001d01c6d606$6e925730$153ce944@50NM721> Message-ID: <008d01c6d62d$085972b0$6801a8c0@HAL9005> Thanks. I'll try it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, September 11, 2006 5:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Security Level ...it should but then what you've done already should have worked as well. ...you might give this a shot first ...its from an MSKB article that I can't find at the moment but from which I have notes in my Treepad: 1) decompile the mdb from A2K3, recompile, save, close. 2) open the mdb in A2K3 3) add a digital signature (use the wizard to create one first if you've not done it before) 4) save and close the mdb 5) open the mdb in A2K3 6) remove the digital signature 7) save and close the mdb 8) open the mdb in A2K3 (if you open it in another version first, the digital signature will still be there) 9) save and close the mdb ...you should now be able to create an A2K mde that will open in A2K without the warnings. William Hindman ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 11, 2006 5:43 PM Subject: Re: [AccessD] Security Level > If I created a new mdb in A2K and imported all the objects from the other > one, then made the mde from that, do you think that would work? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Monday, September 11, 2006 12:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Security Level > > Well Access 2000 didn't have certificates for vba code. > I think only for Word 2000 and Excel 2000. > > If you created an mdb in 2003 with a certificate converted to 2000 format > and then you opened in Access 2000 and created an mde. You invalidated > the digital > signature by opening the file in Access 2000 and running the MDE > conversion > utility. To explain, you opened the MDB file in Access 2000, which > doesn't > support digital signatures, so slight changes were made to the file in > order > to successfully create the MDE file, making it "altered" from the > original. > If a signed file has been altered, then the digital signature becomes > invalid. That's what digital signatures are for. > > > A SelfCert digital certificate will work for medium level Macro > Security, but not for high. > > Does she have the signature in the digital signature cache > Go into IE --> Tools --> Internet Options --> Content > There is an import option. > > Also check for registry keys for 9.0 (2000) > either > > HKEY_Local_Machine\Software\Microsoft\Office\10.0\Access\Security\Level=1 > > HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level=1 > > Beach Access Software wrote: > >>Jim: >> >>That addresses Access 2003 and we're working in A2K ("At the High or >>Medium >>macro security level in Access," - that level's not available in A2K). >> >>So I'm looking for a workaround in A2K, and I'd prefer not to get into the >>digital signature problem at all if possible. >> >>Thanks and regards, >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >>Sent: Monday, September 11, 2006 9:02 AM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] Security Level >> >>Rocky, >> >>Here's the other way around that: >> >>http://office.microsoft.com/en-us/assistance/HP010446111033.aspx >> >>Jim. >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >>Software >>Sent: Monday, September 11, 2006 10:31 AM >>To: 'Access Developers discussion and problem solving' >>Subject: [AccessD] Security Level >> >>Dear List: >> >> >> >>I wrote last week about my distributor in Taiwan not being able to run an >>mde - getting an error that the file does not have a digital signature. > The >>solution offered was, I think the correct one - Tools-->Macro-->Security, >>and select 'Low". >> >> >> >>However, she is running W2K with A2K and does not have that option. Is >>there a workaround for this in W2K/A2K? >> >> >> >>MTIA, >> >> >> >>Rocky >> >> >> >> >> >>Rocky Smolin >> >>Beach Access Software >> >>858-259-4334 >> >>www.e-z-mrp.com >> >> >> >> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.3/445 - Release Date: 9/11/2006 From Gustav at cactus.dk Tue Sep 12 03:19:28 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 12 Sep 2006 10:19:28 +0200 Subject: [AccessD] dll deployment Message-ID: Hi William When you deploy your app, just add the DLL to the folder of the app - I think Charlotte is doing this as well. Causes zero issues. /gustav >>> wdhindman at dejpolsystems.com 11-09-2006 21:25:33 >>> gustav/jim ...so this is the way to go? ...no better alternatives around? ...I'm asking because after many years of avoiding 3rd party controls like the plague I'm now forced to use one ...and if I use one, I may be tempted to use others ...on first look, this approach would appear to resolve the version issues ...but I was certainly hoping someone had already been down this road. William Hindman ----- Original Message ----- From: "Jim Dettman" To: "'Access Developers discussion and problem solving'" Sent: Monday, September 11, 2006 5:11 AM Subject: Re: [AccessD] dll deployment > Gustav > > < reasons to use these?>> > > Yes, but Microsoft basically gave up on the shared Dll approach years > ago. > The recommendation below has been around for many years; a couple of years > before .Net in fact. I'm thinking this came out around the Access 95/97 > time frame, but I could be wrong. > > In any case, this recommendation was Microsoft's first (and only that I'm > aware of) that the whole concept of shared Dlls simply didn't work. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, September 11, 2006 4:32 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] dll deployment > > Hi William > > No, but thanks for the tip. > I love this paragraph: > > > It is good practice to install application DLLs in the same directory that > contains the application, even if you are not using DLL redirection. This > ensures that installing the application does not overwrite other copies of > the DLL and cause other applications to fail. Also, if you follow this > good > practice, other applications do not overwrite your copy of the DLL and > cause > your application to fail. > > > So much for shared DLLs. Wasn't the option to share a DLL one of the > reasons > to use these? > > /gustav From martyconnelly at shaw.ca Tue Sep 12 12:11:15 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 12 Sep 2006 10:11:15 -0700 Subject: [AccessD] Security Level In-Reply-To: <001d01c6d606$6e925730$153ce944@50NM721> References: <005201c6d5eb$5e380bc0$6801a8c0@HAL9005> <001d01c6d606$6e925730$153ce944@50NM721> Message-ID: <4506EA33.6090902@shaw.ca> Here is the article. You receive a "Project Is Unviewable" error message while opening a Visual Basic for Applications project in Microsoft Access http://support.microsoft.com/kb/823225/en-us The trick is reopening in Access 2003 after removing certificate. Access 2000 was one of the few Office 2000 products that didn't allow signing vba code. There is also some other trick with a timestamp to allow expired certificates to still run, if you only have a one or two year certificate this maybe a problem down the road. William Hindman wrote: >...it should but then what you've done already should have worked as well. > >...you might give this a shot first ...its from an MSKB article that I can't >find at the moment but from which I have notes in my Treepad: > >1) decompile the mdb from A2K3, recompile, save, close. >2) open the mdb in A2K3 >3) add a digital signature (use the wizard to create one first if you've not >done it before) >4) save and close the mdb >5) open the mdb in A2K3 >6) remove the digital signature >7) save and close the mdb >8) open the mdb in A2K3 (if you open it in another version first, the >digital signature will still be there) >9) save and close the mdb > >...you should now be able to create an A2K mde that will open in A2K without >the warnings. > >William Hindman > >----- Original Message ----- >From: "Beach Access Software" >To: "'Access Developers discussion and problem solving'" > >Sent: Monday, September 11, 2006 5:43 PM >Subject: Re: [AccessD] Security Level > > > > >>If I created a new mdb in A2K and imported all the objects from the other >>one, then made the mde from that, do you think that would work? >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >>Sent: Monday, September 11, 2006 12:42 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Security Level >> >>Well Access 2000 didn't have certificates for vba code. >>I think only for Word 2000 and Excel 2000. >> >>If you created an mdb in 2003 with a certificate converted to 2000 format >>and then you opened in Access 2000 and created an mde. You invalidated >>the digital >>signature by opening the file in Access 2000 and running the MDE >>conversion >>utility. To explain, you opened the MDB file in Access 2000, which >>doesn't >>support digital signatures, so slight changes were made to the file in >>order >>to successfully create the MDE file, making it "altered" from the >>original. >>If a signed file has been altered, then the digital signature becomes >>invalid. That's what digital signatures are for. >> >> >>A SelfCert digital certificate will work for medium level Macro >>Security, but not for high. >> >>Does she have the signature in the digital signature cache >>Go into IE --> Tools --> Internet Options --> Content >>There is an import option. >> >>Also check for registry keys for 9.0 (2000) >>either >> >>HKEY_Local_Machine\Software\Microsoft\Office\10.0\Access\Security\Level=1 >> >>HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level=1 >> >>Beach Access Software wrote: >> >> >> >>>Jim: >>> >>>That addresses Access 2003 and we're working in A2K ("At the High or >>>Medium >>>macro security level in Access," - that level's not available in A2K). >>> >>>So I'm looking for a workaround in A2K, and I'd prefer not to get into the >>>digital signature problem at all if possible. >>> >>>Thanks and regards, >>> >>>Rocky >>> >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >>>Sent: Monday, September 11, 2006 9:02 AM >>>To: 'Access Developers discussion and problem solving' >>>Subject: Re: [AccessD] Security Level >>> >>>Rocky, >>> >>>Here's the other way around that: >>> >>>http://office.microsoft.com/en-us/assistance/HP010446111033.aspx >>> >>>Jim. >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >>>Software >>>Sent: Monday, September 11, 2006 10:31 AM >>>To: 'Access Developers discussion and problem solving' >>>Subject: [AccessD] Security Level >>> >>>Dear List: >>> >>> >>> >>>I wrote last week about my distributor in Taiwan not being able to run an >>>mde - getting an error that the file does not have a digital signature. >>> >>> >>The >> >> >>>solution offered was, I think the correct one - Tools-->Macro-->Security, >>>and select 'Low". >>> >>> >>> >>>However, she is running W2K with A2K and does not have that option. Is >>>there a workaround for this in W2K/A2K? >>> >>> >>> >>>MTIA, >>> >>> >>> >>>Rocky >>> >>> >>> >>> >>> >>>Rocky Smolin >>> >>>Beach Access Software >>> >>>858-259-4334 >>> >>>www.e-z-mrp.com >>> >>> >>> >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>No virus found in this incoming message. >>Checked by AVG Free Edition. >>Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 >> >> >>-- >>No virus found in this outgoing message. >>Checked by AVG Free Edition. >>Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Sep 12 12:31:38 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 12 Sep 2006 10:31:38 -0700 Subject: [AccessD] Strange bug In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0100E8A2@MARLOW_MAIN2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1B0100E8A2@MARLOW_MAIN2.marlow.com> Message-ID: <4506EEFA.1070003@shaw.ca> It depends on the font used when displayed as to whether it appears as a space. There is an ascii no-break space Chr(160) or A0 Hex. And another I think around chr 253, too long since I looked at ansi.sys files. Best to look at record in a hex editor or dump string to a file. DWUTKA at marlow.com wrote: >Are you sure they are spaces, and not a strange ASCII character that looks >like a space? > >Drew > >-----Original Message----- >From: JWColby [mailto:jwcolby at colbyconsulting.com] >Sent: Monday, September 11, 2006 4:08 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Strange bug > >I have "malformed string" in a comma delimited file. The record in question >has valid data, but out in the middle of the string has > 3000 spaces and >InStr() cannot find any spaces out in the area of the string where these >3000 spaces reside. > >I'm baffled. > >I need to find this string (in a 3 million line file) and not copy just that >line, but I can't sense the line. > >Weird. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > > > -- Marty Connelly Victoria, B.C. Canada From tuxedoman888 at gmail.com Tue Sep 12 13:18:48 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 12 Sep 2006 11:18:48 -0700 Subject: [AccessD] copying worksheets Message-ID: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> Hello: >From Access, I'm trying to make a copy of a worksheet within an instance of Excel that is created at runtime in VBA. xlsheet.copy after:=activesheet However, I get the following error message. Run-time error '5' Invalid procedure call or argument Any ideas? Many thanks in advance, Billy -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From Jim.Hale at FleetPride.com Tue Sep 12 13:37:35 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 12 Sep 2006 13:37:35 -0500 Subject: [AccessD] copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF5F@corp-es01.fleetpride.com> I think you need to use worksheets, not worksheet, ie appexcel.Worksheets(7).Copy After:=Worksheets(3) HTH Jim Hale -----Original Message----- From: Billy Pang [mailto:tuxedoman888 at gmail.com] Sent: Tuesday, September 12, 2006 1:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] copying worksheets Hello: >From Access, I'm trying to make a copy of a worksheet within an instance of Excel that is created at runtime in VBA. xlsheet.copy after:=activesheet However, I get the following error message. Run-time error '5' Invalid procedure call or argument Any ideas? Many thanks in advance, Billy -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From tuxedoman888 at gmail.com Tue Sep 12 13:50:59 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 12 Sep 2006 11:50:59 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF5F@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF5F@corp-es01.fleetpride.com> Message-ID: <7c8826480609121150s35e42c7as2816da7c43438a64@mail.gmail.com> Thanks Jim. I tried it but I get the same error message. Billy On 9/12/06, Hale, Jim wrote: > > I think you need to use worksheets, not worksheet, ie > appexcel.Worksheets(7).Copy After:=Worksheets(3) > HTH > Jim Hale > > > -----Original Message----- > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > Sent: Tuesday, September 12, 2006 1:19 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] copying worksheets > > > Hello: > > >From Access, I'm trying to make a copy of a worksheet within an instance > of > Excel that is created at runtime in VBA. > > xlsheet.copy after:=activesheet > > However, I get the following error message. > > Run-time error '5' > > Invalid procedure call or argument > Any ideas? > > Many thanks in advance, > Billy > > -- > Billy Pang > http://dbnotes.blogspot.com/ > "Once the game is over, the King and the pawn go back in the same box." - > Italian proverb > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From martyconnelly at shaw.ca Tue Sep 12 14:24:55 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 12 Sep 2006 12:24:55 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> Message-ID: <45070987.3030309@shaw.ca> Use the Object Browser Luke! There is more than one copy method or it maybe you haven't set the activesheet in your method Sub CopyAndName() ' This creates a new sheet, ' copies the data from the first sheet, Dim sName As String, sht1 As Worksheet, sht2 As Worksheet Set sht1 = ActiveSheet Set sht2 = Worksheets.Add(after:=ActiveSheet) sht2.Name = "MyNewName " sht1.UsedRange.Copy Destination:=sht2.Range("A1") End Sub Billy Pang wrote: >Hello: > >>From Access, I'm trying to make a copy of a worksheet within an instance of >Excel that is created at runtime in VBA. > >xlsheet.copy after:=activesheet > >However, I get the following error message. > >Run-time error '5' > >Invalid procedure call or argument >Any ideas? > >Many thanks in advance, >Billy > > > -- Marty Connelly Victoria, B.C. Canada From Jim.Hale at FleetPride.com Tue Sep 12 14:28:26 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 12 Sep 2006 14:28:26 -0500 Subject: [AccessD] copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF61@corp-es01.fleetpride.com> you are using the worksheets object and not the worksheet object and you still get the error? Are you sure the workbook is not protected? Jim Hale -----Original Message----- From: Billy Pang [mailto:tuxedoman888 at gmail.com] Sent: Tuesday, September 12, 2006 1:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] copying worksheets Thanks Jim. I tried it but I get the same error message. Billy On 9/12/06, Hale, Jim wrote: > > I think you need to use worksheets, not worksheet, ie > appexcel.Worksheets(7).Copy After:=Worksheets(3) > HTH > Jim Hale > > > -----Original Message----- > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > Sent: Tuesday, September 12, 2006 1:19 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] copying worksheets > > > Hello: > > >From Access, I'm trying to make a copy of a worksheet within an instance > of > Excel that is created at runtime in VBA. > > xlsheet.copy after:=activesheet > > However, I get the following error message. > > Run-time error '5' > > Invalid procedure call or argument > Any ideas? > > Many thanks in advance, > Billy > > -- > Billy Pang > http://dbnotes.blogspot.com/ > "Once the game is over, the King and the pawn go back in the same box." - > Italian proverb > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From tuxedoman888 at gmail.com Tue Sep 12 16:40:20 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 12 Sep 2006 14:40:20 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <45070987.3030309@shaw.ca> References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> <45070987.3030309@shaw.ca> Message-ID: <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> Thanks Marty and may the force be with you. I tried the different copy method but I still get the same result (error message). However, I noticed that the excel app still exists after I destroyed it. That is... Dim xlApp As Excel.Application Set xlApp = CreateObject("Excel.Application") some code for adding data to the the worksheet some code for copying the worksheet xlApp.Quit Set xlApp = Nothing (that is, after stepping through set xlApp = nothing, I can still see Excel.exe in my windows task manager) However, if I remove the code that copies the worksheet, excel.exe is properly removed after set xlApp = nothing. Billy On 9/12/06, MartyConnelly wrote: > > Use the Object Browser Luke! > There is more than one copy method > or it maybe you haven't set the activesheet > in your method > > Sub CopyAndName() > ' This creates a new sheet, > ' copies the data from the first sheet, > > Dim sName As String, sht1 As Worksheet, sht2 As Worksheet > Set sht1 = ActiveSheet > Set sht2 = Worksheets.Add(after:=ActiveSheet) > sht2.Name = "MyNewName " > sht1.UsedRange.Copy Destination:=sht2.Range("A1") > End Sub > > > Billy Pang wrote: > > >Hello: > > > >>From Access, I'm trying to make a copy of a worksheet within an instance > of > >Excel that is created at runtime in VBA. > > > >xlsheet.copy after:=activesheet > > > >However, I get the following error message. > > > >Run-time error '5' > > > >Invalid procedure call or argument > >Any ideas? > > > >Many thanks in advance, > >Billy > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From tuxedoman888 at gmail.com Tue Sep 12 16:42:14 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 12 Sep 2006 14:42:14 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF61@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF61@corp-es01.fleetpride.com> Message-ID: <7c8826480609121442k4dbe0ca1t64070cc8839abb71@mail.gmail.com> Yes, I tried the worksheets property but same result (error message). Also, I ensured that the worksheet is not protected. On 9/12/06, Hale, Jim wrote: > > you are using the worksheets object and not the worksheet object and you > still get the error? Are you sure the workbook is not protected? > Jim Hale > > -----Original Message----- > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > Sent: Tuesday, September 12, 2006 1:51 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] copying worksheets > > > Thanks Jim. > > I tried it but I get the same error message. > > Billy > > > On 9/12/06, Hale, Jim wrote: > > > > I think you need to use worksheets, not worksheet, ie > > appexcel.Worksheets(7).Copy After:=Worksheets(3) > > HTH > > Jim Hale > > > > > > -----Original Message----- > > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > > Sent: Tuesday, September 12, 2006 1:19 PM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] copying worksheets > > > > > > Hello: > > > > >From Access, I'm trying to make a copy of a worksheet within an > instance > > of > > Excel that is created at runtime in VBA. > > > > xlsheet.copy after:=activesheet > > > > However, I get the following error message. > > > > Run-time error '5' > > > > Invalid procedure call or argument > > Any ideas? > > > > Many thanks in advance, > > Billy > > > > -- > > Billy Pang > > http://dbnotes.blogspot.com/ > > "Once the game is over, the King and the pawn go back in the same box." > - > > Italian proverb > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > *********************************************************************** > > The information transmitted is intended solely for the individual or > > entity to which it is addressed and may contain confidential and/or > > privileged material. Any review, retransmission, dissemination or > > other use of or taking action in reliance upon this information by > > persons or entities other than the intended recipient is prohibited. > > If you have received this email in error please contact the sender and > > delete the material from any computer. As a recipient of this email, > > you are responsible for screening its contents and the contents of any > > attachments for the presence of viruses. No liability is accepted for > > any damages caused by any virus transmitted by this email. > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > Billy Pang > http://dbnotes.blogspot.com/ > "Once the game is over, the King and the pawn go back in the same box." - > Italian proverb > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From david.gray at tpg.com.au Tue Sep 12 17:37:18 2006 From: david.gray at tpg.com.au (David Gray) Date: Wed, 13 Sep 2006 08:37:18 +1000 Subject: [AccessD] Append properties to a new field Message-ID: <000201c6d6bc$02171260$0101a8c0@server> Hi, Would anyone have some code to create properties for a newly created field in a table def using DAO. My code allows me to create properties for an existing field but if i try to test for the existence of a property in the newly created and appended field my error handler which will handle error 3270 'Property not found' stops working and I get the error message error 3270 'Property not found'. I am refreshing the Fields collection after appending the field. Thanks in advance David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software ? From darrend at nimble.com.au Tue Sep 12 18:11:06 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 13 Sep 2006 09:11:06 +1000 Subject: [AccessD] A2003: Replace the Hash Character Message-ID: <20060912231109.QWUU11832.omta05sl.mx.bigpond.com@DENZILLAP> Hi All I am trying to replace the # character in a table I have about 3 hundred records and one of the fields in that 300 or so records has data in it similar to #123-ABC I want to Find and Replace the # with nothing so the data in the fields looks like 123-ABC When I do open the table and Use find and replace and use # as the searchable item it actually finds all the numbers EG 3 4 6 etc in each record Not the actual character I have tried '#' and "#" in my search field - no joy Anyone know how to do a find and replace on the actual character # not on numbers? MTIA Darren From DWUTKA at marlow.com Tue Sep 12 18:15:36 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 12 Sep 2006 18:15:36 -0500 Subject: [AccessD] A2003: Replace the Hash Character Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0100EA46@MARLOW_MAIN2.marlow.com> In your query, let's say the field's name is 'DataField'. Create an update table, and put the following as the UpdateTo portion: Replace([DataField],"#","") That will remove all the number sign characters. Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Tuesday, September 12, 2006 6:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Replace the Hash Character Hi All I am trying to replace the # character in a table I have about 3 hundred records and one of the fields in that 300 or so records has data in it similar to #123-ABC I want to Find and Replace the # with nothing so the data in the fields looks like 123-ABC When I do open the table and Use find and replace and use # as the searchable item it actually finds all the numbers EG 3 4 6 etc in each record Not the actual character I have tried '#' and "#" in my search field - no joy Anyone know how to do a find and replace on the actual character # not on numbers? MTIA Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Sep 12 18:43:53 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 12 Sep 2006 16:43:53 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> <45070987.3030309@shaw.ca> <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> Message-ID: <45074639.4080307@shaw.ca> Let's see the intermediate code. Billy Pang wrote: >Thanks Marty and may the force be with you. I tried the different >copy method but I still get the same result (error message). >However, I noticed that the excel app still exists after I destroyed it. >That is... > > Dim xlApp As Excel.Application > Set xlApp = CreateObject("Excel.Application") > > some code for adding data to the the worksheet > some code for copying the worksheet > xlApp.Quit > Set xlApp = Nothing > >(that is, after stepping through set xlApp = nothing, I can still see >Excel.exe in my windows task manager) > >However, if I remove the code that copies the worksheet, excel.exe is >properly removed after set xlApp = nothing. > >Billy > >On 9/12/06, MartyConnelly wrote: > > >>Use the Object Browser Luke! >>There is more than one copy method >>or it maybe you haven't set the activesheet >>in your method >> >>Sub CopyAndName() >>' This creates a new sheet, >>' copies the data from the first sheet, >> >>Dim sName As String, sht1 As Worksheet, sht2 As Worksheet >>Set sht1 = ActiveSheet >>Set sht2 = Worksheets.Add(after:=ActiveSheet) >>sht2.Name = "MyNewName " >>sht1.UsedRange.Copy Destination:=sht2.Range("A1") >>End Sub >> >> >>Billy Pang wrote: >> >> >> >>>Hello: >>> >>>>From Access, I'm trying to make a copy of a worksheet within an instance >>> >>> >>of >> >> >>>Excel that is created at runtime in VBA. >>> >>>xlsheet.copy after:=activesheet >>> >>>However, I get the following error message. >>> >>>Run-time error '5' >>> >>>Invalid procedure call or argument >>>Any ideas? >>> >>>Many thanks in advance, >>>Billy >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > > > -- Marty Connelly Victoria, B.C. Canada From darrend at nimble.com.au Tue Sep 12 19:01:07 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 13 Sep 2006 10:01:07 +1000 Subject: [AccessD] A2003: Replace the Hash Character In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0100EA46@MARLOW_MAIN2.marlow.com> Message-ID: <20060913000111.KYOX3131.omta04sl.mx.bigpond.com@DENZILLAP> Excellent Worked like a charm Many thanks Darren ------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Wednesday, 13 September 2006 9:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A2003: Replace the Hash Character In your query, let's say the field's name is 'DataField'. Create an update table, and put the following as the UpdateTo portion: Replace([DataField],"#","") That will remove all the number sign characters. Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Tuesday, September 12, 2006 6:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Replace the Hash Character Hi All I am trying to replace the # character in a table I have about 3 hundred records and one of the fields in that 300 or so records has data in it similar to #123-ABC I want to Find and Replace the # with nothing so the data in the fields looks like 123-ABC When I do open the table and Use find and replace and use # as the searchable item it actually finds all the numbers EG 3 4 6 etc in each record Not the actual character I have tried '#' and "#" in my search field - no joy Anyone know how to do a find and replace on the actual character # not on numbers? MTIA Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Sep 12 20:02:57 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 12 Sep 2006 18:02:57 -0700 Subject: [AccessD] Append properties to a new field In-Reply-To: <000201c6d6bc$02171260$0101a8c0@server> Message-ID: You have to trap the error and add the property for that field when the error is thrown. There used to be code in the help file showing you how to create a property that included the handling for trapping the error. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Gray Sent: Tuesday, September 12, 2006 3:37 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Append properties to a new field Hi, Would anyone have some code to create properties for a newly created field in a table def using DAO. My code allows me to create properties for an existing field but if i try to test for the existence of a property in the newly created and appended field my error handler which will handle error 3270 'Property not found' stops working and I get the error message error 3270 'Property not found'. I am refreshing the Fields collection after appending the field. Thanks in advance David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From david.gray at tpg.com.au Tue Sep 12 20:47:54 2006 From: david.gray at tpg.com.au (David Gray) Date: Wed, 13 Sep 2006 11:47:54 +1000 Subject: [AccessD] Append properties to a new field In-Reply-To: Message-ID: <000401c6d6d6$a2351110$0101a8c0@server> Hi Charlotte, Thanks for replying. Yes my code traps the 3270 'Property not found' error succesfully while adding properties for existing fields but if I add a new field and then try to add properties to that field my error trap is ignored and I get a standard error message. The same thing happens if I try to add a second field. David Gray -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, 13 September 2006 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Append properties to a new field You have to trap the error and add the property for that field when the error is thrown. There used to be code in the help file showing you how to create a property that included the handling for trapping the error. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Gray Sent: Tuesday, September 12, 2006 3:37 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Append properties to a new field Hi, Would anyone have some code to create properties for a newly created field in a table def using DAO. My code allows me to create properties for an existing field but if i try to test for the existence of a property in the newly created and appended field my error handler which will handle error 3270 'Property not found' stops working and I get the error message error 3270 'Property not found'. I am refreshing the Fields collection after appending the field. Thanks in advance David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Sep 13 02:13:32 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 13 Sep 2006 08:13:32 +0100 Subject: [AccessD] Append properties to a new field In-Reply-To: <000201c6d6bc$02171260$0101a8c0@server> Message-ID: <01ee01c6d704$22689c80$943c70c3@minster33c3r25> David, Broadly speaking it's like this (lifted from the Backend Updater which you might find useful, see http://www.databaseadvisors.com/downloads.htm ) Dim tdf As DAO.TableDef Dim fld As DAO.Field Dim prp As DAO.Property Set tdf = db.TableDefs("Tablename") 'assumes db already set of course Set fld = tdf.Fields("FldName") Set prp = fld.CreateProperty("Description") prp.Type = dbText prp.Value = "This is description" fld.Properties.Append prp Set prp = Nothing Set fld = Nothing Set tdf = Nothing Set db = Nothing Cheers -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Gray > Sent: 12 September 2006 23:37 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Append properties to a new field > > > Hi, > > Would anyone have some code to create properties for a newly > created field in a table def using DAO. > > My code allows me to create properties for an existing field > but if i try to test for the existence of a property in the > newly created and appended field my error handler which will > handle error 3270 'Property not found' stops working and I > get the error message error 3270 'Property not found'. I am > refreshing the Fields collection after appending the field. > > Thanks in advance > > David Gray > 96 Springacre Rd > Thornlands QLD > Yahoo ID: flock_it_software > ? > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Gustav at cactus.dk Wed Sep 13 03:22:39 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 13 Sep 2006 10:22:39 +0200 Subject: [AccessD] MSDE and Vista, a no-no Message-ID: Hi all Did you know that MSDE is not supported on Vista? http://blogs.msdn.com/ericnel/archive/2006/07/12/663201.aspx Time to move on from MSDE to SQL Server 2005 Express MSDE is the free lightweight version of SQL Server 2000 which many ISV use as part of their overall architecture - typically for roaming users or "edge" data synch. Its limitations are that it is purely a database engine with no management tools, it has a maximum size of 2GB and it has a workload governor that seriously inhibits throughput. Thankfully we have a much better alternative - SQL Server 2005 Express: - Increased DB Size to 4GB - Removal of workload governor - Better integration with Visual Studio - Free integrated Management Tool; SQL Server Management Studio Express - SQL Server 2005 Reporting Services If you are still not convinced then perhaps there is another reason you should look at migrating. Microsoft is working hard to help customers achieve the highest levels of security. As part of this push we have made the decision to not support MSDE on Windows Vista as we believe the combination of SQL Server 2005 Express and Vista is a better choice. We therefore recommend that you begin migration planning to SQL Server 2005 Express for any applications developed using MSDE that you believe will need to run on Windows Vista. Thankfully for most applications this will be relatively straightforward and we have resources to help. This is not a decision taken lightly - but reflects the emphasis we place on making our products as secure as possible. /gustav From adtp at hotmail.com Wed Sep 13 02:37:42 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 13 Sep 2006 13:07:42 +0530 Subject: [AccessD] copying worksheets References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com><45070987.3030309@shaw.ca> <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> Message-ID: Billy, Apparently you wish to create a new excel workbook, copy some data into the first worksheet and then create a copy of this worksheet, followed by positioning of newly copied sheet at the very end. It also seems you wish to implement this job in the background, and quit excel in a clean manner. For executing jobs with hidden instance of excel, reference to active state of objects MUST BE AVOIDED. Otherwise, you might encounter error and the excel application might refuse to die, despite using explicit Quit command. Sample code as given below, carries out the jobs listed in first para, in a hidden manner and ensures clean termination of excel application, saving the workbook as Test.xls. If it is desired that the new workbook becomes available for further direct action by the user, statement (A) should be enabled, at the same time disabling statement (D). In such a situation, you do have the option of using statement (C) with ActiveSheet style, instead of statement (B), if desired. However as already stated, (B) is considered the preferred style. Best wishes, A.D.Tejpal --------------- ===================================== Sub P_NewWbCopySheet() Dim exp As Excel.Application Dim wb As Excel.Workbook Dim ws As Excel.Worksheet Set exp = New Excel.Application 'exp.Visible = True ' (A) Set wb = exp.Workbooks.Add Set ws = wb.Worksheets(1) ' (B) 'Set ws = wb.ActiveSheet ' (C) - Avoid ActiveSheet ' (See Note Below) ws.Cells(1, 1) = "ABC" ws.Copy After:=wb.Worksheets(wb.Worksheets.Count) Set ws = wb.Worksheets(wb.Worksheets.Count) ws.Name = "Ws_FreshCopy" On Error Resume Next Kill "C:\Temp\Test.xls" wb.SaveAs "C:\Temp\Test.xls" Set ws = Nothing Set wb = Nothing exp.Quit ' (D) Set exp = Nothing ' Note - (a) For background work, where Excel is ' required to do its job & then quit unseen, ' use of ActiveSheet object MUST BE ' AVOIDED. ' (b) If statement (C) is to be used in lieu of (B), ' statement (A) must be kept enabled. ' Otherwise, scope for error and the ' application may refuse to die ' (despite presence of statement (D)) End Sub ===================================== ----- Original Message ----- From: Billy Pang To: Access Developers discussion and problem solving Sent: Wednesday, September 13, 2006 03:10 Subject: Re: [AccessD] copying worksheets Thanks Marty and may the force be with you. I tried the different copy method but I still get the same result (error message). However, I noticed that the excel app still exists after I destroyed it. That is... Dim xlApp As Excel.Application Set xlApp = CreateObject("Excel.Application") some code for adding data to the the worksheet some code for copying the worksheet xlApp.Quit Set xlApp = Nothing (that is, after stepping through set xlApp = nothing, I can still see Excel.exe in my windows task manager) However, if I remove the code that copies the worksheet, excel.exe is properly removed after set xlApp = nothing. Billy On 9/12/06, MartyConnelly wrote: > > Use the Object Browser Luke! > There is more than one copy method > or it maybe you haven't set the activesheet > in your method > > Sub CopyAndName() > ' This creates a new sheet, > ' copies the data from the first sheet, > > Dim sName As String, sht1 As Worksheet, sht2 As Worksheet > Set sht1 = ActiveSheet > Set sht2 = Worksheets.Add(after:=ActiveSheet) > sht2.Name = "MyNewName " > sht1.UsedRange.Copy Destination:=sht2.Range("A1") > End Sub > > > Billy Pang wrote: > > >Hello: > > > >>From Access, I'm trying to make a copy of a worksheet within an instance > of > >Excel that is created at runtime in VBA. > > > >xlsheet.copy after:=activesheet > > > >However, I get the following error message. > > > >Run-time error '5' > > > >Invalid procedure call or argument > >Any ideas? > > > >Many thanks in advance, > >Billy From Gustav at cactus.dk Wed Sep 13 05:13:43 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 13 Sep 2006 12:13:43 +0200 Subject: [AccessD] Append properties to a new field Message-ID: Hi David Perhaps you need to refresh the Properties collection too? /gustav > .. I am refreshing the Fields collection after appending the field. From carbonnb at gmail.com Wed Sep 13 08:17:20 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 13 Sep 2006 09:17:20 -0400 Subject: [AccessD] Missing E-Mail Message-ID: Good morning, Yesterday we had a series of people that had their list subscriptions disabled due to bounces from their mail server. It turned out that Databaseadvisors.com's mail server got listed in SpamCop's Black list temporarily, which caused some accounts to be temporarily disabled. I believe that I have restored all the affected accounts. If you are chatting off-list with anyone that isn't getting list mail when they should be please have them contact me and I will make sure that their account is restored. My sincere apologies to anyone affected. Hopefully this won't happen again. If you want to catch up on the posts from yesterday to now, please goto our archives at: http://databaseadvisors.com/pipermail/accessd/2006-September/date.html Again, my sincerest apologies to all those affected. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Wed Sep 13 09:02:25 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 13 Sep 2006 10:02:25 -0400 Subject: [AccessD] Combo default value strange Message-ID: <000b01c6d73d$3f0a62e0$657aa8c0@m6805> I use a highly modified version of Julie Schwalm's date picker code. I use a combo instead of the radio button group that she used and added a bunch of new possibilities. The combo I use to select the date range I want has a row source type of "Value list" and a row source of: 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last Year;11;Last 12 Months;13;Today;16;Yesterday In my time tracking / billing database I want to open a time data entry form to filter to today. If I put a default value of 1 in the combo (the "ordinal value" for "Include all dates"), I get the correct thing, "include all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it should select "CURRENT MONTH". IOW, the integer value should select the text immediately AFTER the integer value (in the value list string), but seems to be selecting the value immediately BEFORE the integer value. Any thoughts on this? John W. Colby Colby Consulting www.ColbyConsulting.com From adtp at hotmail.com Wed Sep 13 09:30:47 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 13 Sep 2006 20:00:47 +0530 Subject: [AccessD] Open Database Method References: <20060911200015.4991.qmail@web83005.mail.mud.yahoo.com> Message-ID: Jeremy, Your subroutine, slightly modified as shown below, was tested on Access 2K as well as 2K3. There was no problem. Modifications pertain to: (a) Statement (A) - workspace qualifier has been provided. It would work even otherwise, but since you have taken the trouble of specially creating one, it has been used. (b) Spelling correction in statement (B) Note - OpenDatabase method does not open the target db. It provides a pointer, through which, you can act upon the properties & methods available to CurrentDb object in the target db. Best wishes, A.D.Tejpal --------------- Sample sub-routine ================================= Sub TestThis() Dim wrkJet As DAO.Workspace Dim db As DAO.Database Dim sDB As String sDB = "C:\Test\Test.mdb" Set wrkJet = CreateWorkspace("wrkSpace", "admin", "", dbUseJet) Set db = wrkJet.OpenDatabase(sDB, True) ' (A) Debug.Print db.Name Debug.Print db.TableDefs.Count Set db = Nothing Set wrkJet = Nothing ' (B) End Sub ================================= ----- Original Message ----- From: Jeremy Toves To: AccessD Sent: Tuesday, September 12, 2006 01:30 Subject: [AccessD] Open Database Method I hit a snag with a process I'm putting together. I'm trying to use the OpenDatabase method in an Access 2000 database to open a second Access 2000 database so that I can enumerate indices. I want to delete indices and reindex on demand from the first database. I'm getting an error that the database is an unrecognized format. I can open the 2nd database without problem if I go to it directly. Here is the code I'm using. Ideas? Has anyone done this before? Thanks, Jeremy Sub TestThis() Dim wrkJet As DAO.Workspace Dim db As DAO.Database Dim sDB As String sDB = "C:\Test\BackEnd.mdb" Set wrkJet = CreateWorkspace("wrkSpace", "admin", "", dbUseJet) Set db = OpenDatabase(sDB, True) Set db = Nothing Set wrkject = Nothing End Sub From Gustav at cactus.dk Wed Sep 13 10:17:06 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 13 Sep 2006 17:17:06 +0200 Subject: [AccessD] Combo default value strange Message-ID: Hi John What happens if you use two digits for all entries: 10;Include All Dates;12;Custom Date Range;14;Current Week;20;Current Month;30;Current Quarter;40;Current Year;50;Month To Date;60; .. or: 01;Include All Dates;12;Custom Date Range;14;Current Week;02;Current Month;03;Current Quarter;04;Current Year;05;Month To Date;06; .. /gustav >>> jwcolby at colbyconsulting.com 13-09-2006 16:02:25 >>> I use a highly modified version of Julie Schwalm's date picker code. I use a combo instead of the radio button group that she used and added a bunch of new possibilities. The combo I use to select the date range I want has a row source type of "Value list" and a row source of: 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last Year;11;Last 12 Months;13;Today;16;Yesterday In my time tracking / billing database I want to open a time data entry form to filter to today. If I put a default value of 1 in the combo (the "ordinal value" for "Include all dates"), I get the correct thing, "include all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it should select "CURRENT MONTH". IOW, the integer value should select the text immediately AFTER the integer value (in the value list string), but seems to be selecting the value immediately BEFORE the integer value. Any thoughts on this? John W. Colby Colby Consulting www.ColbyConsulting.com From Lambert.Heenan at AIG.com Wed Sep 13 10:41:01 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 13 Sep 2006 10:41:01 -0500 Subject: [AccessD] Combo default value strange Message-ID: John, Are you using code to plug in the 'ordinal value', or just setting the default value in the property sheet? When I tested this, using your value list as the data source for a combo it works exactly as you would want it to: 2 => Current Month, 3=> Current Quarter, 4 => Current Year, etc. This works whether I use the Default Value property, or run code to assign a value (in the Current Event for example). Code wise all I'm doing is "ComboControl = NumericValue". That's with a two column combo and column widths of 0";3", bound to column 1 - in other words totally standard stuff. If this is not working out for you then I'm inclined to suspect a corrupt form. Decompile? Rebuild the form? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, September 13, 2006 10:02 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo default value strange I use a highly modified version of Julie Schwalm's date picker code. I use a combo instead of the radio button group that she used and added a bunch of new possibilities. The combo I use to select the date range I want has a row source type of "Value list" and a row source of: 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last Year;11;Last 12 Months;13;Today;16;Yesterday In my time tracking / billing database I want to open a time data entry form to filter to today. If I put a default value of 1 in the combo (the "ordinal value" for "Include all dates"), I get the correct thing, "include all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it should select "CURRENT MONTH". IOW, the integer value should select the text immediately AFTER the integer value (in the value list string), but seems to be selecting the value immediately BEFORE the integer value. Any thoughts on this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 13 11:12:27 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 13 Sep 2006 12:12:27 -0400 Subject: [AccessD] Combo default value strange In-Reply-To: Message-ID: <002701c6d74f$6924b780$657aa8c0@m6805> I am setting the default value of the combo. Changing the default value of the combo changes the result seen as the form opens so I suspect that code is not modifying this at run time. The fact that it works correctly for you makes me suspicious of my form though, for sure. Thanks, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, September 13, 2006 11:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo default value strange John, Are you using code to plug in the 'ordinal value', or just setting the default value in the property sheet? When I tested this, using your value list as the data source for a combo it works exactly as you would want it to: 2 => Current Month, 3=> Current Quarter, 4 => Current Year, etc. This works whether I use the Default Value property, or run code to assign a value (in the Current Event for example). Code wise all I'm doing is "ComboControl = NumericValue". That's with a two column combo and column widths of 0";3", bound to column 1 - in other words totally standard stuff. If this is not working out for you then I'm inclined to suspect a corrupt form. Decompile? Rebuild the form? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, September 13, 2006 10:02 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo default value strange I use a highly modified version of Julie Schwalm's date picker code. I use a combo instead of the radio button group that she used and added a bunch of new possibilities. The combo I use to select the date range I want has a row source type of "Value list" and a row source of: 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last Year;11;Last 12 Months;13;Today;16;Yesterday In my time tracking / billing database I want to open a time data entry form to filter to today. If I put a default value of 1 in the combo (the "ordinal value" for "Include all dates"), I get the correct thing, "include all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it should select "CURRENT MONTH". IOW, the integer value should select the text immediately AFTER the integer value (in the value list string), but seems to be selecting the value immediately BEFORE the integer value. Any thoughts on this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 13 12:25:38 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 13 Sep 2006 10:25:38 -0700 Subject: [AccessD] Missing E-Mail In-Reply-To: Message-ID: <0J5J00NI4KDU0H40@l-daemon> Hi Bryan: Thank you for taking care of that. Great work to find the problem so soon. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, September 13, 2006 6:17 AM To: Access Developers discussion and problem solving Subject: [AccessD] Missing E-Mail Good morning, Yesterday we had a series of people that had their list subscriptions disabled due to bounces from their mail server. It turned out that Databaseadvisors.com's mail server got listed in SpamCop's Black list temporarily, which caused some accounts to be temporarily disabled. I believe that I have restored all the affected accounts. If you are chatting off-list with anyone that isn't getting list mail when they should be please have them contact me and I will make sure that their account is restored. My sincere apologies to anyone affected. Hopefully this won't happen again. If you want to catch up on the posts from yesterday to now, please goto our archives at: http://databaseadvisors.com/pipermail/accessd/2006-September/date.html Again, my sincerest apologies to all those affected. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tuxedoman888 at gmail.com Wed Sep 13 13:53:17 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 11:53:17 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <45074639.4080307@shaw.ca> References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> <45070987.3030309@shaw.ca> <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> <45074639.4080307@shaw.ca> Message-ID: <7c8826480609131153w3ea08d83k936fb3f852b33910@mail.gmail.com> ok.. here is it. what this does is it creates a brand new excel workbook, write something to sheet2 and then make copy of sheet2. what i have noticed is that when copy sheet2 code is there, the xlApp object is indestructible! (ie. cannot be destroyed; like superman). you can still see that excel.exe still exists in windows task manager after execution. xlapp survived the set xlApp=nothing onslaught. however, if you comment out the copy sheet2 code, xlApp can be destroyed. the kryponite. Public Function fCopyYoWorksheet() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Debug.Print "starting..." Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Add Set xlSheet = xlBook.Worksheets("Sheet2") xlSheet.Range("B2").Value = "Yo! numbers" xlSheet.Copy after:=Worksheets("Sheet1") xlBook.Close ' it will prompt you to save Set xlBook = Nothing xlApp.Quit Set xlApp = Nothing Debug.Print "finished!" End Function On 9/12/06, MartyConnelly wrote: > > Let's see the intermediate code. > > Billy Pang wrote: > > >Thanks Marty and may the force be with you. I tried the different > >copy method but I still get the same result (error message). > >However, I noticed that the excel app still exists after I destroyed it. > >That is... > > > > Dim xlApp As Excel.Application > > Set xlApp = CreateObject("Excel.Application") > > > > some code for adding data to the the worksheet > > some code for copying the worksheet > > xlApp.Quit > > Set xlApp = Nothing > > > >(that is, after stepping through set xlApp = nothing, I can still see > >Excel.exe in my windows task manager) > > > >However, if I remove the code that copies the worksheet, excel.exe is > >properly removed after set xlApp = nothing. > > > >Billy > > > >On 9/12/06, MartyConnelly wrote: > > > > > >>Use the Object Browser Luke! > >>There is more than one copy method > >>or it maybe you haven't set the activesheet > >>in your method > >> > >>Sub CopyAndName() > >>' This creates a new sheet, > >>' copies the data from the first sheet, > >> > >>Dim sName As String, sht1 As Worksheet, sht2 As Worksheet > >>Set sht1 = ActiveSheet > >>Set sht2 = Worksheets.Add(after:=ActiveSheet) > >>sht2.Name = "MyNewName " > >>sht1.UsedRange.Copy Destination:=sht2.Range("A1") > >>End Sub > >> > >> > >>Billy Pang wrote: > >> > >> > >> > >>>Hello: > >>> > >>>>From Access, I'm trying to make a copy of a worksheet within an > instance > >>> > >>> > >>of > >> > >> > >>>Excel that is created at runtime in VBA. > >>> > >>>xlsheet.copy after:=activesheet > >>> > >>>However, I get the following error message. > >>> > >>>Run-time error '5' > >>> > >>>Invalid procedure call or argument > >>>Any ideas? > >>> > >>>Many thanks in advance, > >>>Billy > >>> > >>> > >>> > >>> > >>> > >>-- > >>Marty Connelly > >>Victoria, B.C. > >>Canada > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > >> > >> > >> > > > > > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From Jim.Hale at FleetPride.com Wed Sep 13 14:02:50 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 13 Sep 2006 14:02:50 -0500 Subject: [AccessD] copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF71@corp-es01.fleetpride.com> you need to set xlSheet to nothing as well. I have found that all variable objects (excel related or not) need to be set to nothing or more often than not excel will stay in memory. Jim Hale -----Original Message----- From: Billy Pang [mailto:tuxedoman888 at gmail.com] Sent: Wednesday, September 13, 2006 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] copying worksheets ok.. here is it. what this does is it creates a brand new excel workbook, write something to sheet2 and then make copy of sheet2. what i have noticed is that when copy sheet2 code is there, the xlApp object is indestructible! (ie. cannot be destroyed; like superman). you can still see that excel.exe still exists in windows task manager after execution. xlapp survived the set xlApp=nothing onslaught. however, if you comment out the copy sheet2 code, xlApp can be destroyed. the kryponite. Public Function fCopyYoWorksheet() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Debug.Print "starting..." Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Add Set xlSheet = xlBook.Worksheets("Sheet2") xlSheet.Range("B2").Value = "Yo! numbers" xlSheet.Copy after:=Worksheets("Sheet1") xlBook.Close ' it will prompt you to save Set xlBook = Nothing xlApp.Quit Set xlApp = Nothing Debug.Print "finished!" End Function *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From tuxedoman888 at gmail.com Wed Sep 13 14:04:11 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 12:04:11 -0700 Subject: [AccessD] copying worksheets In-Reply-To: References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> <45070987.3030309@shaw.ca> <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> Message-ID: <7c8826480609131204p7c7d78f1seb5bbfed85c51eeb@mail.gmail.com> Thanks A.D. My original code did included the activesheet reference (only because it was easier to write) so I rewrote the code but it appears that excel application still refuses to die. I have also noticed that this phenomenon also occurs when I (via automation) create a new excel application and do nothing but insert a new worksheet from a second excel template (eg. Sheets.Add Type:="C:\myTemplate.xlt"). Billy On 9/13/06, A.D.TEJPAL wrote: > > Billy, > > Apparently you wish to create a new excel workbook, copy some data into > the first worksheet and then create a copy of this worksheet, followed by > positioning of newly copied sheet at the very end. It also seems you wish to > implement this job in the background, and quit excel in a clean manner. > > For executing jobs with hidden instance of excel, reference to active > state of objects MUST BE AVOIDED. Otherwise, you might encounter error and > the excel application might refuse to die, despite using explicit Quit > command. > > Sample code as given below, carries out the jobs listed in first para, > in a hidden manner and ensures clean termination of excel application, > saving the workbook as Test.xls. > > If it is desired that the new workbook becomes available for further > direct action by the user, statement (A) should be enabled, at the same time > disabling statement (D). In such a situation, you do have the option of > using statement (C) with ActiveSheet style, instead of statement (B), if > desired. However as already stated, (B) is considered the preferred style. > > Best wishes, > A.D.Tejpal > --------------- > > ===================================== > Sub P_NewWbCopySheet() > Dim exp As Excel.Application > Dim wb As Excel.Workbook > Dim ws As Excel.Worksheet > > Set exp = New Excel.Application > 'exp.Visible = True ' (A) > Set wb = exp.Workbooks.Add > > Set ws = wb.Worksheets(1) ' (B) > 'Set ws = wb.ActiveSheet ' (C) - Avoid ActiveSheet > ' (See Note > Below) > ws.Cells(1, 1) = "ABC" > > ws.Copy After:=wb.Worksheets(wb.Worksheets.Count) > Set ws = wb.Worksheets(wb.Worksheets.Count) > ws.Name = "Ws_FreshCopy" > > On Error Resume Next > Kill "C:\Temp\Test.xls" > wb.SaveAs "C:\Temp\Test.xls" > > Set ws = Nothing > Set wb = Nothing > exp.Quit ' (D) > Set exp = Nothing > > ' Note - (a) For background work, where Excel is > ' required to do its job & then quit unseen, > ' use of ActiveSheet object MUST BE > ' AVOIDED. > ' (b) If statement (C) is to be used in lieu of (B), > ' statement (A) must be kept enabled. > ' Otherwise, scope for error and the > ' application may refuse to die > ' (despite presence of statement (D)) > End Sub > ===================================== > > ----- Original Message ----- > From: Billy Pang > To: Access Developers discussion and problem solving > Sent: Wednesday, September 13, 2006 03:10 > Subject: Re: [AccessD] copying worksheets > > > Thanks Marty and may the force be with you. I tried the different > copy method but I still get the same result (error message). > However, I noticed that the excel app still exists after I destroyed it. > That is... > > Dim xlApp As Excel.Application > Set xlApp = CreateObject("Excel.Application") > > some code for adding data to the the worksheet > some code for copying the worksheet > xlApp.Quit > Set xlApp = Nothing > > (that is, after stepping through set xlApp = nothing, I can still see > Excel.exe in my windows task manager) > > However, if I remove the code that copies the worksheet, excel.exe is > properly removed after set xlApp = nothing. > > Billy > > On 9/12/06, MartyConnelly wrote: > > > > Use the Object Browser Luke! > > There is more than one copy method > > or it maybe you haven't set the activesheet > > in your method > > > > Sub CopyAndName() > > ' This creates a new sheet, > > ' copies the data from the first sheet, > > > > Dim sName As String, sht1 As Worksheet, sht2 As Worksheet > > Set sht1 = ActiveSheet > > Set sht2 = Worksheets.Add(after:=ActiveSheet) > > sht2.Name = "MyNewName " > > sht1.UsedRange.Copy Destination:=sht2.Range("A1") > > End Sub > > > > > > Billy Pang wrote: > > > > >Hello: > > > > > >>From Access, I'm trying to make a copy of a worksheet within an > instance > > of > > >Excel that is created at runtime in VBA. > > > > > >xlsheet.copy after:=activesheet > > > > > >However, I get the following error message. > > > > > >Run-time error '5' > > > > > >Invalid procedure call or argument > > >Any ideas? > > > > > >Many thanks in advance, > > >Billy > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From tuxedoman888 at gmail.com Wed Sep 13 14:05:41 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 12:05:41 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <7c8826480609131153w3ea08d83k936fb3f852b33910@mail.gmail.com> References: <7c8826480609121118i143be648w6aa8b89f08eafcc6@mail.gmail.com> <45070987.3030309@shaw.ca> <7c8826480609121440n1bcbe168vafc30a5c771310dc@mail.gmail.com> <45074639.4080307@shaw.ca> <7c8826480609131153w3ea08d83k936fb3f852b33910@mail.gmail.com> Message-ID: <7c8826480609131205x3a9fd393l867bbe9640e1b8cb@mail.gmail.com> err... kryptonite, not kryponite. On 9/13/06, Billy Pang wrote: > > ok.. here is it. what this does is it creates a brand new excel > workbook, write something to sheet2 and then make copy of sheet2. > > what i have noticed is that when copy sheet2 code is there, the xlApp > object is indestructible! (ie. cannot be destroyed; like superman). you can > still see that excel.exe still exists in windows task manager after > execution. xlapp survived the set xlApp=nothing onslaught. > > however, if you comment out the copy sheet2 code, xlApp can be destroyed. > the kryponite. > > Public Function fCopyYoWorksheet() > > Dim xlApp As Excel.Application > Dim xlBook As Excel.Workbook > Dim xlSheet As Excel.Worksheet > > Debug.Print "starting..." > > Set xlApp = CreateObject("Excel.Application") > Set xlBook = xlApp.Workbooks.Add > Set xlSheet = xlBook.Worksheets("Sheet2") > xlSheet.Range("B2").Value = "Yo! numbers" > xlSheet.Copy after:=Worksheets("Sheet1") > xlBook.Close ' it will prompt you to save > Set xlBook = Nothing > > xlApp.Quit > Set xlApp = Nothing > > Debug.Print "finished!" > > End Function > > > > > On 9/12/06, MartyConnelly wrote: > > > > Let's see the intermediate code. > > > > Billy Pang wrote: > > > > >Thanks Marty and may the force be with you. I tried the different > > >copy method but I still get the same result (error message). > > >However, I noticed that the excel app still exists after I destroyed > > it. > > >That is... > > > > > > Dim xlApp As Excel.Application > > > Set xlApp = CreateObject("Excel.Application") > > > > > > some code for adding data to the the worksheet > > > some code for copying the worksheet > > > xlApp.Quit > > > Set xlApp = Nothing > > > > > >(that is, after stepping through set xlApp = nothing, I can still see > > >Excel.exe in my windows task manager) > > > > > >However, if I remove the code that copies the worksheet, excel.exe is > > >properly removed after set xlApp = nothing. > > > > > >Billy > > > > > >On 9/12/06, MartyConnelly wrote: > > > > > > > > >>Use the Object Browser Luke! > > >>There is more than one copy method > > >>or it maybe you haven't set the activesheet > > >>in your method > > >> > > >>Sub CopyAndName() > > >>' This creates a new sheet, > > >>' copies the data from the first sheet, > > >> > > >>Dim sName As String, sht1 As Worksheet, sht2 As Worksheet > > >>Set sht1 = ActiveSheet > > >>Set sht2 = Worksheets.Add(after:=ActiveSheet) > > >>sht2.Name = "MyNewName " > > >>sht1.UsedRange.Copy Destination:=sht2.Range("A1") > > >>End Sub > > >> > > >> > > >>Billy Pang wrote: > > >> > > >> > > >> > > >>>Hello: > > >>> > > >>>>From Access, I'm trying to make a copy of a worksheet within an > > instance > > >>> > > >>> > > >>of > > >> > > >> > > >>>Excel that is created at runtime in VBA. > > >>> > > >>>xlsheet.copy after:=activesheet > > >>> > > >>>However, I get the following error message. > > >>> > > >>>Run-time error '5' > > >>> > > >>>Invalid procedure call or argument > > >>>Any ideas? > > >>> > > >>>Many thanks in advance, > > >>>Billy > > >>> > > >>> > > >>> > > >>> > > >>> > > >>-- > > >>Marty Connelly > > >>Victoria, B.C. > > >>Canada > > >> > > >>-- > > >>AccessD mailing list > > >>AccessD at databaseadvisors.com > > >> http://databaseadvisors.com/mailman/listinfo/accessd > > >>Website: http://www.databaseadvisors.com > > >> > > >> > > >> > > > > > > > > > > > > > > > > > > > -- > > Marty Connelly > > Victoria, B.C. > > Canada > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > Billy Pang > http://dbnotes.blogspot.com/ > "Once the game is over, the King and the pawn go back in the same box." - > Italian proverb > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From tuxedoman888 at gmail.com Wed Sep 13 14:10:30 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 12:10:30 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF71@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF71@corp-es01.fleetpride.com> Message-ID: <7c8826480609131210rb00a9b5kd8634c5ccf91a690@mail.gmail.com> Thanks Jim. ah yes. forgot to put that in an email but it was in my original code. however, excel.exe still exists even with Set xlSheet = Nothing when copying the worksheet. On 9/13/06, Hale, Jim wrote: > > you need to set xlSheet to nothing as well. I have found that all variable > objects (excel related or not) need to be set to nothing or more often > than > not excel will stay in memory. > Jim Hale > > -----Original Message----- > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > Sent: Wednesday, September 13, 2006 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] copying worksheets > > > ok.. here is it. what this does is it creates a brand new excel workbook, > write something to sheet2 and then make copy of sheet2. > > what i have noticed is that when copy sheet2 code is there, the xlApp > object > is indestructible! (ie. cannot be destroyed; like superman). you can > still > see that excel.exe still exists in windows task manager after execution. > xlapp survived the set xlApp=nothing onslaught. > > however, if you comment out the copy sheet2 code, xlApp can be destroyed. > the kryponite. > > Public Function fCopyYoWorksheet() > > Dim xlApp As Excel.Application > Dim xlBook As Excel.Workbook > Dim xlSheet As Excel.Worksheet > > Debug.Print "starting..." > Set xlApp = CreateObject("Excel.Application") > Set xlBook = xlApp.Workbooks.Add > Set xlSheet = xlBook.Worksheets("Sheet2") > xlSheet.Range("B2").Value = "Yo! numbers" > xlSheet.Copy after:=Worksheets("Sheet1") > xlBook.Close ' it will prompt you to save > Set xlBook = Nothing > xlApp.Quit > Set xlApp = Nothing > > Debug.Print "finished!" > > End Function > > > > > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From tuxedoman888 at gmail.com Wed Sep 13 14:23:35 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 12:23:35 -0700 Subject: [AccessD] Combo default value strange In-Reply-To: <000b01c6d73d$3f0a62e0$657aa8c0@m6805> References: <000b01c6d73d$3f0a62e0$657aa8c0@m6805> Message-ID: <7c8826480609131223m5a18ee31xb3510dabe120d20@mail.gmail.com> what happens if we rearrange the values in the value list? does it still come up as "current week"? On 9/13/06, JWColby wrote: > > I use a highly modified version of Julie Schwalm's date picker code. I > use > a combo instead of the radio button group that she used and added a bunch > of > new possibilities. The combo I use to select the date range I want has a > row source type of "Value list" and a row source of: > > 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current > Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To > Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last > Year;11;Last 12 Months;13;Today;16;Yesterday > > In my time tracking / billing database I want to open a time data entry > form > to filter to today. If I put a default value of 1 in the combo (the > "ordinal value" for "Include all dates"), I get the correct thing, > "include > all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it > should select "CURRENT MONTH". IOW, the integer value should select the > text immediately AFTER the integer value (in the value list string), but > seems to be selecting the value immediately BEFORE the integer value. > > Any thoughts on this? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From Jim.Hale at FleetPride.com Wed Sep 13 14:29:17 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 13 Sep 2006 14:29:17 -0500 Subject: [AccessD] copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF72@corp-es01.fleetpride.com> use xlSheet.Copy after:=xlApp.Worksheets("Sheet1") This is one of my pet hair pullers- Excel hates to give up being the center of attention. Explicit referencing as shown above should solve the problem. Jim Hale -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Wednesday, September 13, 2006 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] copying worksheets you need to set xlSheet to nothing as well. I have found that all variable objects (excel related or not) need to be set to nothing or more often than not excel will stay in memory. Jim Hale -----Original Message----- From: Billy Pang [mailto:tuxedoman888 at gmail.com] Sent: Wednesday, September 13, 2006 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] copying worksheets ok.. here is it. what this does is it creates a brand new excel workbook, write something to sheet2 and then make copy of sheet2. what i have noticed is that when copy sheet2 code is there, the xlApp object is indestructible! (ie. cannot be destroyed; like superman). you can still see that excel.exe still exists in windows task manager after execution. xlapp survived the set xlApp=nothing onslaught. however, if you comment out the copy sheet2 code, xlApp can be destroyed. the kryponite. Public Function fCopyYoWorksheet() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Debug.Print "starting..." Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Add Set xlSheet = xlBook.Worksheets("Sheet2") xlSheet.Range("B2").Value = "Yo! numbers" xlSheet.Copy after:=Worksheets("Sheet1") xlBook.Close ' it will prompt you to save Set xlBook = Nothing xlApp.Quit Set xlApp = Nothing Debug.Print "finished!" End Function *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From tuxedoman888 at gmail.com Wed Sep 13 14:49:16 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 13 Sep 2006 12:49:16 -0700 Subject: [AccessD] copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF72@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF72@corp-es01.fleetpride.com> Message-ID: <7c8826480609131249x13f9e131y2f0fb2a23d430453@mail.gmail.com> Sweet! that did it! Thanks Jim! Billy On 9/13/06, Hale, Jim wrote: > > use xlSheet.Copy after:=xlApp.Worksheets("Sheet1") > This is one of my pet hair pullers- Excel hates to give up being the > center > of attention. Explicit referencing as shown above should solve the > problem. > Jim Hale > > -----Original Message----- > From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] > Sent: Wednesday, September 13, 2006 2:03 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] copying worksheets > > > you need to set xlSheet to nothing as well. I have found that all variable > objects (excel related or not) need to be set to nothing or more often > than > not excel will stay in memory. > Jim Hale > > -----Original Message----- > From: Billy Pang [mailto:tuxedoman888 at gmail.com] > Sent: Wednesday, September 13, 2006 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] copying worksheets > > > ok.. here is it. what this does is it creates a brand new excel workbook, > write something to sheet2 and then make copy of sheet2. > > what i have noticed is that when copy sheet2 code is there, the xlApp > object > is indestructible! (ie. cannot be destroyed; like superman). you can > still > see that excel.exe still exists in windows task manager after execution. > xlapp survived the set xlApp=nothing onslaught. > > however, if you comment out the copy sheet2 code, xlApp can be destroyed. > the kryponite. > > Public Function fCopyYoWorksheet() > > Dim xlApp As Excel.Application > Dim xlBook As Excel.Workbook > Dim xlSheet As Excel.Worksheet > > Debug.Print "starting..." > Set xlApp = CreateObject("Excel.Application") > Set xlBook = xlApp.Workbooks.Add > Set xlSheet = xlBook.Worksheets("Sheet2") > xlSheet.Range("B2").Value = "Yo! numbers" > xlSheet.Copy after:=Worksheets("Sheet1") > xlBook.Close ' it will prompt you to save > Set xlBook = Nothing > xlApp.Quit > Set xlApp = Nothing > > Debug.Print "finished!" > > End Function > > > > > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From accessd at shaw.ca Wed Sep 13 15:19:42 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 13 Sep 2006 13:19:42 -0700 Subject: [AccessD] OT copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF72@corp-es01.fleetpride.com> Message-ID: <0J5J009CZSFXM1E0@l-daemon> Hi All: There is also the absolute 'kill; an application. Used back when Access97 kept failing to die. Brutally Kill an application Option Explicit Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Sub Kill ExcelApplication() Dim lHwnd As Long Dim lPid As Long, Dim lReturn As Long, Dim lhwndProcess As Long Dim lpClassName As String Const PROCESS_ALL_ACCESS = &H1F0FFF ' check to see if application alive and running ' Believe that XLMain is the appropriate class ' but could be wrong.. please check. lpClassName = "XLMain" lHwnd = FindWindow(lpClassName, vbNullString) If lHwnd > 0 Then 'Get the PID (process ID) from the application handle lReturn = GetWindowThreadProcessId(lHwnd, lPid) 'Terminate the application lhwndProcess = OpenProcess(PROCESS_ALL_ACCESS, 0&, lPid) if (TerminateProcess(lhwndProcess, 0&) <> 0) = True then MsgBox "Excel has been sucessfully terminated" Else MsgBox "Excel has not been sucessfully terminated" End if lReturn = CloseHandle(lhwndProcess) Else MsgBox "Excel is not running or Class name is wrong" End if End Sub Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Wednesday, September 13, 2006 12:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] copying worksheets use xlSheet.Copy after:=xlApp.Worksheets("Sheet1") This is one of my pet hair pullers- Excel hates to give up being the center of attention. Explicit referencing as shown above should solve the problem. Jim Hale -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Wednesday, September 13, 2006 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] copying worksheets you need to set xlSheet to nothing as well. I have found that all variable objects (excel related or not) need to be set to nothing or more often than not excel will stay in memory. Jim Hale -----Original Message----- From: Billy Pang [mailto:tuxedoman888 at gmail.com] Sent: Wednesday, September 13, 2006 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] copying worksheets ok.. here is it. what this does is it creates a brand new excel workbook, write something to sheet2 and then make copy of sheet2. what i have noticed is that when copy sheet2 code is there, the xlApp object is indestructible! (ie. cannot be destroyed; like superman). you can still see that excel.exe still exists in windows task manager after execution. xlapp survived the set xlApp=nothing onslaught. however, if you comment out the copy sheet2 code, xlApp can be destroyed. the kryponite. Public Function fCopyYoWorksheet() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Debug.Print "starting..." Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.Workbooks.Add Set xlSheet = xlBook.Worksheets("Sheet2") xlSheet.Range("B2").Value = "Yo! numbers" xlSheet.Copy after:=Worksheets("Sheet1") xlBook.Close ' it will prompt you to save Set xlBook = Nothing xlApp.Quit Set xlApp = Nothing Debug.Print "finished!" End Function *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Wed Sep 13 15:34:25 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 13 Sep 2006 15:34:25 -0500 Subject: [AccessD] OT copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF74@corp-es01.fleetpride.com> Cool! Excel will sleep with the fishes tonight Jim -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, September 13, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT copying worksheets Hi All: There is also the absolute 'kill; an application. Used back when Access97 kept failing to die. Brutally Kill an application Option Explicit Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Sub Kill ExcelApplication() Dim lHwnd As Long Dim lPid As Long, Dim lReturn As Long, Dim lhwndProcess As Long Dim lpClassName As String Const PROCESS_ALL_ACCESS = &H1F0FFF ' check to see if application alive and running ' Believe that XLMain is the appropriate class ' but could be wrong.. please check. lpClassName = "XLMain" lHwnd = FindWindow(lpClassName, vbNullString) If lHwnd > 0 Then 'Get the PID (process ID) from the application handle lReturn = GetWindowThreadProcessId(lHwnd, lPid) 'Terminate the application lhwndProcess = OpenProcess(PROCESS_ALL_ACCESS, 0&, lPid) if (TerminateProcess(lhwndProcess, 0&) <> 0) = True then MsgBox "Excel has been sucessfully terminated" Else MsgBox "Excel has not been sucessfully terminated" End if lReturn = CloseHandle(lhwndProcess) Else MsgBox "Excel is not running or Class name is wrong" End if End Sub Jim *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From stuart at lexacorp.com.pg Wed Sep 13 16:11:07 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 14 Sep 2006 07:11:07 +1000 Subject: [AccessD] Missing E-Mail In-Reply-To: References: Message-ID: <4509008B.22670.8198912@stuart.lexacorp.com.pg> On 13 Sep 2006 at 9:17, Bryan Carbonnell wrote: > Good morning, > > Yesterday we had a series of people that had their list subscriptions > disabled due to bounces from their mail server. > > It turned out that Databaseadvisors.com's mail server got listed in > SpamCop's Black list temporarily, which caused some accounts to be > temporarily disabled. > > I believe that I have restored all the affected accounts. If you are > chatting off-list with anyone that isn't getting list mail when they > should be please have them contact me and I will make sure that their > account is restored. > > My sincere apologies to anyone affected. > Don't apologise! Anyone that allows a third party such as SpamCop to decide for them what email to reject has no reason to complain when they lose mail. > Hopefully this won't happen again. Another Blacklisting probably will :-( -- Stuart From stuart at lexacorp.com.pg Wed Sep 13 16:16:20 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 14 Sep 2006 07:16:20 +1000 Subject: [AccessD] Combo default value strange In-Reply-To: <000b01c6d73d$3f0a62e0$657aa8c0@m6805> References: <000b01c6d73d$3f0a62e0$657aa8c0@m6805> Message-ID: <450901C4.26541.81E4FAB@stuart.lexacorp.com.pg> What are the values of ColumnCount, ColumnWidths and BoundColumn ? (actual values on the form, now what you think they should be ) On 13 Sep 2006 at 10:02, JWColby wrote: > I use a highly modified version of Julie Schwalm's date picker code. I use > a combo instead of the radio button group that she used and added a bunch of > new possibilities. The combo I use to select the date range I want has a > row source type of "Value list" and a row source of: > > 1;Include All Dates;12;Custom Date Range;14;Current Week;2;Current > Month;3;Current Quarter;4;Current Year;5;Month To Date;6;Quarter To > Date;7;Year To Date;15;Last Week;8;Last Month;9;Last Quarter;10;Last > Year;11;Last 12 Months;13;Today;16;Yesterday > > In my time tracking / billing database I want to open a time data entry form > to filter to today. If I put a default value of 1 in the combo (the > "ordinal value" for "Include all dates"), I get the correct thing, "include > all dates". If I put 2 in there, I get "CURRENT WEEK", which is wrong, it > should select "CURRENT MONTH". IOW, the integer value should select the > text immediately AFTER the integer value (in the value list string), but > seems to be selecting the value immediately BEFORE the integer value. -- Stuart From Jim.Hale at FleetPride.com Wed Sep 13 16:23:10 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 13 Sep 2006 16:23:10 -0500 Subject: [AccessD] OT copying worksheets Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF75@corp-es01.fleetpride.com> The only problem I see is this is an indiscriminate killer. If a user has Excel open and is using it there will be one unhappy camper when the contracted hitman gets the wrong instance. Jim Hale -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, September 13, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT copying worksheets Hi All: There is also the absolute 'kill; an application. Used back when Access97 kept failing to die. Brutally Kill an application Option Explicit Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Sub Kill ExcelApplication() Dim lHwnd As Long Dim lPid As Long, Dim lReturn As Long, Dim lhwndProcess As Long Dim lpClassName As String Const PROCESS_ALL_ACCESS = &H1F0FFF ' check to see if application alive and running ' Believe that XLMain is the appropriate class ' but could be wrong.. please check. lpClassName = "XLMain" lHwnd = FindWindow(lpClassName, vbNullString) If lHwnd > 0 Then 'Get the PID (process ID) from the application handle lReturn = GetWindowThreadProcessId(lHwnd, lPid) 'Terminate the application lhwndProcess = OpenProcess(PROCESS_ALL_ACCESS, 0&, lPid) if (TerminateProcess(lhwndProcess, 0&) <> 0) = True then MsgBox "Excel has been sucessfully terminated" Else MsgBox "Excel has not been sucessfully terminated" End if lReturn = CloseHandle(lhwndProcess) Else MsgBox "Excel is not running or Class name is wrong" End if End Sub Jim *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From ssharkins at setel.com Wed Sep 13 16:34:43 2006 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 13 Sep 2006 17:34:43 -0400 Subject: [AccessD] Missing E-Mail In-Reply-To: <4509008B.22670.8198912@stuart.lexacorp.com.pg> Message-ID: <001701c6d77c$6db25c80$7934fad1@SUSANONE> Anyone that allows a third party such as SpamCop to decide for them what email to reject has no reason to complain when they lose mail. ========I didn't get any mail for over 24 hours and I don't use SpamCop -- my problem's probably unrelated to the SpamCop problem, but I have no idea what happened. Susan H. From rusty.hammond at cpiqpc.com Wed Sep 13 16:47:21 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 13 Sep 2006 16:47:21 -0500 Subject: [AccessD] Missing E-Mail Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8A7D@cpixchng-1.cpiqpc.net> Susan, You might check with your ISP. Some ISP's are starting to use the blacklisting service for any e-mails coming into any of their servers. It's a "service" provided for their clients. It's caused us some headaches before. We have automated e-mails going to some home e-mail addresses of our I.T. folks and their ISP is using the blacklisting service. We ended up on the blacklist because of our use of automated replies and our automated notifications didn't get received. That could be why you didn't receive any for a while. Another thing to remember to check when someone can't get an e-mail through to you. Rusty -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Wednesday, September 13, 2006 4:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing E-Mail Anyone that allows a third party such as SpamCop to decide for them what email to reject has no reason to complain when they lose mail. ========I didn't get any mail for over 24 hours and I don't use SpamCop -- my problem's probably unrelated to the SpamCop problem, but I have no idea what happened. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From cfoust at infostatsystems.com Wed Sep 13 16:49:19 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 13 Sep 2006 14:49:19 -0700 Subject: [AccessD] Missing E-Mail In-Reply-To: <001701c6d77c$6db25c80$7934fad1@SUSANONE> Message-ID: There are a number of ISPs who use SpamCop's lists, so you don't need to actually use SpamCop to be bitten. I had a similar problem recently with this list and my office address definitely doesn't go through SpamCop. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 13, 2006 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing E-Mail Anyone that allows a third party such as SpamCop to decide for them what email to reject has no reason to complain when they lose mail. ========I didn't get any mail for over 24 hours and I don't use SpamCop -- my problem's probably unrelated to the SpamCop problem, but I have no idea what happened. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Wed Sep 13 19:43:42 2006 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 13 Sep 2006 20:43:42 -0400 Subject: [AccessD] Missing E-Mail In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8A7D@cpixchng-1.cpiqpc.net> Message-ID: <001301c6d796$d45c68d0$5232fad1@SUSANONE> Thanks Charlotte and Rusty -- I had no idea. :( Any way to get my ISP not to use blacklisting for me? Susan H. Susan, You might check with your ISP. Some ISP's are starting to use the blacklisting service for any e-mails coming into any of their servers. It's a "service" provided for their clients. It's caused us some headaches before. We have automated e-mails going to some home e-mail addresses of our I.T. folks and their ISP is using the blacklisting service. We ended up on the blacklist because of our use of automated replies and our automated notifications didn't get received. That could be why you didn't receive any for a while. Another thing to remember to check when someone can't get an e-mail through to you. Rusty -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Wednesday, September 13, 2006 4:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing E-Mail Anyone that allows a third party such as SpamCop to decide for them what email to reject has no reason to complain when they lose mail. ========I didn't get any mail for over 24 hours and I don't use SpamCop -- my problem's probably unrelated to the SpamCop problem, but I have no idea what happened. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 8/25/2006 From accessd at shaw.ca Thu Sep 14 00:03:20 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 13 Sep 2006 22:03:20 -0700 Subject: [AccessD] OT copying worksheets In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF75@corp-es01.fleetpride.com> Message-ID: <0J5K003ALGOPXNC0@l-daemon> Jim: I guess that is what can be described as collateral damage. It is effective not selective. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Wednesday, September 13, 2006 2:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT copying worksheets The only problem I see is this is an indiscriminate killer. If a user has Excel open and is using it there will be one unhappy camper when the contracted hitman gets the wrong instance. Jim Hale -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, September 13, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT copying worksheets Hi All: There is also the absolute 'kill; an application. Used back when Access97 kept failing to die. Brutally Kill an application Option Explicit Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Sub Kill ExcelApplication() Dim lHwnd As Long Dim lPid As Long, Dim lReturn As Long, Dim lhwndProcess As Long Dim lpClassName As String Const PROCESS_ALL_ACCESS = &H1F0FFF ' check to see if application alive and running ' Believe that XLMain is the appropriate class ' but could be wrong.. please check. lpClassName = "XLMain" lHwnd = FindWindow(lpClassName, vbNullString) If lHwnd > 0 Then 'Get the PID (process ID) from the application handle lReturn = GetWindowThreadProcessId(lHwnd, lPid) 'Terminate the application lhwndProcess = OpenProcess(PROCESS_ALL_ACCESS, 0&, lPid) if (TerminateProcess(lhwndProcess, 0&) <> 0) = True then MsgBox "Excel has been sucessfully terminated" Else MsgBox "Excel has not been sucessfully terminated" End if lReturn = CloseHandle(lhwndProcess) Else MsgBox "Excel is not running or Class name is wrong" End if End Sub Jim *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Thu Sep 14 07:52:11 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 14 Sep 2006 08:52:11 -0400 Subject: [AccessD] Missing E-Mail In-Reply-To: <4509008B.22670.8198912@stuart.lexacorp.com.pg> References: <4509008B.22670.8198912@stuart.lexacorp.com.pg> Message-ID: On 9/13/06, Stuart McLachlan wrote: > Anyone that allows a third party such as SpamCop to decide for them what > email to reject has no reason to complain when they lose mail. Unfortunately, these were all ISP level rejections not user level rejections, but yea I personally agree. > > Hopefully this won't happen again. > > Another Blacklisting probably will :-( Don't doubt it. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Sep 14 07:54:06 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 14 Sep 2006 08:54:06 -0400 Subject: [AccessD] Missing E-Mail In-Reply-To: <001301c6d796$d45c68d0$5232fad1@SUSANONE> References: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8A7D@cpixchng-1.cpiqpc.net> <001301c6d796$d45c68d0$5232fad1@SUSANONE> Message-ID: On 9/13/06, Susan Harkins wrote: > Thanks Charlotte and Rusty -- I had no idea. :( Any way to get my ISP not to > use blacklisting for me? Ask them not to. And if they don't stop filtering, change ISPs if you can, and tel them why you left. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Thu Sep 14 11:18:10 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 14 Sep 2006 12:18:10 -0400 Subject: [AccessD] editable word document Message-ID: <000e01c6d819$600aa450$657aa8c0@m6805> Does anyone have an example data collection word document they could send me, with text and check box controls that are editable surrounded by noneditable text and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com From carbonnb at gmail.com Thu Sep 14 11:23:56 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 14 Sep 2006 12:23:56 -0400 Subject: [AccessD] editable word document In-Reply-To: <000e01c6d819$600aa450$657aa8c0@m6805> References: <000e01c6d819$600aa450$657aa8c0@m6805> Message-ID: On 9/14/06, JWColby wrote: > Does anyone have an example data collection word document they could send > me, with text and check box controls that are editable surrounded by > noneditable text and stuff. John, Grab the sample files from http://www.databaseadvisors.com/newsletters/newsletter112003/0311RemoteDataCollection.htm The Word doc in there contains text boxes, radio buttons, combos & text boxes with non editable text as well -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Thu Sep 14 14:03:01 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 14 Sep 2006 15:03:01 -0400 Subject: [AccessD] editable word document In-Reply-To: Message-ID: <000201c6d830$681b0970$657aa8c0@m6805> Thanks. I knew you would be the one. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, September 14, 2006 12:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] editable word document On 9/14/06, JWColby wrote: > Does anyone have an example data collection word document they could > send me, with text and check box controls that are editable surrounded > by noneditable text and stuff. John, Grab the sample files from http://www.databaseadvisors.com/newsletters/newsletter112003/0311RemoteDataC ollection.htm The Word doc in there contains text boxes, radio buttons, combos & text boxes with non editable text as well -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Thu Sep 14 15:08:39 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 14 Sep 2006 16:08:39 -0400 Subject: [AccessD] editable word document In-Reply-To: <000201c6d830$681b0970$657aa8c0@m6805> References: <000201c6d830$681b0970$657aa8c0@m6805> Message-ID: On 9/14/06, JWColby wrote: > Thanks. I knew you would be the one. You were lucky that I actually read the list today. First day in a week orr o :) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Thu Sep 14 15:49:32 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 14 Sep 2006 16:49:32 -0400 Subject: [AccessD] editable word document In-Reply-To: Message-ID: <001101c6d83f$48e11e50$657aa8c0@m6805> Hmmm, makin money! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, September 14, 2006 4:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] editable word document On 9/14/06, JWColby wrote: > Thanks. I knew you would be the one. You were lucky that I actually read the list today. First day in a week orr o :) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 14 20:20:36 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 14 Sep 2006 21:20:36 -0400 Subject: [AccessD] DNS Lookup Message-ID: <000001c6d865$26d35b40$657aa8c0@m6805> Folks, I just ran across this: http://www.broadbandreports.com/forum/remark,13154925 and the link inside: http://www.dslreports.com/faq/8164 I followed the directions to change to a specified DNS server and holy smoke!!! The browsing difference is night and day!!! I have recently moved down to NC and in the process to a new ISP (the local cable company). My service in CT was stellar in terms of bandwidth, whereas here in NC it is merely passable. However by specifying the DNS server as described in the links (I used the 4.2.2.1 and 4.2.2.2) the difference in browse speed is simply startling. Try it!!! John W. Colby Colby Consulting www.ColbyConsulting.com From carbonnb at gmail.com Fri Sep 15 05:07:27 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 15 Sep 2006 06:07:27 -0400 Subject: [AccessD] editable word document In-Reply-To: <001101c6d83f$48e11e50$657aa8c0@m6805> References: <001101c6d83f$48e11e50$657aa8c0@m6805> Message-ID: On 9/14/06, JWColby wrote: > Hmmm, makin money! ;-) Me, naw. I'm salaried, so if I work or not I still get paid. Between stupid busy at work and a new lady in my life, I've been too damn busy to read the list. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Gustav at cactus.dk Fri Sep 15 05:19:36 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 15 Sep 2006 12:19:36 +0200 Subject: [AccessD] editable word document Message-ID: Hi Bryan - but now when she is not "new" anymore ... /gustav >>> carbonnb at gmail.com 15-09-2006 12:07:27 >>> On 9/14/06, JWColby wrote: > Hmmm, makin money! ;-) Me, naw. I'm salaried, so if I work or not I still get paid. Between stupid busy at work and a new lady in my life, I've been too damn busy to read the list. From carbonnb at gmail.com Fri Sep 15 07:43:03 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 15 Sep 2006 08:43:03 -0400 Subject: [AccessD] editable word document In-Reply-To: References: Message-ID: On 9/15/06, Gustav Brock wrote: > Hi Bryan > > - but now when she is not "new" anymore ... I dunno. She'll be the new one for a long time. :) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From markamatte at hotmail.com Fri Sep 15 09:11:59 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 15 Sep 2006 14:11:59 +0000 Subject: [AccessD] Delete from FTP In-Reply-To: Message-ID: Hello All, In A2K I'm using DoCmd.Transfertext wih an FTP site as the target path to import a text file. This works fine. I need to delete the text file from the FTP site after the transfer/import. I've used an FTP module in the past where you open the connection/delete or what ever/ and then close the connection. Its a large complicated module. Since I'm able to get the data easily...I was wondering if there was a way just as simple to delete? Thanks, Mark A. Matte From askolits at ot.com Fri Sep 15 09:26:25 2006 From: askolits at ot.com (John Skolits) Date: Fri, 15 Sep 2006 10:26:25 -0400 Subject: [AccessD] Report Group Page Breaks with no break for the Report Footer In-Reply-To: <000001c6d865$26d35b40$657aa8c0@m6805> Message-ID: <000e01c6d8d2$f0704860$6a01a8c0@LaptopXP> I have a report with a group header/footer. I tell the group Footer to force a new page "After Section' No problem. Breaks after each group. There is also a 'Report footer'. That page gets printed last. But, if I have only one group and it fits on the first page with plenty of room for the report footer to fit, how can I prevent a page break? All the 'Keep together' properties of the Groups and Sections are True. All the 'Can Shrinks' are set to true. All the other 'Force New Page' properties are set to None I've tried modifying the footer-'Force New Page' property in code during the format of the detail section, but that doesn't seem to work. Any ideas? Thanks, John From Gustav at cactus.dk Fri Sep 15 10:06:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 15 Sep 2006 17:06:08 +0200 Subject: [AccessD] Delete from FTP Message-ID: Hi Mark You can attach the FTP folder as a driver letter using Novell NetDrive (free): http://www.rsync.net/resources/howto/windows_map.html Then you can use normal file operations from VBA using that drive letter. /gustav >>> markamatte at hotmail.com 15-09-2006 16:11:59 >>> Hello All, In A2K I'm using DoCmd.Transfertext wih an FTP site as the target path to import a text file. This works fine. I need to delete the text file from the FTP site after the transfer/import. I've used an FTP module in the past where you open the connection/delete or what ever/ and then close the connection. Its a large complicated module. Since I'm able to get the data easily...I was wondering if there was a way just as simple to delete? Thanks, Mark A. Matte From markamatte at hotmail.com Fri Sep 15 10:15:46 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 15 Sep 2006 15:15:46 +0000 Subject: [AccessD] Delete from FTP In-Reply-To: Message-ID: Gustav, Thanks for the site...it looks like an interesting solution...but I will not have the ability to load additional software on the PCs that will be utilizing this DB. Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Delete from FTP >Date: Fri, 15 Sep 2006 17:06:08 +0200 > >Hi Mark > >You can attach the FTP folder as a driver letter using Novell NetDrive >(free): > >http://www.rsync.net/resources/howto/windows_map.html > >Then you can use normal file operations from VBA using that drive letter. > >/gustav > > > >>> markamatte at hotmail.com 15-09-2006 16:11:59 >>> >Hello All, > >In A2K I'm using DoCmd.Transfertext wih an FTP site as the target path to >import a text file. This works fine. I need to delete the text file from >the FTP site after the transfer/import. I've used an FTP module in the >past >where you open the connection/delete or what ever/ and then close the >connection. Its a large complicated module. > >Since I'm able to get the data easily...I was wondering if there was a way >just as simple to delete? > >Thanks, > >Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 15 11:30:14 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 15 Sep 2006 18:30:14 +0200 Subject: [AccessD] Delete from FTP Message-ID: Hi Mark Then you have to fall back to writing a small script for the command line FTP.EXE included in all Windows versions. Browse the archive for examples - this has been discussed many times. /gustav >>> markamatte at hotmail.com 15-09-2006 17:15:46 >>> Gustav, Thanks for the site...it looks like an interesting solution...but I will not have the ability to load additional software on the PCs that will be utilizing this DB. Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Delete from FTP >Date: Fri, 15 Sep 2006 17:06:08 +0200 > >Hi Mark > >You can attach the FTP folder as a driver letter using Novell NetDrive >(free): > >http://www.rsync.net/resources/howto/windows_map.html > >Then you can use normal file operations from VBA using that drive letter. > >/gustav > > > >>> markamatte at hotmail.com 15-09-2006 16:11:59 >>> >Hello All, > >In A2K I'm using DoCmd.Transfertext wih an FTP site as the target path to >import a text file. This works fine. I need to delete the text file from >the FTP site after the transfer/import. I've used an FTP module in the >past >where you open the connection/delete or what ever/ and then close the >connection. Its a large complicated module. > >Since I'm able to get the data easily...I was wondering if there was a way >just as simple to delete? > >Thanks, > >Mark A. Matte From accessd at shaw.ca Fri Sep 15 11:31:30 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 15 Sep 2006 09:31:30 -0700 Subject: [AccessD] Delete from FTP In-Reply-To: Message-ID: <0J5N00LA877DSR20@l-daemon> Wow Gustav, that is a nice little gem. Could have used that some time ago... even made a request to the list at the time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 8:06 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Mark You can attach the FTP folder as a driver letter using Novell NetDrive (free): http://www.rsync.net/resources/howto/windows_map.html Then you can use normal file operations from VBA using that drive letter. /gustav >>> markamatte at hotmail.com 15-09-2006 16:11:59 >>> Hello All, In A2K I'm using DoCmd.Transfertext wih an FTP site as the target path to import a text file. This works fine. I need to delete the text file from the FTP site after the transfer/import. I've used an FTP module in the past where you open the connection/delete or what ever/ and then close the connection. Its a large complicated module. Since I'm able to get the data easily...I was wondering if there was a way just as simple to delete? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 15 11:39:42 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 15 Sep 2006 18:39:42 +0200 Subject: [AccessD] Delete from FTP Message-ID: Hi Jim Don't get too excited. It won't allow you to attach databases at a FTP server as it just hides the transfer between the FTP server and a local temp folder by a clever caching mechanism. /gustav >>> accessd at shaw.ca 15-09-2006 18:31:30 >>> Wow Gustav, that is a nice little gem. Could have used that some time ago... even made a request to the list at the time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 8:06 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Mark You can attach the FTP folder as a driver letter using Novell NetDrive (free): http://www.rsync.net/resources/howto/windows_map.html Then you can use normal file operations from VBA using that drive letter. /gustav From accessd at shaw.ca Fri Sep 15 12:30:43 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 15 Sep 2006 10:30:43 -0700 Subject: [AccessD] OT: Delete from FTP In-Reply-To: Message-ID: <0J5N00GQH9Y2KP50@l-daemon> Hi Gustav: ..But if it provides a connection between a couple of folders, on remote/LAN drives, that would not normally be connectable through standard 'map network drives' is it not tunneling? Currently I have a number of drive letters connected to shares on remote sites, off the server (2003), with no extra software. To actually run remote software it still requires, TermServer, XP Remote or Hamachi/UltraVNC. As I have not tested the Novell software yet, am I making assumptions or am I missing something? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 9:40 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Jim Don't get too excited. It won't allow you to attach databases at a FTP server as it just hides the transfer between the FTP server and a local temp folder by a clever caching mechanism. /gustav >>> accessd at shaw.ca 15-09-2006 18:31:30 >>> Wow Gustav, that is a nice little gem. Could have used that some time ago... even made a request to the list at the time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 8:06 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Mark You can attach the FTP folder as a driver letter using Novell NetDrive (free): http://www.rsync.net/resources/howto/windows_map.html Then you can use normal file operations from VBA using that drive letter. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 15 13:01:01 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 15 Sep 2006 20:01:01 +0200 Subject: [AccessD] OT: Delete from FTP Message-ID: Hi Jim Yes, NetDrive only creates and "opens" a drive letter to the remote FTP server. It doesn't allow you to run an application on the server - it is not a remote-op thing. However, that single feature is very useful, indeed for "normal" users. /gustav >>> accessd at shaw.ca 15-09-2006 19:30 >>> Hi Gustav: ..But if it provides a connection between a couple of folders, on remote/LAN drives, that would not normally be connectable through standard 'map network drives' is it not tunneling? Currently I have a number of drive letters connected to shares on remote sites, off the server (2003), with no extra software. To actually run remote software it still requires, TermServer, XP Remote or Hamachi/UltraVNC. As I have not tested the Novell software yet, am I making assumptions or am I missing something? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 9:40 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Jim Don't get too excited. It won't allow you to attach databases at a FTP server as it just hides the transfer between the FTP server and a local temp folder by a clever caching mechanism. /gustav >>> accessd at shaw.ca 15-09-2006 18:31:30 >>> Wow Gustav, that is a nice little gem. Could have used that some time ago... even made a request to the list at the time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 15, 2006 8:06 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Delete from FTP Hi Mark You can attach the FTP folder as a driver letter using Novell NetDrive (free): http://www.rsync.net/resources/howto/windows_map.html Then you can use normal file operations from VBA using that drive letter. /gustav From markamatte at hotmail.com Fri Sep 15 15:54:33 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 15 Sep 2006 20:54:33 +0000 Subject: [AccessD] Delete from FTP In-Reply-To: Message-ID: Hello All, Thanks for the feedback. In the ftp demo I had originally used...I couldn't find where the file was actually deleted from the ftp site. I found a .DelFile in the module but it was never called. I opnly used the .GetFile and apparently the .GetFile deletes the ftp file after it gets it? So...since I didn't need to GET having already used docmd.transfertext I just used teh same module and replace the .GetFile with the .DelFile and everthing is OK. I am still curious why the .GetFile deletes thew source file...or I might just be overlooking ...but I know the .DelFile is never called in the original demo. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Delete from FTP >Date: Fri, 15 Sep 2006 18:39:42 +0200 > >Hi Jim > >Don't get too excited. It won't allow you to attach databases at a FTP >server as it just hides the transfer between the FTP server and a local >temp folder by a clever caching mechanism. > >/gustav > > >>> accessd at shaw.ca 15-09-2006 18:31:30 >>> >Wow Gustav, that is a nice little gem. > >Could have used that some time ago... even made a request to the list at >the >time. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Friday, September 15, 2006 8:06 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Delete from FTP > >Hi Mark > >You can attach the FTP folder as a driver letter using Novell NetDrive >(free): > >http://www.rsync.net/resources/howto/windows_map.html > >Then you can use normal file operations from VBA using that drive letter. > >/gustav > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Sun Sep 17 16:15:21 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Sun, 17 Sep 2006 14:15:21 -0700 Subject: [AccessD] Is system down? Message-ID: <000e01c6da9e$62b70f90$0202fea9@BPCS> is this working? From djkr at msn.com Sun Sep 17 16:30:09 2006 From: djkr at msn.com (DJK(John) Robinson) Date: Sun, 17 Sep 2006 22:30:09 +0100 Subject: [AccessD] Is system down? In-Reply-To: <000e01c6da9e$62b70f90$0202fea9@BPCS> Message-ID: Yup! J Hang on - you asked opposite questions: No to the first, Yes to the second! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: 17 September 2006 22:15 To: accessd at databaseadvisors.com Subject: [AccessD] Is system down? is this working? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Sun Sep 17 17:55:48 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Sun, 17 Sep 2006 15:55:48 -0700 Subject: [AccessD] Is system down? References: Message-ID: <001201c6daac$6af2b980$0202fea9@BPCS> Thanks John, it was so quiet the past few days I thought I'd check, B ----- Original Message ----- From: "DJK(John) Robinson" To: "'Access Developers discussion and problem solving'" Sent: Sunday, September 17, 2006 2:30 PM Subject: Re: [AccessD] Is system down? Yup! J Hang on - you asked opposite questions: No to the first, Yes to the second! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: 17 September 2006 22:15 To: accessd at databaseadvisors.com Subject: [AccessD] Is system down? is this working? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Sun Sep 17 20:04:35 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sun, 17 Sep 2006 18:04:35 -0700 Subject: [AccessD] Is system down? In-Reply-To: <000e01c6da9e$62b70f90$0202fea9@BPCS> Message-ID: It is here in Lost Angeles. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Sunday, September 17, 2006 2:15 PM To: accessd at databaseadvisors.com Subject: [AccessD] Is system down? is this working? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Sep 18 10:44:15 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 18 Sep 2006 15:44:15 +0000 Subject: [AccessD] Global Variable??? In-Reply-To: <000e01c6da9e$62b70f90$0202fea9@BPCS> Message-ID: Hello All, I have an A2k db...and apparently am having a brain cramp. On a form...click a button...uses Dlookup to find which path to a folder we are going to use... Location = dlookup("location","tblLocations","ID=2") The Dlookup works fine...but I need to pass this value to a function in a module...whenever I put "location" in the Module...it says variable not defined. I've tried everything I can think of. Please help? Thanks, Mark A. Matte From Robin at rolledgold.net Mon Sep 18 10:43:48 2006 From: Robin at rolledgold.net (Robin ) Date: Mon, 18 Sep 2006 16:43:48 +0100 Subject: [AccessD] Global Variable??? Message-ID: <560E2B80EC8F624B93A87B943B7A9CD542432F@rgiserv.rg.local> Hi Mark, If I understand you correctly you need to assign the dlookup value to a variable.... eg strlocation = dlookup("location","tblLocations","ID=2") Then use strlocation in your module.... Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: 18 September 2006 16:44 To: accessd at databaseadvisors.com Subject: [AccessD] Global Variable??? Hello All, I have an A2k db...and apparently am having a brain cramp. On a form...click a button...uses Dlookup to find which path to a folder we are going to use... Location = dlookup("location","tblLocations","ID=2") The Dlookup works fine...but I need to pass this value to a function in a module...whenever I put "location" in the Module...it says variable not defined. I've tried everything I can think of. Please help? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Sep 18 11:22:47 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 18 Sep 2006 16:22:47 +0000 Subject: [AccessD] Global Variable??? In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD542432F@rgiserv.rg.local> Message-ID: Thanks for the feedback...I found my brain cramp...you have to declare a global variable in a module...not a class module?.?.?...I think...lol But it works now. Thanks, Mark A. Matte >From: "Robin " >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Global Variable??? >Date: Mon, 18 Sep 2006 16:43:48 +0100 > >Hi Mark, >If I understand you correctly you need to assign the dlookup value to a >variable.... > >eg strlocation = dlookup("location","tblLocations","ID=2") > >Then use strlocation in your module.... >Rgds >Robin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: 18 September 2006 16:44 >To: accessd at databaseadvisors.com >Subject: [AccessD] Global Variable??? > > >Hello All, > >I have an A2k db...and apparently am having a brain cramp. On a >form...click a button...uses Dlookup to find which path to a folder we >are >going to use... Location = dlookup("location","tblLocations","ID=2") > >The Dlookup works fine...but I need to pass this value to a function in >a >module...whenever I put "location" in the Module...it says variable not >defined. I've tried everything I can think of. > > >Please help? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From adtp at hotmail.com Mon Sep 18 12:48:07 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Mon, 18 Sep 2006 23:18:07 +0530 Subject: [AccessD] Report Group Page Breaks with no break for the ReportFooter References: <000e01c6d8d2$f0704860$6a01a8c0@LaptopXP> Message-ID: John, Apparently you wish to force page break after the group footer in such a manner that normally, such break gets forced compulsorily, while at the end of report, there should be no forced page break if adequate space is available to accommodate the report footer as well. It is suggested that you should avoid setting any page break in report design via properties dialog box of group footer. Instead, insert the sample code given below, in format event of appropriate group footer. TxtCount is the name of calculated text box in Detail section (with the expression =1). Its running sum property should be set to Overall. Best wishes, A.D.Tejpal --------------- ================================ Private Sub GroupFooter1_Format(Cancel As Integer, _ FormatCount As Integer) If TxtCount < DCount("*", Me.RecordSource) Then ' Not yet yet reached the end of report. Force ' new page after group footer. Me.GroupFooter1.ForceNewPage = 2 Else ' End of report has been reached. No need to ' force new page. Access will take care of ' placing the report footer either on current page ' or the next one, depending upon room available. Me.GroupFooter1.ForceNewPage = 0 End If End Sub ================================ ----- Original Message ----- From: John Skolits To: 'Access Developers discussion and problem solving' Sent: Friday, September 15, 2006 19:56 Subject: [AccessD] Report Group Page Breaks with no break for the ReportFooter I have a report with a group header/footer. I tell the group Footer to force a new page "After Section' No problem. Breaks after each group. There is also a 'Report footer'. That page gets printed last. But, if I have only one group and it fits on the first page with plenty of room for the report footer to fit, how can I prevent a page break? All the 'Keep together' properties of the Groups and Sections are True. All the 'Can Shrinks' are set to true. All the other 'Force New Page' properties are set to None I've tried modifying the footer-'Force New Page' property in code during the format of the detail section, but that doesn't seem to work. Any ideas? Thanks, John From askolits at ot.com Mon Sep 18 14:23:03 2006 From: askolits at ot.com (John Skolits) Date: Mon, 18 Sep 2006 15:23:03 -0400 Subject: [AccessD] Report Group Page Breaks with no break for theReportFooter In-Reply-To: Message-ID: <016401c6db57$df963a40$6a01a8c0@LaptopXP> I'll give it a shot. I'll let you know how it goes. Thanks, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Monday, September 18, 2006 1:48 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Report Group Page Breaks with no break for theReportFooter John, Apparently you wish to force page break after the group footer in such a manner that normally, such break gets forced compulsorily, while at the end of report, there should be no forced page break if adequate space is available to accommodate the report footer as well. It is suggested that you should avoid setting any page break in report design via properties dialog box of group footer. Instead, insert the sample code given below, in format event of appropriate group footer. TxtCount is the name of calculated text box in Detail section (with the expression =1). Its running sum property should be set to Overall. Best wishes, A.D.Tejpal --------------- ================================ Private Sub GroupFooter1_Format(Cancel As Integer, _ FormatCount As Integer) If TxtCount < DCount("*", Me.RecordSource) Then ' Not yet yet reached the end of report. Force ' new page after group footer. Me.GroupFooter1.ForceNewPage = 2 Else ' End of report has been reached. No need to ' force new page. Access will take care of ' placing the report footer either on current page ' or the next one, depending upon room available. Me.GroupFooter1.ForceNewPage = 0 End If End Sub ================================ ----- Original Message ----- From: John Skolits To: 'Access Developers discussion and problem solving' Sent: Friday, September 15, 2006 19:56 Subject: [AccessD] Report Group Page Breaks with no break for the ReportFooter I have a report with a group header/footer. I tell the group Footer to force a new page "After Section' No problem. Breaks after each group. There is also a 'Report footer'. That page gets printed last. But, if I have only one group and it fits on the first page with plenty of room for the report footer to fit, how can I prevent a page break? All the 'Keep together' properties of the Groups and Sections are True. All the 'Can Shrinks' are set to true. All the other 'Force New Page' properties are set to None I've tried modifying the footer-'Force New Page' property in code during the format of the detail section, but that doesn't seem to work. Any ideas? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 18 20:45:24 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 18 Sep 2006 21:45:24 -0400 Subject: [AccessD] pretty quiet out there Message-ID: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Is there anybody out there (to a pink floyd melody) John W. Colby Colby Consulting www.ColbyConsulting.com From jmhecht at earthlink.net Mon Sep 18 20:49:39 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 18 Sep 2006 18:49:39 -0700 Subject: [AccessD] pretty quiet out there In-Reply-To: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Message-ID: We are awake here in Los Angeles. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 18, 2006 6:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] pretty quiet out there Is there anybody out there (to a pink floyd melody) John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Sep 18 20:52:26 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 19 Sep 2006 11:52:26 +1000 Subject: [AccessD] pretty quiet out there In-Reply-To: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> References: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Message-ID: <450FD9FA.25394.85181426@stuart.lexacorp.com.pg> On 18 Sep 2006 at 21:45, JWColby wrote: > Is there anybody out there (to a pink floyd melody) What, did you miss the Rapture too? From rusty.hammond at cpiqpc.com Mon Sep 18 21:59:08 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Mon, 18 Sep 2006 21:59:08 -0500 Subject: [AccessD] pretty quiet out there Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8AA3@cpixchng-1.cpiqpc.net> Looks like you've covered everything about access anyone needs to know. There are no more questions ;-) -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Monday, September 18, 2006 8:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] pretty quiet out there Is there anybody out there (to a pink floyd melody) John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From david.gray at tpg.com.au Mon Sep 18 22:37:37 2006 From: david.gray at tpg.com.au (David Gray) Date: Tue, 19 Sep 2006 13:37:37 +1000 Subject: [AccessD] Slider Control Message-ID: <000001c6db9c$f4674eb0$0101a8c0@server> OK I'll ask a question just to get the ball rolling again. I'm trying to use the slider control to change the scale on a Graph10 control and got it all working only to find it only handles long integers which means I cant set its value to say 1.5. Is this so or have I missed something? David Gray Yahoo ID: flock_it_software ? From mmattys at rochester.rr.com Mon Sep 18 22:50:59 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 18 Sep 2006 23:50:59 -0400 Subject: [AccessD] pretty quiet out there References: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8AA3@cpixchng-1.cpiqpc.net> Message-ID: <000801c6db9e$d33eecf0$0202a8c0@default> ... you are only coming through in waves ... www.mattysconsulting.com > -----Original Message----- > From: JWColby [mailto:jwcolby at colbyconsulting.com] > Sent: Monday, September 18, 2006 8:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] pretty quiet out there > > > Is there anybody out there (to a pink floyd melody) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com From andy at minstersystems.co.uk Tue Sep 19 01:36:54 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 19 Sep 2006 07:36:54 +0100 Subject: [AccessD] pretty quiet out there In-Reply-To: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Message-ID: <005d01c6dbb5$ff6c50d0$342270c3@minster33c3r25> All present and correct the other side of the pond -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: 19 September 2006 02:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] pretty quiet out there > > > Is there anybody out there (to a pink floyd melody) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From askolits at ot.com Tue Sep 19 05:54:48 2006 From: askolits at ot.com (John Skolits) Date: Tue, 19 Sep 2006 06:54:48 -0400 Subject: [AccessD] Report Group Page Breaks with no break for theReportFooter In-Reply-To: Message-ID: <000401c6dbda$067e6ce0$6d01a8c0@LaptopXP> That seemed to work. Thanks! The only change was that I created a local variable for the report module called lng_rsCount and loaded the Dcount Value into it, during the "OnOpen" event of the report. In that way the Dcount didn't run multiple times as it does in the format event. It was making the report open up too slowly. Thanks again. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Monday, September 18, 2006 1:48 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Report Group Page Breaks with no break for theReportFooter John, Apparently you wish to force page break after the group footer in such a manner that normally, such break gets forced compulsorily, while at the end of report, there should be no forced page break if adequate space is available to accommodate the report footer as well. It is suggested that you should avoid setting any page break in report design via properties dialog box of group footer. Instead, insert the sample code given below, in format event of appropriate group footer. TxtCount is the name of calculated text box in Detail section (with the expression =1). Its running sum property should be set to Overall. Best wishes, A.D.Tejpal --------------- ================================ Private Sub GroupFooter1_Format(Cancel As Integer, _ FormatCount As Integer) If TxtCount < DCount("*", Me.RecordSource) Then ' Not yet yet reached the end of report. Force ' new page after group footer. Me.GroupFooter1.ForceNewPage = 2 Else ' End of report has been reached. No need to ' force new page. Access will take care of ' placing the report footer either on current page ' or the next one, depending upon room available. Me.GroupFooter1.ForceNewPage = 0 End If End Sub ================================ ----- Original Message ----- From: John Skolits To: 'Access Developers discussion and problem solving' Sent: Friday, September 15, 2006 19:56 Subject: [AccessD] Report Group Page Breaks with no break for the ReportFooter I have a report with a group header/footer. I tell the group Footer to force a new page "After Section' No problem. Breaks after each group. There is also a 'Report footer'. That page gets printed last. But, if I have only one group and it fits on the first page with plenty of room for the report footer to fit, how can I prevent a page break? All the 'Keep together' properties of the Groups and Sections are True. All the 'Can Shrinks' are set to true. All the other 'Force New Page' properties are set to None I've tried modifying the footer-'Force New Page' property in code during the format of the detail section, but that doesn't seem to work. Any ideas? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 19 06:45:23 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 19 Sep 2006 07:45:23 -0400 Subject: [AccessD] Slider Control In-Reply-To: <000001c6db9c$f4674eb0$0101a8c0@server> Message-ID: <004801c6dbe1$1891ca10$657aa8c0@m6805> I've never used it. But if true, it seems you could work around this by setting the scale to 10x as large (use 10 times as many "points" on the scale) and then divide by 10 to get the float number. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Gray Sent: Monday, September 18, 2006 11:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slider Control OK I'll ask a question just to get the ball rolling again. I'm trying to use the slider control to change the scale on a Graph10 control and got it all working only to find it only handles long integers which means I cant set its value to say 1.5. Is this so or have I missed something? David Gray Yahoo ID: flock_it_software ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 19 06:45:55 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 19 Sep 2006 07:45:55 -0400 Subject: [AccessD] pretty quiet out there In-Reply-To: <000801c6db9e$d33eecf0$0202a8c0@default> Message-ID: <004901c6dbe1$2b408110$657aa8c0@m6805> ... you are only coming through in waves ... 8~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Monday, September 18, 2006 11:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] pretty quiet out there ... you are only coming through in waves ... www.mattysconsulting.com > -----Original Message----- > From: JWColby [mailto:jwcolby at colbyconsulting.com] > Sent: Monday, September 18, 2006 8:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] pretty quiet out there > > > Is there anybody out there (to a pink floyd melody) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Sep 19 09:06:59 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 19 Sep 2006 07:06:59 -0700 Subject: [AccessD] pretty quiet out there In-Reply-To: <450FD9FA.25394.85181426@stuart.lexacorp.com.pg> Message-ID: ROTFLMAO! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, September 18, 2006 6:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] pretty quiet out there On 18 Sep 2006 at 21:45, JWColby wrote: > Is there anybody out there (to a pink floyd melody) What, did you miss the Rapture too? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Tue Sep 19 09:28:16 2006 From: pharold at proftesting.com (Perry L Harold) Date: Tue, 19 Sep 2006 10:28:16 -0400 Subject: [AccessD] pretty quiet out there In-Reply-To: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD2D94FF@EXCHANGE.ptiorl.local> All in all you're just another brick in the wall. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 18, 2006 9:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] pretty quiet out there Is there anybody out there (to a pink floyd melody) John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Tue Sep 19 09:31:49 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 19 Sep 2006 07:31:49 -0700 Subject: [AccessD] pretty quiet out there In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD2D94FF@EXCHANGE.ptiorl.local> Message-ID: All in all, I hope my bricks stay put here in Los Angeles Joe Hecht jmhecht at earthlink.net All in all you're just another brick in the wall. Perry Harold From andy at minstersystems.co.uk Tue Sep 19 10:58:05 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 19 Sep 2006 15:58:05 +0000 Subject: [AccessD] pretty quiet out there Message-ID: <20060919145812.4A393E616CB@smtp.nildram.co.uk> personally I preferred the quiet -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] pretty quiet out there Date: 19/09/06 14:32 All in all, I hope my bricks stay put here in Los Angeles Joe Hecht jmhecht at earthlink.net All in all you're just another brick in the wall. Perry Harold -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From john at winhaven.net Tue Sep 19 10:36:29 2006 From: john at winhaven.net (John Bartow) Date: Tue, 19 Sep 2006 10:36:29 -0500 Subject: [AccessD] pretty quiet out there In-Reply-To: <003b01c6db8d$46ef2ff0$657aa8c0@m6805> Message-ID: <001601c6dc01$6073aef0$6501a8c0@ScuzzPaq> Hey all, The dba-OT list is as chatty as ever, head on over there for a spell... From artful at rogers.com Tue Sep 19 10:42:08 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 19 Sep 2006 08:42:08 -0700 (PDT) Subject: [AccessD] pretty quiet out there In-Reply-To: <20060919145812.4A393E616CB@smtp.nildram.co.uk> Message-ID: <20060919154208.99141.qmail@web88207.mail.re2.yahoo.com> Apparently all Access questions have now been solved, and we are now reduced to quoting song lyrics. Fine, but if so we must elevate the level to Tom Waits at least: "Get down off the cross, we need the wood." A. ----- Original Message ---- From: Andy Lacey To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 11:58:05 AM Subject: Re: [AccessD] pretty quiet out there personally I preferred the quiet From cfoust at infostatsystems.com Tue Sep 19 11:45:48 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 19 Sep 2006 09:45:48 -0700 Subject: [AccessD] pretty quiet out there In-Reply-To: <20060919154208.99141.qmail@web88207.mail.re2.yahoo.com> Message-ID: Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, September 19, 2006 8:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] pretty quiet out there Apparently all Access questions have now been solved, and we are now reduced to quoting song lyrics. Fine, but if so we must elevate the level to Tom Waits at least: "Get down off the cross, we need the wood." A. ----- Original Message ---- From: Andy Lacey To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 11:58:05 AM Subject: Re: [AccessD] pretty quiet out there personally I preferred the quiet -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Sep 19 11:54:59 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 19 Sep 2006 11:54:59 -0500 Subject: [AccessD] Switching to VB.net In-Reply-To: <21521864.1158684598873.JavaMail.root@sniper46> Message-ID: <000c01c6dc0c$582a8e20$0200a8c0@danwaters> OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte From adtp at hotmail.com Tue Sep 19 07:14:28 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Tue, 19 Sep 2006 17:44:28 +0530 Subject: [AccessD] Report Group Page Breaks with no break fortheReportFooter References: <000401c6dbda$067e6ce0$6d01a8c0@LaptopXP> Message-ID: You are most welcome John! I am glad your problem stands resolved. You have done a nice job of adapting the suggested solution in an optimum manner. Using a report level global variable for storing the total count is an excellent step. A.D.Tejpal --------------- ----- Original Message ----- From: John Skolits To: 'Access Developers discussion and problem solving' Sent: Tuesday, September 19, 2006 16:24 Subject: Re: [AccessD] Report Group Page Breaks with no break fortheReportFooter That seemed to work. Thanks! The only change was that I created a local variable for the report module called lng_rsCount and loaded the Dcount Value into it, during the "OnOpen" event of the report. In that way the Dcount didn't run multiple times as it does in the format event. It was making the report open up too slowly. Thanks again. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Monday, September 18, 2006 1:48 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Report Group Page Breaks with no break for theReportFooter John, Apparently you wish to force page break after the group footer in such a manner that normally, such break gets forced compulsorily, while at the end of report, there should be no forced page break if adequate space is available to accommodate the report footer as well. It is suggested that you should avoid setting any page break in report design via properties dialog box of group footer. Instead, insert the sample code given below, in format event of appropriate group footer. TxtCount is the name of calculated text box in Detail section (with the expression =1). Its running sum property should be set to Overall. Best wishes, A.D.Tejpal --------------- ================================ Private Sub GroupFooter1_Format(Cancel As Integer, _ FormatCount As Integer) If TxtCount < DCount("*", Me.RecordSource) Then ' Not yet yet reached the end of report. Force ' new page after group footer. Me.GroupFooter1.ForceNewPage = 2 Else ' End of report has been reached. No need to ' force new page. Access will take care of ' placing the report footer either on current page ' or the next one, depending upon room available. Me.GroupFooter1.ForceNewPage = 0 End If End Sub ================================ From Chester_Kaup at kindermorgan.com Tue Sep 19 12:50:41 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Sep 2006 12:50:41 -0500 Subject: [AccessD] Why does the query equate these two fields? Message-ID: The contents of the two joined text fields are not the same but the query equates them. Here is the query and the results. Never seen this before. SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID FROM ConfigMaster INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = dbo_DSS_WellMaster.PID WHERE (((ConfigMaster.PID)="PAT 101-1")) ORDER BY ConfigMaster.PID; Funky Ptrn and Wells to Alloc CO2PAT ChildPID PID PAT 101-1 42415016740001 4241501674 PAT 101-1 42415016770001 4241501677 PAT 101-1 42415017470001 4241501747 PAT 101-1 42415017490001 4241501749 PAT 101-1 42415017610001 4241501761 Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From Chester_Kaup at kindermorgan.com Tue Sep 19 12:57:05 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Sep 2006 12:57:05 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: Lets try this again. Message reformatted itself. The contents of the two joined text fields are not the same but the query equates them. Here is the query and the results. Never seen this before. SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID FROM ConfigMaster INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = dbo_DSS_WellMaster.PID WHERE (((ConfigMaster.PID)="PAT 101-1")) ORDER BY ConfigMaster.PID; CO2PAT ChildPID PID PAT 101-1 42415016740001 4241501674 PAT 101-1 42415016770001 4241501677 PAT 101-1 42415017470001 4241501747 PAT 101-1 42415017490001 4241501749 PAT 101-1 42415017610001 4241501761 Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Sep 19 13:04:27 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 19 Sep 2006 19:04:27 +0100 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: <000a01c6dc16$0c15bbe0$342270c3@minster33c3r25> Whoa that's weird. I've never seen that either. I can't suggest an explanation but I'm going to be interested in the solution. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Kaup, Chester > Sent: 19 September 2006 18:57 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same > but the query equates them. Here is the query and the > results. Never seen this before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However > a large number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From markamatte at hotmail.com Tue Sep 19 13:29:35 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 19 Sep 2006 18:29:35 +0000 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: <000a01c6dc16$0c15bbe0$342270c3@minster33c3r25> Message-ID: Chester, I recreated your scenario...but not you results. In looking at my example...I have 1 question... Q: Are "ConfigMaster" and "dbo_DSS_WellMaster" both tables in a local db...or are they queries/linked table/other? Thanks, Mark A. Matte >From: "Andy Lacey" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Why does the query equate these two fields? >Date: Tue, 19 Sep 2006 19:04:27 +0100 > >Whoa that's weird. I've never seen that either. I can't suggest an >explanation but I'm going to be interested in the solution. > >-- Andy Lacey >http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Kaup, Chester > > Sent: 19 September 2006 18:57 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > > > > > > Lets try this again. Message reformatted itself. > > > > > > The contents of the two joined text fields are not the same > > but the query equates them. Here is the query and the > > results. Never seen this before. > > > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > > > FROM ConfigMaster > > > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > > dbo_DSS_WellMaster.PID > > > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > > > ORDER BY ConfigMaster.PID; > > > > > > CO2PAT ChildPID PID > > PAT 101-1 42415016740001 4241501674 > > PAT 101-1 42415016770001 4241501677 > > PAT 101-1 42415017470001 4241501747 > > PAT 101-1 42415017490001 4241501749 > > PAT 101-1 42415017610001 4241501761 > > > > > > > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > > > > > > > > > > > No trees were killed in the sending of this message. However > > a large number of electrons were terribly inconvenienced. > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Tue Sep 19 13:45:51 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 19 Sep 2006 19:45:51 +0100 Subject: [AccessD] String Help References: <000e01c6d8d2$f0704860$6a01a8c0@LaptopXP> Message-ID: Given the string shown below does anyone know how to using VBA Before you can use the GUIDs from the address as arguments in this macro action, you must replace each %7B string with the { character, replace each %2D string with the - character, and replace each %7D string with the } character. Do not include the & (ampersand) character that follows the %7D string in the list GUID. The string would be of the form http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D This is out of the Access 2007 help file. Your response will be published by the way as I cant do it. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From jwcolby at colbyconsulting.com Tue Sep 19 14:07:52 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 19 Sep 2006 15:07:52 -0400 Subject: [AccessD] String Help In-Reply-To: Message-ID: <006f01c6dc1e$e8b2f650$657aa8c0@m6805> Use replace (MyString,"%7B","{") replace (MyString,"%2D","-") replace (MyString,"%7D","}") John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Tuesday, September 19, 2006 2:46 PM To: Access Developers discussion and problem solving Subject: [AccessD] String Help Given the string shown below does anyone know how to using VBA Before you can use the GUIDs from the address as arguments in this macro action, you must replace each %7B string with the { character, replace each %2D string with the - character, and replace each %7D string with the } character. Do not include the & (ampersand) character that follows the %7D string in the list GUID. The string would be of the form http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13 %2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D This is out of the Access 2007 help file. Your response will be published by the way as I cant do it. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Chester_Kaup at kindermorgan.com Tue Sep 19 14:15:22 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Sep 2006 14:15:22 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: ConfigMaster is a local table. dbo_DSS_Wellmaster is SQL server version 2007 table. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, September 19, 2006 1:30 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Why does the query equate these two fields? Chester, I recreated your scenario...but not you results. In looking at my example...I have 1 question... Q: Are "ConfigMaster" and "dbo_DSS_WellMaster" both tables in a local db...or are they queries/linked table/other? Thanks, Mark A. Matte >From: "Andy Lacey" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Why does the query equate these two fields? >Date: Tue, 19 Sep 2006 19:04:27 +0100 > >Whoa that's weird. I've never seen that either. I can't suggest an >explanation but I'm going to be interested in the solution. > >-- Andy Lacey >http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Kaup, Chester > > Sent: 19 September 2006 18:57 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > > > > > > Lets try this again. Message reformatted itself. > > > > > > The contents of the two joined text fields are not the same > > but the query equates them. Here is the query and the > > results. Never seen this before. > > > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > > > FROM ConfigMaster > > > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > > dbo_DSS_WellMaster.PID > > > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > > > ORDER BY ConfigMaster.PID; > > > > > > CO2PAT ChildPID PID > > PAT 101-1 42415016740001 4241501674 > > PAT 101-1 42415016770001 4241501677 > > PAT 101-1 42415017470001 4241501747 > > PAT 101-1 42415017490001 4241501749 > > PAT 101-1 42415017610001 4241501761 > > > > > > > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > > > > > > > > > > > No trees were killed in the sending of this message. However > > a large number of electrons were terribly inconvenienced. > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Sep 19 14:16:07 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 19 Sep 2006 19:16:07 +0000 Subject: [AccessD] String Help In-Reply-To: Message-ID: Martin, I thought your were changing then launching the site...So here's my stab at it. Good luck, Mark A. Matte Private Sub Command0_Click() Dim site As String site = "http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D" site = Replace(site, "%7B", "{") site = Replace(site, "%2D", "-") site = Replace(site, "%7D&", "%7D") site = Replace(site, "%7D", "}") OpenIE site End Sub Public Function OpenIE(vURL As String) On Error GoTo ErrorHandler IEObj.Visible = True With IEObj ..Visible = True ..Navigate vURL Do Until Not .Busy DoEvents Loop End With Exit Function ErrorHandler: On Error GoTo ErrorHandler2 Set IEObj = Nothing Set IEObj = CreateObject("InternetExplorer.Application") ErrorHandler2: Resume Next End Function >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] String Help >Date: Tue, 19 Sep 2006 19:45:51 +0100 > >Given the string shown below does anyone know how to using VBA > >Before you can use the GUIDs from the address as arguments in this macro >action, you must replace each %7B string with the { character, replace each >%2D string with the - character, and replace each %7D string with the } >character. Do not include the & (ampersand) character that follows the %7D >string in the list GUID. > > > >The string would be of the form > >http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D > > >This is out of the Access 2007 help file. Your response will be published >by the way as I cant do it. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Sep 19 14:20:19 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 19 Sep 2006 19:20:19 +0000 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: Chester, It is an odd scenario...I can't replicate those conditions(the software)...I would probably use a make table and create a small version of the dbo_DSS_Wellmaster and see if it still occurs. I would guess that it would not. I really have no idea what is causing this...but if I had to guess...I would look at the linking aspect of the situation. Good luck, Mark A. Matte >From: "Kaup, Chester" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Why does the query equate these two fields? >Date: Tue, 19 Sep 2006 14:15:22 -0500 > >ConfigMaster is a local table. dbo_DSS_Wellmaster is SQL server version >2007 table. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Tuesday, September 19, 2006 1:30 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Why does the query equate these two fields? > >Chester, > >I recreated your scenario...but not you results. In looking at my >example...I have 1 question... > >Q: Are "ConfigMaster" and "dbo_DSS_WellMaster" both tables in a local >db...or are they queries/linked table/other? > >Thanks, > >Mark A. Matte > > > >From: "Andy Lacey" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Why does the query equate these two fields? > >Date: Tue, 19 Sep 2006 19:04:27 +0100 > > > >Whoa that's weird. I've never seen that either. I can't suggest an > >explanation but I'm going to be interested in the solution. > > > >-- Andy Lacey > >http://www.minstersystems.co.uk > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Kaup, Chester > > > Sent: 19 September 2006 18:57 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > > > > > > > > > > > Lets try this again. Message reformatted itself. > > > > > > > > > The contents of the two joined text fields are not the same > > > but the query equates them. Here is the query and the > > > results. Never seen this before. > > > > > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > > > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > > > > > FROM ConfigMaster > > > > > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > > > dbo_DSS_WellMaster.PID > > > > > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > > > > > ORDER BY ConfigMaster.PID; > > > > > > > > > CO2PAT ChildPID PID > > > PAT 101-1 42415016740001 4241501674 > > > PAT 101-1 42415016770001 4241501677 > > > PAT 101-1 42415017470001 4241501747 > > > PAT 101-1 42415017490001 4241501749 > > > PAT 101-1 42415017610001 4241501761 > > > > > > > > > > > > > > > Chester Kaup > > > Engineering Technician > > > Kinder Morgan CO2 Company, LLP > > > Office (432) 688-3797 > > > FAX (432) 688-3799 > > > > > > > > > > > > > > > > > > No trees were killed in the sending of this message. However > > > a large number of electrons were terribly inconvenienced. > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Tue Sep 19 14:29:43 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 19 Sep 2006 20:29:43 +0100 Subject: [AccessD] String Help References: Message-ID: Thanks to both of you Actually its aparameter to link to a sharepoint list form Access. All sorted now using a combination of both your and Johns suggestion. Thanks Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte Sent: Tue 19/09/2006 20:16 To: accessd at databaseadvisors.com Subject: Re: [AccessD] String Help Martin, I thought your were changing then launching the site...So here's my stab at it. Good luck, Mark A. Matte Private Sub Command0_Click() Dim site As String site = "http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D" site = Replace(site, "%7B", "{") site = Replace(site, "%2D", "-") site = Replace(site, "%7D&", "%7D") site = Replace(site, "%7D", "}") OpenIE site End Sub Public Function OpenIE(vURL As String) On Error GoTo ErrorHandler IEObj.Visible = True With IEObj ..Visible = True ..Navigate vURL Do Until Not .Busy DoEvents Loop End With Exit Function ErrorHandler: On Error GoTo ErrorHandler2 Set IEObj = Nothing Set IEObj = CreateObject("InternetExplorer.Application") ErrorHandler2: Resume Next End Function >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] String Help >Date: Tue, 19 Sep 2006 19:45:51 +0100 > >Given the string shown below does anyone know how to using VBA > >Before you can use the GUIDs from the address as arguments in this macro >action, you must replace each %7B string with the { character, replace each >%2D string with the - character, and replace each %7D string with the } >character. Do not include the & (ampersand) character that follows the %7D >string in the list GUID. > > > >The string would be of the form > >http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D > > >This is out of the Access 2007 help file. Your response will be published >by the way as I cant do it. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tuxedoman888 at gmail.com Tue Sep 19 14:45:02 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 19 Sep 2006 12:45:02 -0700 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: References: Message-ID: <7c8826480609191245o339547c1pdf7154d5fb6f28cc@mail.gmail.com> do you get the same result if you convert dbo_DSS_Wellmaster to a local table? On 9/19/06, Kaup, Chester wrote: > > ConfigMaster is a local table. dbo_DSS_Wellmaster is SQL server version > 2007 table. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, September 19, 2006 1:30 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Why does the query equate these two fields? > > Chester, > > I recreated your scenario...but not you results. In looking at my > example...I have 1 question... > > Q: Are "ConfigMaster" and "dbo_DSS_WellMaster" both tables in a local > db...or are they queries/linked table/other? > > Thanks, > > Mark A. Matte > > > >From: "Andy Lacey" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Why does the query equate these two fields? > >Date: Tue, 19 Sep 2006 19:04:27 +0100 > > > >Whoa that's weird. I've never seen that either. I can't suggest an > >explanation but I'm going to be interested in the solution. > > > >-- Andy Lacey > >http://www.minstersystems.co.uk > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Kaup, Chester > > > Sent: 19 September 2006 18:57 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > > > > > > > > > > > Lets try this again. Message reformatted itself. > > > > > > > > > The contents of the two joined text fields are not the same > > > but the query equates them. Here is the query and the > > > results. Never seen this before. > > > > > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > > > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > > > > > FROM ConfigMaster > > > > > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > > > dbo_DSS_WellMaster.PID > > > > > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > > > > > ORDER BY ConfigMaster.PID; > > > > > > > > > CO2PAT ChildPID PID > > > PAT 101-1 42415016740001 4241501674 > > > PAT 101-1 42415016770001 4241501677 > > > PAT 101-1 42415017470001 4241501747 > > > PAT 101-1 42415017490001 4241501749 > > > PAT 101-1 42415017610001 4241501761 > > > > > > > > > > > > > > > Chester Kaup > > > Engineering Technician > > > Kinder Morgan CO2 Company, LLP > > > Office (432) 688-3797 > > > FAX (432) 688-3799 > > > > > > > > > > > > > > > > > > No trees were killed in the sending of this message. However > > > a large number of electrons were terribly inconvenienced. > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From Chester_Kaup at kindermorgan.com Tue Sep 19 14:50:14 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Sep 2006 14:50:14 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: <7c8826480609191245o339547c1pdf7154d5fb6f28cc@mail.gmail.com> Message-ID: The query acts normally if I import the data rather than link to the SQL server view. I don't know what to think about that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Billy Pang Sent: Tuesday, September 19, 2006 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? do you get the same result if you convert dbo_DSS_Wellmaster to a local table? On 9/19/06, Kaup, Chester wrote: > > ConfigMaster is a local table. dbo_DSS_Wellmaster is SQL server version > 2007 table. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, September 19, 2006 1:30 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Why does the query equate these two fields? > > Chester, > > I recreated your scenario...but not you results. In looking at my > example...I have 1 question... > > Q: Are "ConfigMaster" and "dbo_DSS_WellMaster" both tables in a local > db...or are they queries/linked table/other? > > Thanks, > > Mark A. Matte > > > >From: "Andy Lacey" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Why does the query equate these two fields? > >Date: Tue, 19 Sep 2006 19:04:27 +0100 > > > >Whoa that's weird. I've never seen that either. I can't suggest an > >explanation but I'm going to be interested in the solution. > > > >-- Andy Lacey > >http://www.minstersystems.co.uk > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Kaup, Chester > > > Sent: 19 September 2006 18:57 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Why does the query equate these two fields? > > > > > > > > > > > > > > > Lets try this again. Message reformatted itself. > > > > > > > > > The contents of the two joined text fields are not the same > > > but the query equates them. Here is the query and the > > > results. Never seen this before. > > > > > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, > > > ConfigMaster.ChildPID, dbo_DSS_WellMaster.PID > > > > > > FROM ConfigMaster > > > > > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > > > dbo_DSS_WellMaster.PID > > > > > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > > > > > ORDER BY ConfigMaster.PID; > > > > > > > > > CO2PAT ChildPID PID > > > PAT 101-1 42415016740001 4241501674 > > > PAT 101-1 42415016770001 4241501677 > > > PAT 101-1 42415017470001 4241501747 > > > PAT 101-1 42415017490001 4241501749 > > > PAT 101-1 42415017610001 4241501761 > > > > > > > > > > > > > > > Chester Kaup > > > Engineering Technician > > > Kinder Morgan CO2 Company, LLP > > > Office (432) 688-3797 > > > FAX (432) 688-3799 > > > > > > > > > > > > > > > > > > No trees were killed in the sending of this message. However > > > a large number of electrons were terribly inconvenienced. > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Sep 19 15:35:19 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 20 Sep 2006 06:35:19 +1000 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: References: , Message-ID: <4510E127.5852.2D40DBA@stuart.lexacorp.com.pg> What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From cfoust at infostatsystems.com Tue Sep 19 15:50:23 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 19 Sep 2006 13:50:23 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <000c01c6dc0c$582a8e20$0200a8c0@danwaters> Message-ID: Ye Gads! The best way is to get a good team leader who knows the thing! I'm the veriest novice, but it's my bread and butter. Let me give it some thought. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 19, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Tue Sep 19 15:54:44 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 19 Sep 2006 15:54:44 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: <4510E127.5852.2D40DBA@stuart.lexacorp.com.pg> Message-ID: Actually they are all text fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 19, 2006 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From david.gray at tpg.com.au Tue Sep 19 16:04:17 2006 From: david.gray at tpg.com.au (David Gray) Date: Wed, 20 Sep 2006 07:04:17 +1000 Subject: [AccessD] Slider Control In-Reply-To: <004801c6dbe1$1891ca10$657aa8c0@m6805> Message-ID: <001801c6dc2f$2bd76d70$0101a8c0@server> Thanks John I will try that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, 19 September 2006 9:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Slider Control I've never used it. But if true, it seems you could work around this by setting the scale to 10x as large (use 10 times as many "points" on the scale) and then divide by 10 to get the float number. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Gray Sent: Monday, September 18, 2006 11:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slider Control OK I'll ask a question just to get the ball rolling again. I'm trying to use the slider control to change the scale on a Graph10 control and got it all working only to find it only handles long integers which means I cant set its value to say 1.5. Is this so or have I missed something? David Gray Yahoo ID: flock_it_software ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Sep 19 16:07:15 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 19 Sep 2006 16:07:15 -0500 Subject: [AccessD] Switching to VB.net In-Reply-To: <32770978.1158699330009.JavaMail.root@sniper30> Message-ID: <000301c6dc2f$95d389c0$0200a8c0@danwaters> Or - if you could point to a reference? (no pun intended!) Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net Ye Gads! The best way is to get a good team leader who knows the thing! I'm the veriest novice, but it's my bread and butter. Let me give it some thought. Charlotte -----Original Message----- Subject: Re: [AccessD] Switching to VB.net OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte From ssharkins at setel.com Tue Sep 19 16:14:39 2006 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 19 Sep 2006 17:14:39 -0400 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: <005001c6dc30$9e86c090$5632fad1@SUSANONE> Actually they are all text fields. ========I think I would start by running a few simple queries on the SS side to see if the values equate there too. I just can't help wondering if there's not something in those fields that's evaluating to something SS sees as equal -- rather than this being some kind of odd bug. Susan H. From cfoust at infostatsystems.com Tue Sep 19 18:40:39 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 19 Sep 2006 16:40:39 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <000301c6dc2f$95d389c0$0200a8c0@danwaters> Message-ID: The hills are alive with references. One that still amuses me is the O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages and is 1.5 inches thick! That's one heck of a big nutshell! Rick Dobson's book, Programming Visual Basic .Net for Access Databases", at least starts from familiar territory. There are also some good books in the Microsoft .Net Development Series, including "Data Binding with Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to be confused at first. If you don't understand classes, you'd better learn fast because *everything* in .Net is a class, even a string is a class instance. And if you haven't worked with ADO, you might as well bite the bullet and get ready for ADO.Net. I found it much easier to move to ADO.Net having worked extensively with ADO in addition to DAO. You'll become familiar with XML whether you want to or not because that's where you store stuff that used to go into the registry in Access apps. That means you have to learn to read and write it using the appropriate tools from .Net. The most difficult part of .Net is that you can do so much, in so many possible ways, that you wander around in confusion looking for someone to lead you out of the wilderness. I think this is one language where some training is essential, although finding the right level of training can be a chore too. The AppDev series on .Net is pretty good and takes you through the basics quite well. Rick Dobson's books are good but I haven't been at all impressed with him dvds, which strike me as extremely home-made. Rick is a nice guy and he knows his topic but the videos tend to wander. You'll probably eventually wind up using 3rd party controls, although Microsoft is trying to cover those bases more with every release. The next framework is slated to have a new UI in place of Microsoft Forms (or maybe above or below MS Forms, I haven't figured that out yet) and some nifty developer tools. If you want to do effective database design in .Net, you have to learn not only relational theory but also n-tiered design, since it's pretty pointless to build a .Net app in only one or two tiers. All in all, it's a wild ride, but fun! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 19, 2006 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net Or - if you could point to a reference? (no pun intended!) Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net Ye Gads! The best way is to get a good team leader who knows the thing! I'm the veriest novice, but it's my bread and butter. Let me give it some thought. Charlotte -----Original Message----- Subject: Re: [AccessD] Switching to VB.net OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Tue Sep 19 18:52:56 2006 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 19 Sep 2006 19:52:56 -0400 Subject: [AccessD] Switching to VB.net In-Reply-To: Message-ID: <005a01c6dc46$bb672b80$5632fad1@SUSANONE> I'm glad I'm writing mostly for kids now. :) Susan H. The hills are alive with references. One that still amuses me is the O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages and is 1.5 inches thick! That's one heck of a big nutshell! From martyconnelly at shaw.ca Tue Sep 19 20:43:46 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 19 Sep 2006 18:43:46 -0700 Subject: [AccessD] String Help In-Reply-To: References: Message-ID: <45109CD2.40905@shaw.ca> Haven't got a working WSS to try this against. But you can establish a linked table with following method. I believe you can also interrogate WSS for the GUID of a table with a Lists.GetList method. I may have code lying around from a year ago when I was testing. Gunderloy on Access and Sharepoint http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/odc_OfOfficeSysandWSS.asp To import a SharePoint list to Access, or to add a link to a SharePoint list from an Access database, you can also use the TransferDatabase method but the syntax is somewhat more complex. Here's a Microsoft Visual Basic for Applications (VBA) command to add a link to a SharePoint list named Parts: DoCmd.TransferDatabase acLink, "Windows SharePoint Services", _ "WSS;HDR=NO;IMEX=2;" & _ "DATABASE=http://server_name/sites/site_nam;" & _ "LIST={800BE2B7-FA3C-4CFC-BBB3-8500C4EDCF22};" & _ "VIEW=;RetrieveIds=Yes;TABLE=Parts", acTable, , _ "Parts" Martin Reid wrote: >Thanks to both of you > >Actually its aparameter to link to a sharepoint list form Access. All sorted now using a combination of both your and Johns suggestion. > >Thanks > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte >Sent: Tue 19/09/2006 20:16 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] String Help > > > >Martin, > >I thought your were changing then launching the site...So here's my stab at >it. > >Good luck, > >Mark A. Matte > >Private Sub Command0_Click() >Dim site As String >site = >"http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D" >site = Replace(site, "%7B", "{") >site = Replace(site, "%2D", "-") >site = Replace(site, "%7D&", "%7D") >site = Replace(site, "%7D", "}") >OpenIE site >End Sub > > >Public Function OpenIE(vURL As String) >On Error GoTo ErrorHandler >IEObj.Visible = True >With IEObj >..Visible = True >..Navigate vURL >Do Until Not .Busy >DoEvents >Loop >End With >Exit Function >ErrorHandler: >On Error GoTo ErrorHandler2 >Set IEObj = Nothing >Set IEObj = CreateObject("InternetExplorer.Application") >ErrorHandler2: >Resume Next > >End Function > > > > >>From: "Martin Reid" >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: [AccessD] String Help >>Date: Tue, 19 Sep 2006 19:45:51 +0100 >> >>Given the string shown below does anyone know how to using VBA >> >>Before you can use the GUIDs from the address as arguments in this macro >>action, you must replace each %7B string with the { character, replace each >>%2D string with the - character, and replace each %7D string with the } >>character. Do not include the & (ampersand) character that follows the %7D >>string in the list GUID. >> >> >> >>The string would be of the form >> >>http://MySite12/_layouts/ViewEdit.aspx?List=%7B2A82A404%2D5529%2D47DC%2DAE13%2DAC1D9BC0A84F%7D&View=%7B357B4FE6%2D44CF%2D4275%2DB91F%2D46558301579B%7D >> >> >>This is out of the Access 2007 help file. Your response will be published >>by the way as I cant do it. >> >>Martin >> >> >> >>Martin WP Reid >>Training and Assessment Unit >>Riddle Hall >>Belfast >> >>tel: 02890 974477 >> >> >> >> -- Marty Connelly Victoria, B.C. Canada From Jim.Hale at FleetPride.com Wed Sep 20 08:34:25 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 20 Sep 2006 08:34:25 -0500 Subject: [AccessD] Switching to VB.net Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF9F@corp-es01.fleetpride.com> You've always written for kids, just some are bigger than others ;-) Jim Hale -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Tuesday, September 19, 2006 6:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net I'm glad I'm writing mostly for kids now. :) Susan H. The hills are alive with references. One that still amuses me is the O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages and is 1.5 inches thick! That's one heck of a big nutshell! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From artful at rogers.com Wed Sep 20 08:44:15 2006 From: artful at rogers.com (artful at rogers.com) Date: Wed, 20 Sep 2006 06:44:15 -0700 (PDT) Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: Message-ID: <20060920134415.73139.qmail@web88208.mail.re2.yahoo.com> Any chance you can copy and paste sufficient rows from the two tables so I can recreate the situation? This one interests me but I don't want to manufacture some pointless data and get it wrong. Probably a dozen rows from each table would suffice. Arthur ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 4:54:44 PM Subject: Re: [AccessD] Why does the query equate these two fields? Actually they are all text fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 19, 2006 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Sep 20 09:07:16 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 10:07:16 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax In-Reply-To: <20060920134415.73139.qmail@web88208.mail.re2.yahoo.com> Message-ID: <002a01c6dcbe$17314640$6d01a8c0@LaptopXP> What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John From artful at rogers.com Wed Sep 20 09:07:54 2006 From: artful at rogers.com (artful at rogers.com) Date: Wed, 20 Sep 2006 07:07:54 -0700 (PDT) Subject: [AccessD] Switching to VB.net In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDF9F@corp-es01.fleetpride.com> Message-ID: <20060920140754.13941.qmail@web88206.mail.re2.yahoo.com> Once I asked a kid about 10 years old what he thought was the difference between adults and children, and without a second's hesitation he said, adults have money. ----- Original Message ---- From: "Hale, Jim" To: Access Developers discussion and problem solving Sent: Wednesday, September 20, 2006 9:34:25 AM Subject: Re: [AccessD] Switching to VB.net You've always written for kids, just some are bigger than others ;-) Jim Hale -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Tuesday, September 19, 2006 6:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net I'm glad I'm writing mostly for kids now. :) From andy at minstersystems.co.uk Wed Sep 20 10:34:07 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 20 Sep 2006 15:34:07 +0000 Subject: [AccessD] Why does the query equate these two fields? Message-ID: <20060920143403.8DDA6101C053@smtp.nildram.co.uk> Chester If you swap it round so the FROM is dbo_DSS_WellMaster and you JOIN to ConfigMaster is it still the same? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Why does the query equate these two fields? Date: 20/09/06 13:47 Any chance you can copy and paste sufficient rows from the two tables so I can recreate the situation? This one interests me but I don't want to manufacture some pointless data and get it wrong. Probably a dozen rows from each table would suffice. Arthur ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 4:54:44 PM Subject: Re: [AccessD] Why does the query equate these two fields? Actually they are all text fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 19, 2006 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From cfoust at infostatsystems.com Wed Sep 20 09:38:18 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Sep 2006 07:38:18 -0700 Subject: [AccessD] Quck Question - Report Pageheader Syntax In-Reply-To: <002a01c6dcbe$17314640$6d01a8c0@LaptopXP> Message-ID: Do it in the format event of the page header. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 7:07 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Quck Question - Report Pageheader Syntax What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Sep 20 10:42:35 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 20 Sep 2006 15:42:35 +0000 Subject: [AccessD] Quck Question - Report Pageheader Syntax Message-ID: <20060920144231.238071015D67@smtp.nildram.co.uk> Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From mwp.reid at qub.ac.uk Wed Sep 20 09:47:55 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 20 Sep 2006 15:47:55 +0100 Subject: [AccessD] Your fav Code References: <000e01c6d8d2$f0704860$6a01a8c0@LaptopXP> Message-ID: Folks I was just t hinking. I am due to have soemthing published adn some of you give me permission to use some of your posting on AccessD. What I am also thinking of is a section called Developers Favourite Function/Code I would add in your most useful bit of code with your name beside it. So if anyone would like to do this email me the example of list and I will add it in if I get enough examples. I think Access users etc would enjoy that. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From askolits at ot.com Wed Sep 20 09:51:39 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 10:51:39 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax In-Reply-To: Message-ID: <003901c6dcc4$4ab6ea00$6d01a8c0@LaptopXP> Actually, I want to do it when formatting a group section. But either way, I typed the PageHeader.visible=false in either section and I receive an error. Also tried PageHeaderSection.visible = false and no-go. Must be a syntax error -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Do it in the format event of the page header. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 7:07 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Quck Question - Report Pageheader Syntax What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Sep 20 09:57:52 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 10:57:52 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax In-Reply-To: <20060920144231.238071015D67@smtp.nildram.co.uk> Message-ID: <004001c6dcc5$28fd6140$6d01a8c0@LaptopXP> That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Sep 20 10:23:49 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 11:23:49 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand In-Reply-To: <004001c6dcc5$28fd6140$6d01a8c0@LaptopXP> Message-ID: <004101c6dcc8$c92409f0$6d01a8c0@LaptopXP> I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Sep 20 10:31:40 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Sep 2006 08:31:40 -0700 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand In-Reply-To: <004101c6dcc8$c92409f0$6d01a8c0@LaptopXP> Message-ID: Do you have a report header? If so, you can set the page header not to appear with the report header, which prints on the first page. You don't have to put anything in the report header or make it more than zero height, but if you have one, you can use it to suppress the page header easily. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Sep 20 10:38:28 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 20 Sep 2006 08:38:28 -0700 Subject: [AccessD] Your fav Code In-Reply-To: Message-ID: Mine is Me.holycow.itworked!!!!! Joe Hecht jmhecht at earthlink.net From pcs at azizaz.com Wed Sep 20 10:45:49 2006 From: pcs at azizaz.com (Borge Hansen) Date: Thu, 21 Sep 2006 01:45:49 +1000 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db References: <45109CD2.40905@shaw.ca> Message-ID: <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Hello List, This may be a somewhat OT, but here it is: I've been asked to come up with a solution for showing information coming from an Access Db onto Maps. In a nutshell : We have Acme Enterprises that operates a number of Acme Centres over a large geographical area. Around 20,000 people are employed in total. Each day around 2.5% of the work force due to sickness and other reasons for not turning up need to be replaced by relief staff. We have : permanent relief staff, casual relief staff and relief sourced through agencies We need to show various types of information on a map for a particular region: - all Acme Centres in the region (pinned to their location address) - For a particular Acme Centre the available pool of permanent and casual relief staff (each pinned to their home address) and various info about each person (available or not, highest qualification (worker, team manager, centre manager) etc. .... etc.... So the web page showing a map has to be rendered in a suitable zoom level, and data pulled from an Access Db will give the necessary information to create some pushpins in various shapes and colours ... off the top of my head for example: for staff various shape according to qualification and different colour according to whether available or not; and yet another shape for displaying an Acme Centre..... Now, the question is what tools to use? I've been just starting looking into (i.e. reading about mostly) Mappoint 2006, Mappoint Web Services and Virtual Earth - and all is totally new to me. Microsoft's Mappoint 2006 only have maps for North America and Europe. We need it for Downunder! As I understand it it's a desktop application with a lot of functionality : - Enter an address and it will give you the latitude, longitude coordinates - Different types of pushpins to display on the maps - Many built in functions and 3rd party add ins for performing a wide variety of tasks and optimization calculations ?? Does anyone know if and when an Australia / New Zealand map set will be available? Then there is MS Mappoint Webservices - I've downloaded the SDK and established a developer account with MS and will have a closer look.... but I understand a subscription license is somewhere in the five digit figures.... Any one having experience with this? Then there is MS Virtual Earth..... which is the application (?) I've been poking at the most: I came across the following example of overlaying pushpins from Mappoint 2006 onto Virtual Eath Map: http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm Gilles' add-in can be found here: http://www.gilleskohl.de/mappoint/PinsToFile2006/ I imported the source from the htm web page above into Frontpage, allowed active content, and pre-viewing it in the browser I get the same map rendering. Too easy... But I can't make use of his pinstofile function because... no map set for Australia! I read the following article by Chandu Thota introducing Virtual Earth APIs: http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx which gives a very good intro to the whole subject... Now, instead of viewing all of US as the starting map by changing (from the source view of Addressestable.htm) : the ShowMap function to the following, we are now rendering a map starting in our backyard and zoomed to a suitable level *****code snip ***** function ShowMap() { map = new VEMap('pinsToFileMap'); map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", false); AddPins(); } *********************** and if you want some pushpins to appear on the eastcoast of Australia you can try to insert these lines in the function Addpins() ****snip**** beware of linebreaks AddPin(-28.025344,153.412311,'Sherri Hart Trey Research','
Street Address501 Corporate Centre Drive
CityFranklin
StateTN
ZIP Code37067
CountryUS
','000'); AddPin(-28.050344,153.412311,'Paul West Litware, Inc.','
Street Address312 Walnut Street
CityCincinatti
StateOH
ZIP Code45202
CountryUS
','000'); AddPin(-28.075344,153.412311,'John Fortune Wide World Importers','
Street Address205 North Williamsburg
CityBloomington
StateIL
ZIP Code61704
CountryUS
','000'); AddPin(-28.100344,153.412311,'Don Funk Woodgrove Bank','
Street AddressOne City Place Drive
CityCreve Coeur
StateMO
ZIP Code63141
CountryUS
','000'); AddPin(-28.125344,153.412311,'Kim Akers A. Datum Corporation','
Street Address8300 Norman Center Drive
CityBloomington
StateMN
ZIP Code55437
CountryUS
','000'); AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of Science','
Street Address10260 SW Greenburg Road
CityPortland
StateOR
ZIP Code97223
CountryUS
','000'); AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne Publishing','
Street Address205 108th Ave NE
CityBellevue
StateWA
ZIP Code98004
CountryUS
','000'); AddPin(-28.200344,153.412311,'John Kelly Adventure Works','
Street AddressOne Perimeter Park South
CityBirmingham
StateAL
ZIP Code35243
CountryUS
','000'); ********* So, what I am thinking at this point is that the API set for Virtual Earth appear easy to work with and it's free! ???? But: 1) How do we get latitude and longitude coordinates for a large number of records? Is there any third party software that will go through address information file and return lat long coordinates for an Australian map set? 2) Sample of code structure that will read Access table / query and give us data - similar to the data 'hardcoded' into the function "function AddPins()" in the htm source code: ..... Thanks for reading on .... If any one has input or pointers where to get more information .... much appreciated..... Regards Borge From askolits at ot.com Wed Sep 20 10:46:09 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 11:46:09 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand In-Reply-To: Message-ID: <004701c6dccb$e7971d70$6d01a8c0@LaptopXP> Actually I have a report header but more importantly, I have a group header. In reality, my ultimate goal is that if there is a group header, I do not want to see the page header, If there is a page header, then the group header shouldn't be displayed. One or the other but not both. At the very least, if I can suppress the page header on the first page, that will do for now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Do you have a report header? If so, you can set the page header not to appear with the report header, which prints on the first page. You don't have to put anything in the report header or make it more than zero height, but if you have one, you can use it to suppress the page header easily. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Sep 20 10:52:47 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 20 Sep 2006 08:52:47 -0700 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand In-Reply-To: <004701c6dccb$e7971d70$6d01a8c0@LaptopXP> Message-ID: The page header formats ahead of the group header, so you can't turn it off in the group header, if that's what you're trying to do. You would need to find another way to handle it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Actually I have a report header but more importantly, I have a group header. In reality, my ultimate goal is that if there is a group header, I do not want to see the page header, If there is a page header, then the group header shouldn't be displayed. One or the other but not both. At the very least, if I can suppress the page header on the first page, that will do for now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Do you have a report header? If so, you can set the page header not to appear with the report header, which prints on the first page. You don't have to put anything in the report header or make it more than zero height, but if you have one, you can use it to suppress the page header easily. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Sep 20 10:56:14 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 20 Sep 2006 10:56:14 -0500 Subject: [AccessD] Your fav Code Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0100EFBA@MARLOW_MAIN2.marlow.com> I believe that should be: Me.HolyCow.ItWorked "!!!!!" ;) Drew -----Original Message----- From: Joe Hecht [mailto:jmhecht at earthlink.net] Sent: Wednesday, September 20, 2006 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Sep 20 10:59:07 2006 From: askolits at ot.com (John Skolits) Date: Wed, 20 Sep 2006 11:59:07 -0400 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand In-Reply-To: Message-ID: <004d01c6dccd$b71f5c50$6d01a8c0@LaptopXP> Hmmm.. Thanks for the info. I'll have to think about it a bit. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand The page header formats ahead of the group header, so you can't turn it off in the group header, if that's what you're trying to do. You would need to find another way to handle it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Actually I have a report header but more importantly, I have a group header. In reality, my ultimate goal is that if there is a group header, I do not want to see the page header, If there is a page header, then the group header shouldn't be displayed. One or the other but not both. At the very least, if I can suppress the page header on the first page, that will do for now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Do you have a report header? If so, you can set the page header not to appear with the report header, which prints on the first page. You don't have to put anything in the report header or make it more than zero height, but if you have one, you can use it to suppress the page header easily. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Sep 20 12:03:48 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 20 Sep 2006 17:03:48 +0000 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand Message-ID: <20060920160344.3C12D10160AE@smtp.nildram.co.uk> Well I'm not sure about what you describe, but putting the Me.Section("PageHeader").Visible = False code in the Report Open will suppress the 1st Page Header. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Date: 20/09/06 16:01 Hmmm.. Thanks for the info. I'll have to think about it a bit. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand The page header formats ahead of the group header, so you can't turn it off in the group header, if that's what you're trying to do. You would need to find another way to handle it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Actually I have a report header but more importantly, I have a group header. In reality, my ultimate goal is that if there is a group header, I do not want to see the page header, If there is a page header, then the group header shouldn't be displayed. One or the other but not both. At the very least, if I can suppress the page header on the first page, that will do for now. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 20, 2006 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Do you have a report header? If so, you can set the page header not to appear with the report header, which prints on the first page. You don't have to put anything in the report header or make it more than zero height, but if you have one, you can use it to suppress the page header easily. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand I though once I had the syntax was right, I was all set, but it's still not doing what I wish. Therefore: is there a way to 'prevent' the page header from being displayed on the first page. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, September 20, 2006 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax That was it. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax Hi John Try Me.Section("PageHeader").Visible = False -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Quck Question - Report Pageheader Syntax Date: 20/09/06 14:11 What's the syntax for turning the page header on or off in code? I tried me.PageHeader.visible = false But when compiling it says I have an error. Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From john at winhaven.net Wed Sep 20 12:02:36 2006 From: john at winhaven.net (John Bartow) Date: Wed, 20 Sep 2006 12:02:36 -0500 Subject: [AccessD] Your fav Code In-Reply-To: Message-ID: <013801c6dcd6$92f01f00$6501a8c0@ScuzzPaq> LOL :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! From paul.baumann at rtctech.com Wed Sep 20 12:46:44 2006 From: paul.baumann at rtctech.com (Paul Baumann) Date: Wed, 20 Sep 2006 12:46:44 -0500 Subject: [AccessD] Email format? Message-ID: <002101c6dcdc$bd328b80$6465a8c0@scrptrkr.local> What are the format options for receiving the AccessD Digest? I used to receive it in a more readable format but now it is in plain sequential text. There must be a better way. Thanks for the help in advance. Paul O. Baumann RTC Technologies, Inc. Tel. 262-925-1300 Fax 262-925-1299 Email: paulb at rtctech.com From mmattys at rochester.rr.com Wed Sep 20 13:05:00 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Wed, 20 Sep 2006 14:05:00 -0400 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db References: <45109CD2.40905@shaw.ca> <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Message-ID: <02e001c6dcdf$4d70be90$0202a8c0@default> ----- Original Message ----- From: "Borge Hansen" To: "Access Developers discussion and problem solving" Sent: Wednesday, September 20, 2006 11:45 AM Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db > Hello List, > This may be a somewhat OT, but here it is: > > I've been asked to come up with a solution for showing information coming > from an Access Db onto Maps. . > We need it for Downunder! > Regards > Borge Long question! :) Borge, I suggest you ask at www.mapforums.com or microsoft.public.mappoint (news) You should at least get pointed in the right direction. Here is a friendly, but probably useless gesture: http://www.mattysconsulting.com/country-australia.htm Michael R. Mattys A MapPoint Developer www.mattysconsulting.com From mwp.reid at qub.ac.uk Wed Sep 20 13:04:31 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 20 Sep 2006 19:04:31 +0100 Subject: [AccessD] Your fav Code References: Message-ID: That goes in first. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Joe Hecht Sent: Wed 20/09/2006 16:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 20 13:13:08 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 20 Sep 2006 11:13:08 -0700 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db In-Reply-To: <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Message-ID: <0J5W00GJNL8M6GE0@l-daemon> Hi Borge: Have you looked at Google world wide free geocoder? http://digg.com/programming/Google_Maps_FREE_Worldwide_Geocoder HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Wednesday, September 20, 2006 8:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db Hello List, This may be a somewhat OT, but here it is: I've been asked to come up with a solution for showing information coming from an Access Db onto Maps. In a nutshell : We have Acme Enterprises that operates a number of Acme Centres over a large geographical area. Around 20,000 people are employed in total. Each day around 2.5% of the work force due to sickness and other reasons for not turning up need to be replaced by relief staff. We have : permanent relief staff, casual relief staff and relief sourced through agencies We need to show various types of information on a map for a particular region: - all Acme Centres in the region (pinned to their location address) - For a particular Acme Centre the available pool of permanent and casual relief staff (each pinned to their home address) and various info about each person (available or not, highest qualification (worker, team manager, centre manager) etc. .... etc.... So the web page showing a map has to be rendered in a suitable zoom level, and data pulled from an Access Db will give the necessary information to create some pushpins in various shapes and colours ... off the top of my head for example: for staff various shape according to qualification and different colour according to whether available or not; and yet another shape for displaying an Acme Centre..... Now, the question is what tools to use? I've been just starting looking into (i.e. reading about mostly) Mappoint 2006, Mappoint Web Services and Virtual Earth - and all is totally new to me. Microsoft's Mappoint 2006 only have maps for North America and Europe. We need it for Downunder! As I understand it it's a desktop application with a lot of functionality : - Enter an address and it will give you the latitude, longitude coordinates - Different types of pushpins to display on the maps - Many built in functions and 3rd party add ins for performing a wide variety of tasks and optimization calculations ?? Does anyone know if and when an Australia / New Zealand map set will be available? Then there is MS Mappoint Webservices - I've downloaded the SDK and established a developer account with MS and will have a closer look.... but I understand a subscription license is somewhere in the five digit figures.... Any one having experience with this? Then there is MS Virtual Earth..... which is the application (?) I've been poking at the most: I came across the following example of overlaying pushpins from Mappoint 2006 onto Virtual Eath Map: http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm Gilles' add-in can be found here: http://www.gilleskohl.de/mappoint/PinsToFile2006/ I imported the source from the htm web page above into Frontpage, allowed active content, and pre-viewing it in the browser I get the same map rendering. Too easy... But I can't make use of his pinstofile function because... no map set for Australia! I read the following article by Chandu Thota introducing Virtual Earth APIs: http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx which gives a very good intro to the whole subject... Now, instead of viewing all of US as the starting map by changing (from the source view of Addressestable.htm) : the ShowMap function to the following, we are now rendering a map starting in our backyard and zoomed to a suitable level *****code snip ***** function ShowMap() { map = new VEMap('pinsToFileMap'); map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", false); AddPins(); } *********************** and if you want some pushpins to appear on the eastcoast of Australia you can try to insert these lines in the function Addpins() ****snip**** beware of linebreaks AddPin(-28.025344,153.412311,'Sherri Hart Trey Research','< /table>','000'); AddPin(-28.050344,153.412311,'Paul West Litware, Inc.','
Street Address501 Corporate Centre Drive
CityFranklin
Stat eTN
ZIP Code37067
CountryUS
< /table>','000'); AddPin(-28.075344,153.412311,'John Fortune Wide World Importers','
Street Address312 Walnut Street
CityCincinatti
S tateOH
ZIP Code45202
CountryUS
< td>State< /table>','000'); AddPin(-28.100344,153.412311,'Don Funk Woodgrove Bank','
Street Address205 North Williamsburg
CityBloomington
IL
ZIP Code61704
CountryUS
< /table>','000'); AddPin(-28.125344,153.412311,'Kim Akers A. Datum Corporation','
Street AddressOne City Place Drive
CityCreve Coeur
StateMO
ZIP Code63141
CountryUS
< /table>','000'); AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of Science','
Street Address8300 Norman Center Drive
CityBloomington
S tateMN
ZIP Code55437
CountryUS
< /table>','000'); AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne Publishing','
Street Address10260 SW Greenburg Road
CityPortland
State OR
ZIP Code97223
CountryUS
< /table>','000'); AddPin(-28.200344,153.412311,'John Kelly Adventure Works','
Street Address205 108th Ave NE
CityBellevue
State WA
ZIP Code98004
CountryUS
< /table>','000'); ********* So, what I am thinking at this point is that the API set for Virtual Earth appear easy to work with and it's free! ???? But: 1) How do we get latitude and longitude coordinates for a large number of records? Is there any third party software that will go through address information file and return lat long coordinates for an Australian map set? 2) Sample of code structure that will read Access table / query and give us data - similar to the data 'hardcoded' into the function "function AddPins()" in the htm source code: ..... Thanks for reading on .... If any one has input or pointers where to get more information .... much appreciated..... Regards Borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Sep 20 13:19:11 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 20 Sep 2006 11:19:11 -0700 Subject: [AccessD] Your fav Code In-Reply-To: Message-ID: <004701c6dce1$4612d730$0a01a8c0@desktop> Thanks Martin. I am glad I could contribute to list instead of take for a change. : ) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 20, 2006 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Your fav Code That goes in first. Martin [Joe Hecht] Mine is Me.holycow.itworked!!!!! Joe Hecht jmhecht at earthlink.net From jmhecht at earthlink.net Wed Sep 20 13:19:51 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 20 Sep 2006 11:19:51 -0700 Subject: [AccessD] Your fav Code In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0100EFBA@MARLOW_MAIN2.marlow.com> Message-ID: <004801c6dce1$5dd9b960$0a01a8c0@desktop> Darn, I can never get the syntax in one ; ( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Wednesday, September 20, 2006 8:56 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Your fav Code I believe that should be: Me.HolyCow.ItWorked "!!!!!" ;) Drew -----Original Message----- From: Joe Hecht [mailto:jmhecht at earthlink.net] Sent: Wednesday, September 20, 2006 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Wed Sep 20 13:26:46 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 20 Sep 2006 23:56:46 +0530 Subject: [AccessD] Quck Question - Report Pageheader Syntax - Expand References: <004701c6dccb$e7971d70$6d01a8c0@LaptopXP> Message-ID: John, You are apparently aiming at the following objectives (for a report having page header as well as group header sections): (a) If page header as well as group header sections both have significant content, only the group header should get displayed. (b) Otherwise, either the page header or the group header (only one out of the two) should get displayed, depending upon which section has significant content. Sample code in report's open event, as given at A) below, should get you the desired results. If you simply wish to suppress the page header on first page, use of Cancel statement in format event of page header section, as given at B) below, should be adequate. Best wishes, A.D.Tejpal --------------- A) - Conditional hiding of Page Header section (If Group Header section is available) ================================ Private Sub Report_Open(Cancel As Integer) If Me.PageHeaderSection.Height > 100 _ And Me.GroupHeader0.Height > 100 Then Me.PageHeaderSection.Visible = False Me.GroupHeader0.Visible = True Else If Me.PageHeaderSection.Height > 100 Then Me.PageHeaderSection.Visible = True Me.GroupHeader0.Visible = False Else Me.PageHeaderSection.Visible = False Me.GroupHeader0.Visible = True End If End If End Sub ================================ B) - Hiding Page Header on first page only ================================ Private Sub PageHeaderSection_Format( _ Cancel As Integer, FormatCount As Integer) If Page = 1 Then Cancel = True End If End Sub ================================ ----- Original Message ----- From: John Skolits To: 'Access Developers discussion and problem solving' Sent: Wednesday, September 20, 2006 21:16 Subject: Re: [AccessD] Quck Question - Report Pageheader Syntax - Expand Actually I have a report header but more importantly, I have a group header. In reality, my ultimate goal is that if there is a group header, I do not want to see the page header, If there is a page header, then the group header shouldn't be displayed. One or the other but not both. At the very least, if I can suppress the page header on the first page, that will do for now. From DElam at jenkens.com Wed Sep 20 13:43:34 2006 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 20 Sep 2006 13:43:34 -0500 Subject: [AccessD] Your fav Code Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DE61A@natexch.jenkens.com> A few years back I was taking a VBA course at work. Two of my coworkers, Yo and Rob who were in the class also, take the same train into work. Yo bought bagels to share with the class. It had snowed the night before, so Rob took the (rare) opportunity to throw a snowball at Yo. She yelled back: Rob.Bagel = False. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From carbonnb at gmail.com Wed Sep 20 13:53:23 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 20 Sep 2006 14:53:23 -0400 Subject: [AccessD] Email format? In-Reply-To: <002101c6dcdc$bd328b80$6465a8c0@scrptrkr.local> References: <002101c6dcdc$bd328b80$6465a8c0@scrptrkr.local> Message-ID: On 9/20/06, Paul Baumann wrote: > What are the format options for receiving the AccessD Digest? I used to > receive it in a more readable format but now it is in plain sequential text. > There must be a better way. Paul, There are 2 types of digest. Plain Text or MIME. Plain text is just on long e-mail, as you are receiving now. How the MIME digest gets displayed depends on your e-mail client. Quite often it's a single message with attachments. To chage your settings just goto: http://databaseadvisors.com/mailman/options/accessd/paul.baumann--at--rtctech.com Log in with your password and Scroll down to Get MIME or Plain Text Digests? and change it to MIME. You will need cookies enabled and not blocked for the settings to change and stick. Any problems making the change, please contact me off list. Your friendly neighbourhood Listmaster, -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jmhecht at earthlink.net Wed Sep 20 13:56:13 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 20 Sep 2006 11:56:13 -0700 Subject: [AccessD] Your fav Code In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DE61A@natexch.jenkens.com> Message-ID: <004d01c6dce6$72142730$0a01a8c0@desktop> That goes through my personnel debugger ok -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Wednesday, September 20, 2006 11:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code A few years back I was taking a VBA course at work. Two of my coworkers, Yo and Rob who were in the class also, take the same train into work. Yo bought bagels to share with the class. It had snowed the night before, so Rob took the (rare) opportunity to throw a snowball at Yo. She yelled back: Rob.Bagel = False. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Sep 20 14:09:34 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 20 Sep 2006 20:09:34 +0100 Subject: [AccessD] Your fav Code References: <004d01c6dce6$72142730$0a01a8c0@desktop> Message-ID: ah come on guys!! Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Joe Hecht Sent: Wed 20/09/2006 19:56 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code That goes through my personnel debugger ok -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Wednesday, September 20, 2006 11:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Your fav Code A few years back I was taking a VBA course at work. Two of my coworkers, Yo and Rob who were in the class also, take the same train into work. Yo bought bagels to share with the class. It had snowed the night before, so Rob took the (rare) opportunity to throw a snowball at Yo. She yelled back: Rob.Bagel = False. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Subject: Re: [AccessD] Your fav Code Mine is Me.holycow.itworked!!!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Sep 20 14:11:22 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 20 Sep 2006 12:11:22 -0700 Subject: [AccessD] Your fav Code In-Reply-To: References: <000e01c6d8d2$f0704860$6a01a8c0@LaptopXP> Message-ID: <4511925A.6060605@shaw.ca> Well here are 3 example routines to call up an IE window from access I use to display long text lists in a scrollable window, or to display things like pdf, xls, xml or tiff files obtained either locally or remote. or grab you ip address. Also avoids MS web browser control. I don't mind if you use any of my code. Sub IEHotfixes() '------------------ 'List Windows Hotfixes in IE Window via WMI 'Need two references set 'WMI Extension to DS 1.0 Type Library ' C:\Windows\System32\wbem\wbemads.tlb 'WMICntl 1.0 Type Library ' C:\Windows\System32\wbem\wbemcntl.dll 'takes 10 seconds for first wmi query Dim objExplorer As Object Dim objDocument As Object Dim strComputer As String Dim objWMIService As Object Dim colLoggedEvents As Object Dim objEvent As Object Dim dtmDate As Variant Dim strReturn As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" objExplorer.Toolbar = 1 objExplorer.StatusBar = 0 objExplorer.Width = 800 objExplorer.Height = 570 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open objDocument.Writeln "Automatic Updates Installation History" objDocument.Writeln "" objDocument.Writeln "
Street AddressOne Perimeter Park South
CityBirmingham
St ateAL
ZIP Code35243
CountryUS
" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 'IE Event code=19 WinXP=4377 Set colLoggedEvents = objWMIService.ExecQuery _ ("SELECT * FROM Win32_NTLogEvent WHERE Logfile = 'System' AND " _ & "EventCode = '19' OR EventCode = '4377'") Dim i As Long For Each objEvent In colLoggedEvents dtmDate = objEvent.TimeWritten strReturn = WMIDateStringToDate(dtmDate) objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" i = i + 1 Next Debug.Print "no of events=" & i objDocument.Writeln "
Computer NameInstalled Update(s)Date and Time Installed
" & objEvent.ComputerName & "" & objEvent.Message & "" & strReturn & "
" objDocument.Writeln "" 'objDocument.Write() objDocument.Close MsgBox "finished" Set objExplorer = Nothing Set objDocument = Nothing Set objWMIService = Nothing Set colLoggedEvents = Nothing Set objEvent = Nothing End Sub Function WMIDateStringToDate(dtmDate) Debug.Print dtmDate WMIDateStringToDate = CDate(Mid(dtmDate, 5, 2) & "/" & _ Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _ & " " & Mid(dtmDate, 9, 2) & ":" & _ Mid(dtmDate, 11, 2) & ":" & Mid(dtmDate, _ 13, 2)) End Function Function GrabIPaddress() '------------------ 'Get IP address from dynds.org Dim objExplorer As Object Dim objDocument As Object Dim strHTML As String Set objExplorer = CreateObject("InternetExplorer.Application") 'Set objDocument = objExplorer.Document objExplorer.Navigate "about:blank" objExplorer.Toolbar = 0 objExplorer.StatusBar = 0 objExplorer.Width = 800 objExplorer.Height = 570 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 objExplorer.Navigate "http://checkip.dyndns.org/" Do While (objExplorer.Busy) Loop strHTML = objExplorer.Document.BODY.parentElement.outerHTML Debug.Print strHTML GrabIPaddress = strHTML 'MsgBox "finished" Set objExplorer = Nothing End Function Sub testIEvarious() '------------------ ' display various formats Tiffs PDF XLS local or remote 'If you add a reference to "Microsoft Internet Controls" '(SHDOCVW.DLL) you should be able to do: 'Public IE as .... and find "InternetExplorer" in the popup menu. 'So then you have what you wrote, which is early-bound, 'and you can use that as follows: ' Public IE As InternetExplorer ' Set IE = New InternetExplorer Dim objExplorer As Object Dim strReturn As String Set objExplorer = CreateObject("InternetExplorer.Application") 'Set objDocument = objExplorer.Document objExplorer.Navigate "about:blank" objExplorer.Toolbar = False objExplorer.StatusBar = False objExplorer.MenuBar = True objExplorer.FullScreen = False objExplorer.AddressBar = False objExplorer.Width = 800 objExplorer.Height = 570 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 'objExplorer.Navigate "http://www.databaseadvisors.com/" 'objExplorer.Navigate "192.168.0.1/st_devic.html" 'objExplorer.navigate "http://checkip.dyndns.org/" objExplorer.Navigate "http://www.adobe.com/prodlist.pdf#page=3" 'objExplorer.navigate "C:\records management\aircanadacasestudy.pdf#page=4" 'objExplorer.Navigate "C:\records management\Copy of rim_guide_sarbanes.xls" 'objExplorer.Navigate "http://www.swimseattle.org/Forms/ScholorshipPolicy2003-2004.pdf" 'objExplorer.Navigate "file://C:\records management\aircanadacasestudy.pdf#page=3" 'objExplorer.navigate "C:\records management\aircanadacasestudy.pdf#page=2" 'objExplorer.Navigate "http://www.adobe.com/products/server/pdfs/customer_FAQ.pdf#page=3&zoom=200,250,100" 'objExplorer.Navigate "C:\Documents and Settings\marty\My Documents\My Pictures\VS.tif" 'objExplorer.Navigate "res://msxml.dll/defaultss.xsl" Do While (objExplorer.Busy) Loop MsgBox "finished" Set objExplorer = Nothing End Sub Martin Reid wrote: >Folks > >I was just t hinking. I am due to have soemthing published adn some of you give me permission to use some of your posting on AccessD. What I am also thinking of is a section called Developers Favourite Function/Code > >I would add in your most useful bit of code with your name beside it. > >So if anyone would like to do this email me the example of list and I will add it in if I get enough examples. > >I think Access users etc would enjoy that. > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.405 / Virus Database: 268.12.5/451 - Release Date: 19/09/2006 > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Wed Sep 20 16:23:11 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 20 Sep 2006 14:23:11 -0700 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db In-Reply-To: <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> References: <45109CD2.40905@shaw.ca> <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Message-ID: <4511B13F.1050801@shaw.ca> If you have an address you can get a geocoded Lat/Long from the address postal code It will get you within shooting distance, I know Canada Post sells this type of database. Well I tried looking through Australia Post site I couldn't find it, maybe they sell through third party so phone them. If you have a lot of addresses maybe best. Although I see Australia moving to a more granular DPID than postal code. Here is some xml test code to hit a web service that returns Lat/Long internationally for a postal code and country. if you post in their forums they may give you australian postal code one, it is not posted to avoid spammers posting a web site with all place names in australia. They have other web services to find codes within 10 Km etc. http://www.geonames.org/export/ Public Sub aussiepostalcode() 'Web service location for countries postal codes to return 'latitude and longitude, should write up more generically 'web service descriptions 'http://www.geonames.org/export/#ws 'don't hammer the site with 1000's of postal codes maybe a daily site limit 'see also 'http://support.microsoft.com/?kbid=313372 'need to set reference to XML 4.0 + Dim objHTTP As New MSXML2.XMLHTTP Dim strWebPage As String 'On Error Resume Next 'Retrieve Web Page ' note upper-lowercase important in URL string especially service name ' insert postal code and iso country 2 letter name 'ISO-3166 alpha2 country codes. ' to check just stick url below in IE strWebPage = "http://ws.geonames.org/postalCodeSearch?postalcode=2089&country=AU" ' don't get many postal codes at 90 Lat 0 Long in Canada, but it is there ha ha 'strWebPage = "http://ws.geonames.org/postalCodeSearch?postalcode=H0H0H0&country=CA" objHTTP.Open "POST", strWebPage, False ' stick in your web page url above , file type can be anything asp txt xml html etc. 'depends partially on content type ' generally request header is first line below for forms objHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" 'objHttp.setRequestHeader "Content-Type", "text/xml" 'Post variables depending on html form objHTTP.send strWebPage 'Check status of page If Err.Number Or objHTTP.status <> "200" Then MsgBox Err.Number & Err.Description MsgBox "Cannot retrieve page!" Exit Sub End If ' look at the responses Debug.Print "1*" & objHTTP.getAllResponseHeaders Debug.Print "2*" & objHTTP.statusText Debug.Print "3*" & objHTTP.status Debug.Print "4*" & objHTTP.responseText Dim xmlDoc As New MSXML2.DOMDocument40 Dim objNodeList As IXMLDOMNodeList Dim GeoNode As MSXML2.IXMLDOMNode xmlDoc.async = False xmlDoc.loadXML objHTTP.responseText 'error check dom load here and use XPath method for node selection xmlDoc.setProperty "SelectionLanguage", "XPath" Set objNodeList = xmlDoc.documentElement.selectNodes("//lat") Debug.Print objNodeList.length For Each GeoNode In objNodeList Debug.Print "Latitude : " & GeoNode.Text Next Set objNodeList = xmlDoc.documentElement.selectNodes("//lng") Debug.Print objNodeList.length For Each GeoNode In objNodeList Debug.Print "Longitude : " & GeoNode.Text Next End Sub Borge Hansen wrote: >Hello List, >This may be a somewhat OT, but here it is: > >I've been asked to come up with a solution for showing information coming from an Access Db onto Maps. > >In a nutshell : >We have Acme Enterprises that operates a number of Acme Centres over a large geographical area. >Around 20,000 people are employed in total. >Each day around 2.5% of the work force due to sickness and other reasons for not turning up need to be replaced by relief staff. >We have : permanent relief staff, casual relief staff and relief sourced through agencies > >We need to show various types of information on a map for a particular region: >- all Acme Centres in the region (pinned to their location address) >- For a particular Acme Centre the available pool of permanent and casual relief staff (each pinned to their home address) and >various info about each person (available or not, highest qualification (worker, team manager, centre manager) etc. >.... etc.... > >So the web page showing a map has to be rendered in a suitable zoom level, and data pulled from an Access Db will give the necessary >information to create some pushpins in various shapes and colours ... off the top of my head for example: for staff various shape >according to qualification and different colour according to whether available or not; and yet another shape for displaying an Acme >Centre..... > >Now, the question is what tools to use? > >I've been just starting looking into (i.e. reading about mostly) Mappoint 2006, Mappoint Web Services and Virtual Earth - and all is >totally new to me. > >Microsoft's Mappoint 2006 only have maps for North America and Europe. >We need it for Downunder! >As I understand it it's a desktop application with a lot of functionality : >- Enter an address and it will give you the latitude, longitude coordinates >- Different types of pushpins to display on the maps >- Many built in functions and 3rd party add ins for performing a wide variety of tasks and optimization calculations > >?? Does anyone know if and when an Australia / New Zealand map set will be available? > >Then there is MS Mappoint Webservices - I've downloaded the SDK and established a developer account with MS and will have a closer >look.... but I understand a subscription license is somewhere in the five digit figures.... Any one having experience with this? > >Then there is MS Virtual Earth..... which is the application (?) I've been poking at the most: > >I came across the following example of overlaying pushpins from Mappoint 2006 onto Virtual Eath Map: >http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm > >Gilles' add-in can be found here: http://www.gilleskohl.de/mappoint/PinsToFile2006/ > >I imported the source from the htm web page above into Frontpage, allowed active content, and pre-viewing it in the browser I get >the same map rendering. >Too easy... > >But I can't make use of his pinstofile function because... no map set for Australia! > >I read the following article by Chandu Thota introducing Virtual Earth APIs: >http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx > >which gives a very good intro to the whole subject... > >Now, instead of viewing all of US as the starting map by changing (from the source view of Addressestable.htm) : >the ShowMap function to the following, we are now rendering a map starting in our backyard and zoomed to a suitable level > >*****code snip ***** > function ShowMap() > { > map = new VEMap('pinsToFileMap'); > map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", false); > > AddPins(); > } >*********************** > >and if you want some pushpins to appear on the eastcoast of Australia you can try to insert these lines in the function Addpins() > > >****snip**** beware of linebreaks > AddPin(-28.025344,153.412311,'Sherri Hart Trey Research','
Street Address501 Corporate >Centre Drive
CityFranklin
StateTN
ZIP >Code37067
CountryUS
','000'); > AddPin(-28.100344,153.412311,'Don Funk Woodgrove Bank','
Street AddressOne City Place >Drive
CityCreve Coeur
StateMO
ZIP >Code63141
CountryUS
','000'); > AddPin(-28.200344,153.412311,'John Kelly Adventure Works','
Street AddressOne Perimeter >Park South
CityBirmingham
StateAL
ZIP >Code35243
CountryUS
','000'); >********* > >So, what I am thinking at this point is that the API set for Virtual Earth appear easy to work with and it's free! > >???? >But: > >1) How do we get latitude and longitude coordinates for a large number of records? >Is there any third party software that will go through address information file and return lat long coordinates for an Australian >map set? > >2) Sample of code structure that will read Access table / query and give us data - similar to the data 'hardcoded' into the function >"function AddPins()" in the htm source code: > >..... >Thanks for reading on .... If any one has input or pointers where to get more information .... much appreciated..... > >Regards >Borge > > > > > > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Wed Sep 20 18:00:12 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 20 Sep 2006 19:00:12 -0400 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db References: <45109CD2.40905@shaw.ca> <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Message-ID: <014f01c6dd08$8832df30$153ce944@50NM721> ...borge ...there are a couple really professional gis mapping ocx's available open source that do almost exactly what you want ...at least one has access sample code ...google on gis map ocx. ...if you don't turn something up let me know and I'll see if I still have them installed. William Hindman ----- Original Message ----- From: "Borge Hansen" To: "Access Developers discussion and problem solving" Sent: Wednesday, September 20, 2006 11:45 AM Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db > Hello List, > This may be a somewhat OT, but here it is: > > I've been asked to come up with a solution for showing information coming > from an Access Db onto Maps. > > In a nutshell : > We have Acme Enterprises that operates a number of Acme Centres over a > large geographical area. > Around 20,000 people are employed in total. > Each day around 2.5% of the work force due to sickness and other reasons > for not turning up need to be replaced by relief staff. > We have : permanent relief staff, casual relief staff and relief sourced > through agencies > > We need to show various types of information on a map for a particular > region: > - all Acme Centres in the region (pinned to their location address) > - For a particular Acme Centre the available pool of permanent and casual > relief staff (each pinned to their home address) and > various info about each person (available or not, highest qualification > (worker, team manager, centre manager) etc. > .... etc.... > > So the web page showing a map has to be rendered in a suitable zoom level, > and data pulled from an Access Db will give the necessary > information to create some pushpins in various shapes and colours ... off > the top of my head for example: for staff various shape > according to qualification and different colour according to whether > available or not; and yet another shape for displaying an Acme > Centre..... > > Now, the question is what tools to use? > > I've been just starting looking into (i.e. reading about mostly) Mappoint > 2006, Mappoint Web Services and Virtual Earth - and all is > totally new to me. > > Microsoft's Mappoint 2006 only have maps for North America and Europe. > We need it for Downunder! > As I understand it it's a desktop application with a lot of functionality > : > - Enter an address and it will give you the latitude, longitude > coordinates > - Different types of pushpins to display on the maps > - Many built in functions and 3rd party add ins for performing a wide > variety of tasks and optimization calculations > > ?? Does anyone know if and when an Australia / New Zealand map set will be > available? > > Then there is MS Mappoint Webservices - I've downloaded the SDK and > established a developer account with MS and will have a closer > look.... but I understand a subscription license is somewhere in the five > digit figures.... Any one having experience with this? > > Then there is MS Virtual Earth..... which is the application (?) I've been > poking at the most: > > I came across the following example of overlaying pushpins from Mappoint > 2006 onto Virtual Eath Map: > http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm > > Gilles' add-in can be found here: > http://www.gilleskohl.de/mappoint/PinsToFile2006/ > > I imported the source from the htm web page above into Frontpage, allowed > active content, and pre-viewing it in the browser I get > the same map rendering. > Too easy... > > But I can't make use of his pinstofile function because... no map set for > Australia! > > I read the following article by Chandu Thota introducing Virtual Earth > APIs: > http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx > > which gives a very good intro to the whole subject... > > Now, instead of viewing all of US as the starting map by changing (from > the source view of Addressestable.htm) : > the ShowMap function to the following, we are now rendering a map starting > in our backyard and zoomed to a suitable level > > *****code snip ***** > function ShowMap() > { > map = new VEMap('pinsToFileMap'); > map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", > false); > > AddPins(); > } > *********************** > > and if you want some pushpins to appear on the eastcoast of Australia you > can try to insert these lines in the function Addpins() > > > ****snip**** beware of linebreaks > AddPin(-28.025344,153.412311,'Sherri Hart Trey > Research','
Street Address501 Corporate > Centre > Drive
CityFranklin
StateTN
ZIP > Code37067
CountryUS
','000'); > AddPin(-28.050344,153.412311,'Paul West Litware, > Inc.','
Street Address312 Walnut > Street
CityCincinatti
StateOH
ZIP > Code45202
CountryUS
','000'); > AddPin(-28.075344,153.412311,'John Fortune Wide World > Importers','
Street Address205 North > Williamsburg
CityBloomington
StateIL
ZIP > Code61704
CountryUS
','000'); > AddPin(-28.100344,153.412311,'Don Funk Woodgrove > Bank','
Street AddressOne City Place > Drive
CityCreve > Coeur
StateMO
ZIP > Code63141
CountryUS
','000'); > AddPin(-28.125344,153.412311,'Kim Akers A. Datum > Corporation','
Street Address8300 Norman > Center > Drive
CityBloomington
StateMN
ZIP > Code55437
CountryUS
','000'); > AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of > Science','
Street Address10260 > SW Greenburg Road >
CityPortland
StateOR
ZIP > Code97223
CountryUS
','000'); > AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne > Publishing','
Street Address205 > 108th Ave NE >
CityBellevue
StateWA
ZIP > Code98004
CountryUS
','000'); > AddPin(-28.200344,153.412311,'John Kelly Adventure > Works','
Street AddressOne Perimeter > Park > South
CityBirmingham
StateAL
ZIP > Code35243
CountryUS
','000'); > ********* > > So, what I am thinking at this point is that the API set for Virtual Earth > appear easy to work with and it's free! > > ???? > But: > > 1) How do we get latitude and longitude coordinates for a large number of > records? > Is there any third party software that will go through address information > file and return lat long coordinates for an Australian > map set? > > 2) Sample of code structure that will read Access table / query and give > us data - similar to the data 'hardcoded' into the function > "function AddPins()" in the htm source code: > > ..... > Thanks for reading on .... If any one has input or pointers where to get > more information .... much appreciated..... > > Regards > Borge > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From david.gray at tpg.com.au Wed Sep 20 22:42:26 2006 From: david.gray at tpg.com.au (David Gray) Date: Thu, 21 Sep 2006 13:42:26 +1000 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db In-Reply-To: <023501c6dccb$d8a87bb0$fa10a8c0@Albatross> Message-ID: <008601c6dd2f$f5a090e0$0101a8c0@server> Try http://dev.live.com/virtualearth/sdk/ and http://local.live.com/ David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software ? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Thursday, 21 September 2006 1:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db Hello List, This may be a somewhat OT, but here it is: I've been asked to come up with a solution for showing information coming from an Access Db onto Maps. In a nutshell : We have Acme Enterprises that operates a number of Acme Centres over a large geographical area. Around 20,000 people are employed in total. Each day around 2.5% of the work force due to sickness and other reasons for not turning up need to be replaced by relief staff. We have : permanent relief staff, casual relief staff and relief sourced through agencies We need to show various types of information on a map for a particular region: - all Acme Centres in the region (pinned to their location address) - For a particular Acme Centre the available pool of permanent and casual relief staff (each pinned to their home address) and various info about each person (available or not, highest qualification (worker, team manager, centre manager) etc. .... etc.... So the web page showing a map has to be rendered in a suitable zoom level, and data pulled from an Access Db will give the necessary information to create some pushpins in various shapes and colours ... off the top of my head for example: for staff various shape according to qualification and different colour according to whether available or not; and yet another shape for displaying an Acme Centre..... Now, the question is what tools to use? I've been just starting looking into (i.e. reading about mostly) Mappoint 2006, Mappoint Web Services and Virtual Earth - and all is totally new to me. Microsoft's Mappoint 2006 only have maps for North America and Europe. We need it for Downunder! As I understand it it's a desktop application with a lot of functionality : - Enter an address and it will give you the latitude, longitude coordinates - Different types of pushpins to display on the maps - Many built in functions and 3rd party add ins for performing a wide variety of tasks and optimization calculations ?? Does anyone know if and when an Australia / New Zealand map set will be available? Then there is MS Mappoint Webservices - I've downloaded the SDK and established a developer account with MS and will have a closer look.... but I understand a subscription license is somewhere in the five digit figures.... Any one having experience with this? Then there is MS Virtual Earth..... which is the application (?) I've been poking at the most: I came across the following example of overlaying pushpins from Mappoint 2006 onto Virtual Eath Map: http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm Gilles' add-in can be found here: http://www.gilleskohl.de/mappoint/PinsToFile2006/ I imported the source from the htm web page above into Frontpage, allowed active content, and pre-viewing it in the browser I get the same map rendering. Too easy... But I can't make use of his pinstofile function because... no map set for Australia! I read the following article by Chandu Thota introducing Virtual Earth APIs: http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx which gives a very good intro to the whole subject... Now, instead of viewing all of US as the starting map by changing (from the source view of Addressestable.htm) : the ShowMap function to the following, we are now rendering a map starting in our backyard and zoomed to a suitable level *****code snip ***** function ShowMap() { map = new VEMap('pinsToFileMap'); map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", false); AddPins(); } *********************** and if you want some pushpins to appear on the eastcoast of Australia you can try to insert these lines in the function Addpins() ****snip**** beware of linebreaks AddPin(-28.025344,153.412311,'Sherri Hart Trey Research','< /table>','000'); AddPin(-28.050344,153.412311,'Paul West Litware, Inc.','
Street Address501 Corporate Centre Drive
CityFranklin
Stat eTN
ZIP Code37067
CountryUS
< /table>','000'); AddPin(-28.075344,153.412311,'John Fortune Wide World Importers','
Street Address312 Walnut Street
CityCincinatti
S tateOH
ZIP Code45202
CountryUS
< td>State< /table>','000'); AddPin(-28.100344,153.412311,'Don Funk Woodgrove Bank','
Street Address205 North Williamsburg
CityBloomington
IL
ZIP Code61704
CountryUS
< /table>','000'); AddPin(-28.125344,153.412311,'Kim Akers A. Datum Corporation','
Street AddressOne City Place Drive
CityCreve Coeur
StateMO
ZIP Code63141
CountryUS
< /table>','000'); AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of Science','
Street Address8300 Norman Center Drive
CityBloomington
S tateMN
ZIP Code55437
CountryUS
< /table>','000'); AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne Publishing','
Street Address10260 SW Greenburg Road
CityPortland
State OR
ZIP Code97223
CountryUS
< /table>','000'); AddPin(-28.200344,153.412311,'John Kelly Adventure Works','
Street Address205 108th Ave NE
CityBellevue
State WA
ZIP Code98004
CountryUS
< /table>','000'); ********* So, what I am thinking at this point is that the API set for Virtual Earth appear easy to work with and it's free! ???? But: 1) How do we get latitude and longitude coordinates for a large number of records? Is there any third party software that will go through address information file and return lat long coordinates for an Australian map set? 2) Sample of code structure that will read Access table / query and give us data - similar to the data 'hardcoded' into the function "function AddPins()" in the htm source code: ..... Thanks for reading on .... If any one has input or pointers where to get more information .... much appreciated..... Regards Borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Thu Sep 21 00:37:32 2006 From: viner at EUnet.yu (Ervin Brindza) Date: Thu, 21 Sep 2006 07:37:32 +0200 Subject: [AccessD] Switching to VB.net References: <005a01c6dc46$bb672b80$5632fad1@SUSANONE> Message-ID: <00a201c6dd40$263ec090$0100a8c0@RazvojErvin> VB.Net for kids?! ;-) Ervin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, September 20, 2006 1:52 AM Subject: Re: [AccessD] Switching to VB.net > I'm glad I'm writing mostly for kids now. :) > > Susan H. > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Sep 21 02:58:23 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 21 Sep 2006 09:58:23 +0200 Subject: [AccessD] odd problem field to short updating SQL server from an access MDB. Message-ID: I got a strange problem. I have an update routine that updates articles and prices in my webshop (SQL server) from my Access database (MDB 2003). Its a plain Update query that updates prices and descriptions that I first downloaded and processed from my supplier. This routine gets executed every night running Access 2K3 on my W2K server. Since a week or so, I get every morning a error 3163, "The field is too small to Accept the amount of data you attempted to add. Try inserting or pasting less data." It is posible that a new article has got a longer descriptiontext, so I'm trying to find where the problem is. And now the odd thing, when running the same database and query on my notebook computer the query runs fine without any error!!! So I don't understand why the same database(s), same query runs fine on my notebook computer and fails on my server. Erwin Craps Zaakvoerder Nieuwe internetwinkel op www.ithelps.be/shop www.ithelps.be/onsgezin bezoek ook eens de website van mijn zus www.friedacraps.be This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Chester_Kaup at kindermorgan.com Thu Sep 21 07:24:10 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 21 Sep 2006 07:24:10 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: <20060920134415.73139.qmail@web88208.mail.re2.yahoo.com> Message-ID: I could send you some data but if the data is native to access it works correctly. Only does it fail if the data source of dbo_DSS_Wellmaser is SQL Server 2007 version. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, September 20, 2006 8:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? Any chance you can copy and paste sufficient rows from the two tables so I can recreate the situation? This one interests me but I don't want to manufacture some pointless data and get it wrong. Probably a dozen rows from each table would suffice. Arthur ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 4:54:44 PM Subject: Re: [AccessD] Why does the query equate these two fields? Actually they are all text fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 19, 2006 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Thu Sep 21 07:38:47 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 21 Sep 2006 07:38:47 -0500 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: References: Message-ID: <6.2.3.4.2.20060921073644.022c78b0@pop3.highstream.net> Broge, Take a look at the .Net control from ThinkGeo.com. I have used the one for Windows VB applications with great success. I am sure they will work with you on the geo-coding. I think they have a tool for that. Robert At 03:06 AM 9/21/2006, you wrote: >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen >Sent: Wednesday, September 20, 2006 8:46 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db > >Hello List, >This may be a somewhat OT, but here it is: > >I've been asked to come up with a solution for showing information coming >from an Access Db onto Maps. > >In a nutshell : >We have Acme Enterprises that operates a number of Acme Centres over a large >geographical area. >Around 20,000 people are employed in total. >Each day around 2.5% of the work force due to sickness and other reasons for >not turning up need to be replaced by relief staff. >We have : permanent relief staff, casual relief staff and relief sourced >through agencies > >We need to show various types of information on a map for a particular >region: >- all Acme Centres in the region (pinned to their location address) >- For a particular Acme Centre the available pool of permanent and casual >relief staff (each pinned to their home address) and >various info about each person (available or not, highest qualification >(worker, team manager, centre manager) etc. >.... etc.... > >So the web page showing a map has to be rendered in a suitable zoom level, >and data pulled from an Access Db will give the necessary >information to create some pushpins in various shapes and colours ... off >the top of my head for example: for staff various shape >according to qualification and different colour according to whether >available or not; and yet another shape for displaying an Acme >Centre..... > >Now, the question is what tools to use? > >I've been just starting looking into (i.e. reading about mostly) Mappoint >2006, Mappoint Web Services and Virtual Earth - and all is >totally new to me. > >Microsoft's Mappoint 2006 only have maps for North America and Europe. >We need it for Downunder! >As I understand it it's a desktop application with a lot of functionality : >- Enter an address and it will give you the latitude, longitude coordinates >- Different types of pushpins to display on the maps >- Many built in functions and 3rd party add ins for performing a wide >variety of tasks and optimization calculations > >?? Does anyone know if and when an Australia / New Zealand map set will be >available? > >Then there is MS Mappoint Webservices - I've downloaded the SDK and >established a developer account with MS and will have a closer >look.... but I understand a subscription license is somewhere in the five >digit figures.... Any one having experience with this? > >Then there is MS Virtual Earth..... which is the application (?) I've been >poking at the most: > >I came across the following example of overlaying pushpins from Mappoint >2006 onto Virtual Eath Map: >http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm > >Gilles' add-in can be found here: >http://www.gilleskohl.de/mappoint/PinsToFile2006/ > >I imported the source from the htm web page above into Frontpage, allowed >active content, and pre-viewing it in the browser I get >the same map rendering. >Too easy... > >But I can't make use of his pinstofile function because... no map set for >Australia! > >I read the following article by Chandu Thota introducing Virtual Earth APIs: >http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx > >which gives a very good intro to the whole subject... > >Now, instead of viewing all of US as the starting map by changing (from the >source view of Addressestable.htm) : >the ShowMap function to the following, we are now rendering a map starting >in our backyard and zoomed to a suitable level > >*****code snip ***** > function ShowMap() > { > map = new VEMap('pinsToFileMap'); > map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", >false); > > AddPins(); > } >*********************** > >and if you want some pushpins to appear on the eastcoast of Australia you >can try to insert these lines in the function Addpins() > > >****snip**** beware of linebreaks > AddPin(-28.025344,153.412311,'Sherri Hart Trey >Research','
Street AddressOne Perimeter Park South
CityBirmingham
St ateAL
ZIP Code35243
CountryUS
< >/table>','000'); > AddPin(-28.050344,153.412311,'Paul West Litware, >Inc.','
Street Address501 Corporate >Centre >Drive
CityFranklin
Stat >eTN
ZIP >Code37067
CountryUS
< >/table>','000'); > AddPin(-28.075344,153.412311,'John Fortune Wide World >Importers','
Street Address312 Walnut >Street
CityCincinatti
S >tateOH
ZIP >Code45202
CountryUS
< >td>State< >/table>','000'); > AddPin(-28.100344,153.412311,'Don Funk Woodgrove >Bank','
Street Address205 North >Williamsburg
CityBloomington
IL
ZIP >Code61704
CountryUS
< >/table>','000'); > AddPin(-28.125344,153.412311,'Kim Akers A. Datum >Corporation','
Street AddressOne City Place >Drive
CityCreve >Coeur
StateMO
ZIP >Code63141
CountryUS
< >/table>','000'); > AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of >Science','
Street Address8300 Norman >Center >Drive
CityBloomington
S >tateMN
ZIP >Code55437
CountryUS
< >/table>','000'); > AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne >Publishing','
Street Address10260 >SW Greenburg Road >
CityPortland
State >OR
ZIP >Code97223
CountryUS
< >/table>','000'); > AddPin(-28.200344,153.412311,'John Kelly Adventure >Works','
Street Address205 >108th Ave NE >
CityBellevue
State >WA
ZIP >Code98004
CountryUS
< >/table>','000'); >********* > >So, what I am thinking at this point is that the API set for Virtual Earth >appear easy to work with and it's free! > >???? >But: > >1) How do we get latitude and longitude coordinates for a large number of >records? >Is there any third party software that will go through address information >file and return lat long coordinates for an Australian >map set? > >2) Sample of code structure that will read Access table / query and give us >data - similar to the data 'hardcoded' into the function >"function AddPins()" in the htm source code: > >..... >Thanks for reading on .... If any one has input or pointers where to get >more information .... much appreciated..... > >Regards >Borge From Lambert.Heenan at AIG.com Wed Sep 20 11:14:27 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 20 Sep 2006 12:14:27 -0400 Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db Message-ID: Have you considered Google Earth? http://earth.google.com/userguide/v4/ http://earth.google.com/kml/whatiskml.html Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Wednesday, September 20, 2006 11:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT? Mappoint - Virtual Earth - and Access Db Hello List, This may be a somewhat OT, but here it is: I've been asked to come up with a solution for showing information coming from an Access Db onto Maps. In a nutshell : We have Acme Enterprises that operates a number of Acme Centres over a large geographical area. Around 20,000 people are employed in total. Each day around 2.5% of the work force due to sickness and other reasons for not turning up need to be replaced by relief staff. We have : permanent relief staff, casual relief staff and relief sourced through agencies We need to show various types of information on a map for a particular region: - all Acme Centres in the region (pinned to their location address) - For a particular Acme Centre the available pool of permanent and casual relief staff (each pinned to their home address) and various info about each person (available or not, highest qualification (worker, team manager, centre manager) etc. .... etc.... So the web page showing a map has to be rendered in a suitable zoom level, and data pulled from an Access Db will give the necessary information to create some pushpins in various shapes and colours ... off the top of my head for example: for staff various shape according to qualification and different colour according to whether available or not; and yet another shape for displaying an Acme Centre..... Now, the question is what tools to use? I've been just starting looking into (i.e. reading about mostly) Mappoint 2006, Mappoint Web Services and Virtual Earth - and all is totally new to me. Microsoft's Mappoint 2006 only have maps for North America and Europe. We need it for Downunder! As I understand it it's a desktop application with a lot of functionality : - Enter an address and it will give you the latitude, longitude coordinates - Different types of pushpins to display on the maps - Many built in functions and 3rd party add ins for performing a wide variety of tasks and optimization calculations ?? Does anyone know if and when an Australia / New Zealand map set will be available? Then there is MS Mappoint Webservices - I've downloaded the SDK and established a developer account with MS and will have a closer look.... but I understand a subscription license is somewhere in the five digit figures.... Any one having experience with this? Then there is MS Virtual Earth..... which is the application (?) I've been poking at the most: I came across the following example of overlaying pushpins from Mappoint 2006 onto Virtual Eath Map: http://www.gilleskohl.de/mappoint/PinsToFile2006/Samples/Addressestable.htm Gilles' add-in can be found here: http://www.gilleskohl.de/mappoint/PinsToFile2006/ I imported the source from the htm web page above into Frontpage, allowed active content, and pre-viewing it in the browser I get the same map rendering. Too easy... But I can't make use of his pinstofile function because... no map set for Australia! I read the following article by Chandu Thota introducing Virtual Earth APIs: http://msdn.microsoft.com/msdnmag/issues/06/09/EarthlyDelights/default.aspx which gives a very good intro to the whole subject... Now, instead of viewing all of US as the starting map by changing (from the source view of Addressestable.htm) : the ShowMap function to the following, we are now rendering a map starting in our backyard and zoomed to a suitable level *****code snip ***** function ShowMap() { map = new VEMap('pinsToFileMap'); map.LoadMap(new VELatLong(-28.000344,153.408422), 15, "r", false); AddPins(); } *********************** and if you want some pushpins to appear on the eastcoast of Australia you can try to insert these lines in the function Addpins() ****snip**** beware of linebreaks AddPin(-28.025344,153.412311,'Sherri Hart Trey Research','
Street AddressOne Perimeter >Park >South
CityBirmingham
St >ateAL
ZIP >Code35243
CountryUS
< /table>','000'); AddPin(-28.050344,153.412311,'Paul West Litware, Inc.','
Street Address501 Corporate Centre Drive
CityFranklin
Stat eTN
ZIP Code37067
CountryUS
< /table>','000'); AddPin(-28.075344,153.412311,'John Fortune Wide World Importers','
Street Address312 Walnut Street
CityCincinatti
S tateOH
ZIP Code45202
CountryUS
< td>State< /table>','000'); AddPin(-28.100344,153.412311,'Don Funk Woodgrove Bank','
Street Address205 North Williamsburg
CityBloomington
IL
ZIP Code61704
CountryUS
< /table>','000'); AddPin(-28.125344,153.412311,'Kim Akers A. Datum Corporation','
Street AddressOne City Place Drive
CityCreve Coeur
StateMO
ZIP Code63141
CountryUS
< /table>','000'); AddPin(-28.150344,153.412311,'Pat Coleman Baldwin Museum of Science','
Street Address8300 Norman Center Drive
CityBloomington
S tateMN
ZIP Code55437
CountryUS
< /table>','000'); AddPin(-28.175344,153.412311,'Elizabeth Boyle Lucerne Publishing','
Street Address10260 SW Greenburg Road
CityPortland
State OR
ZIP Code97223
CountryUS
< /table>','000'); AddPin(-28.200344,153.412311,'John Kelly Adventure Works','
Street Address205 108th Ave NE
CityBellevue
State WA
ZIP Code98004
CountryUS
< /table>','000'); ********* So, what I am thinking at this point is that the API set for Virtual Earth appear easy to work with and it's free! ???? But: 1) How do we get latitude and longitude coordinates for a large number of records? Is there any third party software that will go through address information file and return lat long coordinates for an Australian map set? 2) Sample of code structure that will read Access table / query and give us data - similar to the data 'hardcoded' into the function "function AddPins()" in the htm source code: ..... Thanks for reading on .... If any one has input or pointers where to get more information .... much appreciated..... Regards Borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Sep 21 08:02:27 2006 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 21 Sep 2006 08:02:27 -0500 Subject: [AccessD] odd problem field to short updating SQL server from an access MDB. In-Reply-To: References: Message-ID: Always odd when something works on one system and not another. I would try to change the update query to a select query temporarly and export that to a text file to see just what exactly it is trying to add. Could be a number of decimals issue with a numeric field too. Or if not a select query, how about a make table query to a temp Access table so you can see what kind of fields access thinks it requires and compare that to what you have in the SQL table. I assume that you have compacted and repaired the app on the failing machine? Rebooted the failing machine? all that standard stuff we do when weirdness is encountered. Good luck with it Erwin. GK On 9/21/06, Erwin Craps - IT Helps wrote: > > I got a strange problem. > > I have an update routine that updates articles and prices in my webshop > (SQL server) from my Access database (MDB 2003). > Its a plain Update query that updates prices and descriptions that I > first downloaded and processed from my supplier. > This routine gets executed every night running Access 2K3 on my W2K > server. > Since a week or so, I get every morning a error 3163, > "The field is too small to Accept the amount of data you attempted to > add. Try inserting or pasting less data." > It is posible that a new article has got a longer descriptiontext, so > I'm trying to find where the problem is. > > And now the odd thing, when running the same database and query on my > notebook computer the query runs fine without any error!!! > > So I don't understand why the same database(s), same query runs fine on > my notebook computer and fails on my server. > > > > > > > Erwin Craps > > Zaakvoerder > > > > Nieuwe internetwinkel op www.ithelps.be/shop > > > www.ithelps.be/onsgezin > > bezoek ook eens de website van mijn zus www.friedacraps.be > > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From Chester_Kaup at kindermorgan.com Thu Sep 21 08:07:34 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 21 Sep 2006 08:07:34 -0500 Subject: [AccessD] Why does the query equate these two fields? In-Reply-To: <20060920143403.8DDA6101C053@smtp.nildram.co.uk> Message-ID: If I swap it around as you suggested I get the same results. If I leave out the where statement and use the SQL server view dbo_DSS_WellMaster the query works correctly. If I make an access native copy of the SQL server view the query works correctly. I suspect that access is seeing all 14 character of the field dbo.DSS.Wellmaster.PID in the SQL server view that retrieves the first 10 characters from the actual table. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, September 20, 2006 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? Chester If you swap it round so the FROM is dbo_DSS_WellMaster and you JOIN to ConfigMaster is it still the same? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Why does the query equate these two fields? Date: 20/09/06 13:47 Any chance you can copy and paste sufficient rows from the two tables so I can recreate the situation? This one interests me but I don't want to manufacture some pointless data and get it wrong. Probably a dozen rows from each table would suffice. Arthur ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Tuesday, September 19, 2006 4:54:44 PM Subject: Re: [AccessD] Why does the query equate these two fields? Actually they are all text fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, September 19, 2006 3:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Why does the query equate these two fields? What are the datatypes of ChildPID and PID? Looks like a numeric precision problem to me. On 19 Sep 2006 at 12:57, Kaup, Chester wrote: > > > Lets try this again. Message reformatted itself. > > > The contents of the two joined text fields are not the same but the > query equates them. Here is the query and the results. Never seen this > before. > > SELECT DISTINCT ConfigMaster.PID AS CO2PAT, ConfigMaster.ChildPID, > dbo_DSS_WellMaster.PID > > FROM ConfigMaster > > INNER JOIN dbo_DSS_WellMaster ON ConfigMaster.ChildPID = > dbo_DSS_WellMaster.PID > > WHERE (((ConfigMaster.PID)="PAT 101-1")) > > ORDER BY ConfigMaster.PID; > > > CO2PAT ChildPID PID > PAT 101-1 42415016740001 4241501674 > PAT 101-1 42415016770001 4241501677 > PAT 101-1 42415017470001 4241501747 > PAT 101-1 42415017490001 4241501749 > PAT 101-1 42415017610001 4241501761 > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However a large > number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Thu Sep 21 09:14:20 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 21 Sep 2006 10:14:20 -0400 Subject: [AccessD] Switching to VB.net In-Reply-To: <00a201c6dd40$263ec090$0100a8c0@RazvojErvin> Message-ID: <004101c6dd88$3e5e0e40$640fa8c0@ULTRADNT> VB.net for kids? Here it is: Using Visual Studio Express with Lego Mindstorms http://msdn.microsoft.com/coding4fun/lego/default.aspx Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ervin Brindza Sent: Thursday, September 21, 2006 1:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net VB.Net for kids?! ;-) Ervin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, September 20, 2006 1:52 AM Subject: Re: [AccessD] Switching to VB.net > I'm glad I'm writing mostly for kids now. :) > > Susan H. > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sun Sep 10 14:50:00 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 10 Sep 2006 20:50:00 +0100 Subject: [AccessD] Passing a form byval References: <007501c6d2cc$38f17f30$657aa8c0@m6805> Message-ID: I need to pass a text control on a form to a procedure byval as opposed to byref as byref errors out. How can I pass this to the procedure byval? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Gustav at cactus.dk Fri Sep 22 05:19:30 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Sep 2006 12:19:30 +0200 Subject: [AccessD] Passing a form byval Message-ID: Hi Martin It works here: Public Function SetTextbox(ByRef txt As TextBox) Debug.Print txt.Value txt.value = "33" Debug.Print txt.Value End Function Now, call it like this: ? SetTextbox(Forms.Item(0)!txtYourTextbox) /gustav >>> mwp.reid at qub.ac.uk 10-09-2006 21:50:00 >>> I need to pass a text control on a form to a procedure byval as opposed to byref as byref errors out. How can I pass this to the procedure byval? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast From mwp.reid at qub.ac.uk Fri Sep 22 05:39:43 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 22 Sep 2006 11:39:43 +0100 Subject: [AccessD] Passing a form byval References: Message-ID: Hi Gustav Many thanks. Was the last bit I missed. Just thinking I sent that email on the 10th of Sept??? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Gustav Brock Sent: Fri 22/09/2006 11:19 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Passing a form byval Hi Martin It works here: Public Function SetTextbox(ByRef txt As TextBox) Debug.Print txt.Value txt.value = "33" Debug.Print txt.Value End Function Now, call it like this: ? SetTextbox(Forms.Item(0)!txtYourTextbox) /gustav >>> mwp.reid at qub.ac.uk 10-09-2006 21:50:00 >>> I need to pass a text control on a form to a procedure byval as opposed to byref as byref errors out. How can I pass this to the procedure byval? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 22 05:57:58 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 22 Sep 2006 12:57:58 +0200 Subject: [AccessD] Passing a form byval Message-ID: Hi Martin That delay is at your side, first step: Return-path: Received: from Pinjo ([192.168.1.14]) by cactus.dk; Fri, 22 Sep 2006 10:03:41 +0200 Received: from iits0144.inlink.com ([209.135.140.44]) by Pinjo with SMTP id ; Fri, 22 Sep 2006 10:02:10 +0200 Received: from databaseadvisors.com (databaseadvisors.com [209.135.140.44]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id k8M810S21069; Fri, 22 Sep 2006 03:01:02 -0500 Received: from mailhub2.qub.ac.uk (jeremiah.qub.ac.uk [143.117.14.19]) by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id k8M80SS20973 for ; Fri, 22 Sep 2006 03:00:29 -0500 Received: from qub-xchange-01.ads.qub.ac.uk ([143.117.14.27]) by mailhub2.qub.ac.uk with smtp (Exim 4.60) (envelope-from ) id 1GQfxc-0004L3-7m for accessd at databaseadvisors.com; Fri, 22 Sep 2006 08:00:36 +0000 Date: Sun, 10 Sep 2006 20:50:00 +0100 Message-ID: /gustav >>> mwp.reid at qub.ac.uk 22-09-2006 12:39:43 >>> Hi Gustav Many thanks. Was the last bit I missed. Just thinking I sent that email on the 10th of Sept??? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Fri Sep 22 06:17:13 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 22 Sep 2006 12:17:13 +0100 Subject: [AccessD] Passing a form byval References: Message-ID: Thanks I forwarded to our exchange admin Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From wdhindman at dejpolsystems.com Fri Sep 22 06:31:59 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 22 Sep 2006 07:31:59 -0400 Subject: [AccessD] Passing a form byval References: Message-ID: <002901c6de3a$b8377730$153ce944@50NM721> ...hhhmmm ...12 days to deliver mail ...almost as good as the US Post Office, eh. William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, September 22, 2006 6:57 AM Subject: Re: [AccessD] Passing a form byval > Hi Martin > > That delay is at your side, first step: > > Return-path: > Received: from Pinjo > ([192.168.1.14]) > by cactus.dk; Fri, 22 Sep 2006 10:03:41 +0200 > Received: from iits0144.inlink.com ([209.135.140.44]) > by Pinjo with SMTP id > ; > Fri, 22 Sep 2006 10:02:10 +0200 > Received: from databaseadvisors.com (databaseadvisors.com > [209.135.140.44]) > by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id k8M810S21069; > Fri, 22 Sep 2006 03:01:02 -0500 > Received: from mailhub2.qub.ac.uk (jeremiah.qub.ac.uk [143.117.14.19]) > by databaseadvisors.com (8.11.6/8.11.6) with ESMTP id k8M80SS20973 > for ; Fri, 22 Sep 2006 03:00:29 -0500 > Received: from qub-xchange-01.ads.qub.ac.uk ([143.117.14.27]) > by mailhub2.qub.ac.uk with smtp (Exim 4.60) > (envelope-from ) id 1GQfxc-0004L3-7m > for accessd at databaseadvisors.com; Fri, 22 Sep 2006 08:00:36 +0000 > Date: Sun, 10 Sep 2006 20:50:00 +0100 > Message-ID: > > > /gustav > >>>> mwp.reid at qub.ac.uk 22-09-2006 12:39:43 >>> > Hi Gustav > > Many thanks. Was the last bit I missed. Just thinking I sent that email on > the 10th of Sept??? > > > Martin > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Fri Sep 22 06:52:09 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 22 Sep 2006 06:52:09 -0500 Subject: [AccessD] Switching to VB.net In-Reply-To: <15461230.1158709577425.JavaMail.root@sniper8> Message-ID: <002401c6de3d$894a3130$0200a8c0@danwaters> Hi Charlotte, Thanks for this write-up! Turns out I do have the O'Reilly book. I bought it to try to learn and see if, for me, it's the right thing to do. I'll have to look up to see what n-tiered design is. If I don't need it, then you just saved me a huge amount of time! Thanks, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 19, 2006 6:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net The hills are alive with references. One that still amuses me is the O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages and is 1.5 inches thick! That's one heck of a big nutshell! Rick Dobson's book, Programming Visual Basic .Net for Access Databases", at least starts from familiar territory. There are also some good books in the Microsoft .Net Development Series, including "Data Binding with Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to be confused at first. If you don't understand classes, you'd better learn fast because *everything* in .Net is a class, even a string is a class instance. And if you haven't worked with ADO, you might as well bite the bullet and get ready for ADO.Net. I found it much easier to move to ADO.Net having worked extensively with ADO in addition to DAO. You'll become familiar with XML whether you want to or not because that's where you store stuff that used to go into the registry in Access apps. That means you have to learn to read and write it using the appropriate tools from .Net. The most difficult part of .Net is that you can do so much, in so many possible ways, that you wander around in confusion looking for someone to lead you out of the wilderness. I think this is one language where some training is essential, although finding the right level of training can be a chore too. The AppDev series on .Net is pretty good and takes you through the basics quite well. Rick Dobson's books are good but I haven't been at all impressed with him dvds, which strike me as extremely home-made. Rick is a nice guy and he knows his topic but the videos tend to wander. You'll probably eventually wind up using 3rd party controls, although Microsoft is trying to cover those bases more with every release. The next framework is slated to have a new UI in place of Microsoft Forms (or maybe above or below MS Forms, I haven't figured that out yet) and some nifty developer tools. If you want to do effective database design in .Net, you have to learn not only relational theory but also n-tiered design, since it's pretty pointless to build a .Net app in only one or two tiers. All in all, it's a wild ride, but fun! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 19, 2006 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net Or - if you could point to a reference? (no pun intended!) Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net Ye Gads! The best way is to get a good team leader who knows the thing! I'm the veriest novice, but it's my bread and butter. Let me give it some thought. Charlotte -----Original Message----- Subject: Re: [AccessD] Switching to VB.net OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 22 09:27:47 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 22 Sep 2006 07:27:47 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <002401c6de3d$894a3130$0200a8c0@danwaters> Message-ID: N-tiered design just separates the presentation tier from the data tier and the business rules. They're pretty much bundled together in Access, but for enterprise solutions, network solutions and web-based solutions, n-tier is the way to go. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, September 22, 2006 4:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net Hi Charlotte, Thanks for this write-up! Turns out I do have the O'Reilly book. I bought it to try to learn and see if, for me, it's the right thing to do. I'll have to look up to see what n-tiered design is. If I don't need it, then you just saved me a huge amount of time! Thanks, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 19, 2006 6:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net The hills are alive with references. One that still amuses me is the O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages and is 1.5 inches thick! That's one heck of a big nutshell! Rick Dobson's book, Programming Visual Basic .Net for Access Databases", at least starts from familiar territory. There are also some good books in the Microsoft .Net Development Series, including "Data Binding with Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to be confused at first. If you don't understand classes, you'd better learn fast because *everything* in .Net is a class, even a string is a class instance. And if you haven't worked with ADO, you might as well bite the bullet and get ready for ADO.Net. I found it much easier to move to ADO.Net having worked extensively with ADO in addition to DAO. You'll become familiar with XML whether you want to or not because that's where you store stuff that used to go into the registry in Access apps. That means you have to learn to read and write it using the appropriate tools from .Net. The most difficult part of .Net is that you can do so much, in so many possible ways, that you wander around in confusion looking for someone to lead you out of the wilderness. I think this is one language where some training is essential, although finding the right level of training can be a chore too. The AppDev series on .Net is pretty good and takes you through the basics quite well. Rick Dobson's books are good but I haven't been at all impressed with him dvds, which strike me as extremely home-made. Rick is a nice guy and he knows his topic but the videos tend to wander. You'll probably eventually wind up using 3rd party controls, although Microsoft is trying to cover those bases more with every release. The next framework is slated to have a new UI in place of Microsoft Forms (or maybe above or below MS Forms, I haven't figured that out yet) and some nifty developer tools. If you want to do effective database design in .Net, you have to learn not only relational theory but also n-tiered design, since it's pretty pointless to build a .Net app in only one or two tiers. All in all, it's a wild ride, but fun! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 19, 2006 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net Or - if you could point to a reference? (no pun intended!) Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net Ye Gads! The best way is to get a good team leader who knows the thing! I'm the veriest novice, but it's my bread and butter. Let me give it some thought. Charlotte -----Original Message----- Subject: Re: [AccessD] Switching to VB.net OK Charlotte! Since you have admitted switching to VB.net and are extolling the virtues of said product, I want to ask you to do something! For those of us who are 'switching lurkers', we could use a write up on how to go about this Big Switch! Any possibility? Dan Waters -----Original Message----- Subject: Re: [AccessD] pretty quiet out there Naw, it's just that we're all switching to VB.Net and don't want to admit it. LOL Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Fri Sep 22 09:46:04 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 22 Sep 2006 09:46:04 -0500 Subject: [AccessD] Switching to VB.net Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFB4@corp-es01.fleetpride.com> Not to be confused with N-tear(ed) which describes the many levels of weeping and gnashing of teeth generally associated with every M$ architecture. Jim Hale -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, September 22, 2006 9:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net N-tiered design just separates the presentation tier from the data tier and the business rules. They're pretty much bundled together in Access, but for enterprise solutions, network solutions and web-based solutions, n-tier is the way to go. Charlotte Foust *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From wdhindman at dejpolsystems.com Fri Sep 22 09:53:16 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 22 Sep 2006 10:53:16 -0400 Subject: [AccessD] Switching to VB.net References: <002401c6de3d$894a3130$0200a8c0@danwaters> Message-ID: <003b01c6de56$f39f87b0$153ce944@50NM721> ...n-tier is just doublespeak for what you already do :) ...think of forms & reports as one tier ...the be mdb as another ...the code modules/classes as another ...Access puts them all together to avoid confusing the office user who works with it ...higher lever dbs don't need to make that compromise so they separate them ...it has its advantages ...and disadvantages. ...but so does Access ...I'm soooooo not switching ...MS may drag me to .net eventually but I'll be kicking and screaming and clawing at the floor the whole way :). William Hindman ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 22, 2006 7:52 AM Subject: Re: [AccessD] Switching to VB.net > Hi Charlotte, > > Thanks for this write-up! Turns out I do have the O'Reilly book. I > bought > it to try to learn and see if, for me, it's the right thing to do. > > I'll have to look up to see what n-tiered design is. If I don't need it, > then you just saved me a huge amount of time! > > Thanks, > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Tuesday, September 19, 2006 6:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > Rick Dobson's book, Programming Visual Basic .Net for Access Databases", > at least starts from familiar territory. There are also some good books > in the Microsoft .Net Development Series, including "Data Binding with > Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to > be confused at first. If you don't understand classes, you'd better > learn fast because *everything* in .Net is a class, even a string is a > class instance. And if you haven't worked with ADO, you might as well > bite the bullet and get ready for ADO.Net. I found it much easier to > move to ADO.Net having worked extensively with ADO in addition to DAO. > You'll become familiar with XML whether you want to or not because > that's where you store stuff that used to go into the registry in Access > apps. That means you have to learn to read and write it using the > appropriate tools from .Net. > > The most difficult part of .Net is that you can do so much, in so many > possible ways, that you wander around in confusion looking for someone > to lead you out of the wilderness. I think this is one language where > some training is essential, although finding the right level of training > can be a chore too. The AppDev series on .Net is pretty good and takes > you through the basics quite well. Rick Dobson's books are good but I > haven't been at all impressed with him dvds, which strike me as > extremely home-made. Rick is a nice guy and he knows his topic but the > videos tend to wander. > > You'll probably eventually wind up using 3rd party controls, although > Microsoft is trying to cover those bases more with every release. The > next framework is slated to have a new UI in place of Microsoft Forms > (or maybe above or below MS Forms, I haven't figured that out yet) and > some nifty developer tools. If you want to do effective database design > in .Net, you have to learn not only relational theory but also n-tiered > design, since it's pretty pointless to build a .Net app in only one or > two tiers. > > All in all, it's a wild ride, but fun! > > Charlotte > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 19, 2006 2:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > Or - if you could point to a reference? (no pun intended!) > > Thanks! > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > Ye Gads! The best way is to get a good team leader who knows the thing! > I'm the veriest novice, but it's my bread and butter. Let me give it > some thought. > > Charlotte > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > OK Charlotte! > > Since you have admitted switching to VB.net and are extolling the > virtues of said product, I want to ask you to do something! > > For those of us who are 'switching lurkers', we could use a write up on > how to go about this Big Switch! > > Any possibility? > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] pretty quiet out there > > Naw, it's just that we're all switching to VB.Net and don't want to > admit it. LOL > > Charlotte > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Fri Sep 22 10:07:39 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Fri, 22 Sep 2006 11:07:39 -0400 Subject: [AccessD] Switching to VB.net References: <002401c6de3d$894a3130$0200a8c0@danwaters> <003b01c6de56$f39f87b0$153ce944@50NM721> Message-ID: <00b501c6de58$d96f34b0$0302a8c0@default> Hurray !!! Music, sweet chamber music ... Michael R. Mattys A MapPoint Developer www.mattysconsulting.com ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Friday, September 22, 2006 10:53 AM Subject: Re: [AccessD] Switching to VB.net > ...n-tier is just doublespeak for what you already do :) > > ...think of forms & reports as one tier > ...the be mdb as another > ...the code modules/classes as another > > ...Access puts them all together to avoid confusing the office user who > works with it ...higher lever dbs don't need to make that compromise so > they > separate them ...it has its advantages ...and disadvantages. > > ...but so does Access ...I'm soooooo not switching ...MS may drag me to > .net > eventually but I'll be kicking and screaming and clawing at the floor the > whole way :). > > William Hindman From tinanfields at torchlake.com Fri Sep 22 10:42:52 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Fri, 22 Sep 2006 11:42:52 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Message-ID: <4514047B.3090203@torchlake.com> Hi All, Client is an oil and gas producer. Daily data of several kinds are reported from the field on a daily basis. Client would like to be able to see graphs showing, for instance, daily production for well A for a selectable time range (the last month, this last week, this last quarter, whatever) - he would also like to be able to see daily production for two or three wells at a time on the same graph, or for all the wells in a given oilfield (individually or as a total). Once a query is devised for selecting the date range, the specific wells, or the complete oilfield (separately or in combination), I want to export the selected data to Excel and draw the appropriate graphs. And, I want to do all that fairly automatically. The client would like users to be able to tweak data in Excel for the graph, if need be - as in to exclude outlying data points - but, of course, not alter the actual data captured in the Access data table. So, I am thinking of using a make-table query and sending the data from the "made" table to Excel. Is this a good idea? Some of you have done some automation with Access and Excel, so I would appreciate knowing what the pitfalls are that I need to be careful of. I am thinking to build essentially template Excel files with already configured graphs for the choices that are going to be offered to the user - which well or wells, or which well-field, and for what date range? Does this sound like a good idea? With great care, I believe I can code I really would like your creative and technical advice, here - so, all ideas are welcome. Thanks, Tina From mwp.reid at qub.ac.uk Fri Sep 22 12:19:04 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 22 Sep 2006 18:19:04 +0100 Subject: [AccessD] Error Code Generator References: Message-ID: I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From artful at rogers.com Fri Sep 22 12:33:03 2006 From: artful at rogers.com (artful at rogers.com) Date: Fri, 22 Sep 2006 10:33:03 -0700 (PDT) Subject: [AccessD] Error Code Generator In-Reply-To: Message-ID: <20060922173303.17499.qmail@web88204.mail.re2.yahoo.com> I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin From DWUTKA at marlow.com Fri Sep 22 12:47:13 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Sep 2006 12:47:13 -0500 Subject: [AccessD] Switching to VB.net Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DBCF@MARLOW_MAIN2.marlow.com> I've used .Net, but not for any live systems. With the exception of inheritance, there is little I can't do in VB. A major obstacle is that I have so many systems built with VB, that developing new systems takes less time due to the amount of code I have built over the years. Drew -----Original Message----- From: William Hindman [mailto:wdhindman at dejpolsystems.com] Sent: Friday, September 22, 2006 9:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net ...n-tier is just doublespeak for what you already do :) ...think of forms & reports as one tier ...the be mdb as another ...the code modules/classes as another ...Access puts them all together to avoid confusing the office user who works with it ...higher lever dbs don't need to make that compromise so they separate them ...it has its advantages ...and disadvantages. ...but so does Access ...I'm soooooo not switching ...MS may drag me to .net eventually but I'll be kicking and screaming and clawing at the floor the whole way :). William Hindman ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 22, 2006 7:52 AM Subject: Re: [AccessD] Switching to VB.net > Hi Charlotte, > > Thanks for this write-up! Turns out I do have the O'Reilly book. I > bought > it to try to learn and see if, for me, it's the right thing to do. > > I'll have to look up to see what n-tiered design is. If I don't need it, > then you just saved me a huge amount of time! > > Thanks, > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Tuesday, September 19, 2006 6:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > Rick Dobson's book, Programming Visual Basic .Net for Access Databases", > at least starts from familiar territory. There are also some good books > in the Microsoft .Net Development Series, including "Data Binding with > Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to > be confused at first. If you don't understand classes, you'd better > learn fast because *everything* in .Net is a class, even a string is a > class instance. And if you haven't worked with ADO, you might as well > bite the bullet and get ready for ADO.Net. I found it much easier to > move to ADO.Net having worked extensively with ADO in addition to DAO. > You'll become familiar with XML whether you want to or not because > that's where you store stuff that used to go into the registry in Access > apps. That means you have to learn to read and write it using the > appropriate tools from .Net. > > The most difficult part of .Net is that you can do so much, in so many > possible ways, that you wander around in confusion looking for someone > to lead you out of the wilderness. I think this is one language where > some training is essential, although finding the right level of training > can be a chore too. The AppDev series on .Net is pretty good and takes > you through the basics quite well. Rick Dobson's books are good but I > haven't been at all impressed with him dvds, which strike me as > extremely home-made. Rick is a nice guy and he knows his topic but the > videos tend to wander. > > You'll probably eventually wind up using 3rd party controls, although > Microsoft is trying to cover those bases more with every release. The > next framework is slated to have a new UI in place of Microsoft Forms > (or maybe above or below MS Forms, I haven't figured that out yet) and > some nifty developer tools. If you want to do effective database design > in .Net, you have to learn not only relational theory but also n-tiered > design, since it's pretty pointless to build a .Net app in only one or > two tiers. > > All in all, it's a wild ride, but fun! > > Charlotte > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 19, 2006 2:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > Or - if you could point to a reference? (no pun intended!) > > Thanks! > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > Ye Gads! The best way is to get a good team leader who knows the thing! > I'm the veriest novice, but it's my bread and butter. Let me give it > some thought. > > Charlotte > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > OK Charlotte! > > Since you have admitted switching to VB.net and are extolling the > virtues of said product, I want to ask you to do something! > > For those of us who are 'switching lurkers', we could use a write up on > how to go about this Big Switch! > > Any possibility? > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] pretty quiet out there > > Naw, it's just that we're all switching to VB.Net and don't want to > admit it. LOL > > Charlotte > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Sep 22 12:49:32 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Sep 2006 12:49:32 -0500 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DBD1@MARLOW_MAIN2.marlow.com> Why automate at all? Excel allows you to place external data on a spreadsheet, and you can have the sheet prompt to 'refresh' the data whenever excel is opened. It's pretty straight forward, and wouldn't require using any code. (Hey, wait, am I advocating a non-code approach? William may take away my 'Code Boy' title!) Drew -----Original Message----- From: Tina Norris Fields [mailto:tinanfields at torchlake.com] Sent: Friday, September 22, 2006 10:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Hi All, Client is an oil and gas producer. Daily data of several kinds are reported from the field on a daily basis. Client would like to be able to see graphs showing, for instance, daily production for well A for a selectable time range (the last month, this last week, this last quarter, whatever) - he would also like to be able to see daily production for two or three wells at a time on the same graph, or for all the wells in a given oilfield (individually or as a total). Once a query is devised for selecting the date range, the specific wells, or the complete oilfield (separately or in combination), I want to export the selected data to Excel and draw the appropriate graphs. And, I want to do all that fairly automatically. The client would like users to be able to tweak data in Excel for the graph, if need be - as in to exclude outlying data points - but, of course, not alter the actual data captured in the Access data table. So, I am thinking of using a make-table query and sending the data from the "made" table to Excel. Is this a good idea? Some of you have done some automation with Access and Excel, so I would appreciate knowing what the pitfalls are that I need to be careful of. I am thinking to build essentially template Excel files with already configured graphs for the choices that are going to be offered to the user - which well or wells, or which well-field, and for what date range? Does this sound like a good idea? With great care, I believe I can code I really would like your creative and technical advice, here - so, all ideas are welcome. Thanks, Tina -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Sep 22 12:51:07 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Sep 2006 12:51:07 -0500 Subject: [AccessD] Error Code Generator Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DBD2@MARLOW_MAIN2.marlow.com> I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Sep 22 12:54:35 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 22 Sep 2006 12:54:35 -0500 Subject: [AccessD] Error Code Generator In-Reply-To: <27371544.1158946726667.JavaMail.root@sniper42> Message-ID: <000501c6de70$2aaeccc0$0200a8c0@danwaters> Hi Arthur, I've done that for years, and it's been really helpful in knowing when a customer is having a problem. The system emails me the list of errors everyday so I can see if anything new has cropped up. Dan Waters -----Original Message----- Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Sep 22 12:54:08 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 22 Sep 2006 10:54:08 -0700 Subject: [AccessD] Passing a form byval In-Reply-To: References: <007501c6d2cc$38f17f30$657aa8c0@m6805> Message-ID: <45142340.3030209@shaw.ca> Passing a parameter in a call is passed ByRef as default otherwise need to specify ByVal . Computer languages differ on this default. Function testA(ctlR As Control, ByVal ctlV As Control, _ strR As TextBox, ByVal strV As TextBox) As Long 'control is combobox Debug.Print ctlR.Column(0) Debug.Print ctlV.Column(0) 'Textbox needs focus strV.SetFocus Debug.Print strV.Text strR.SetFocus Debug.Print strR.Text End Function Martin Reid wrote: >I need to pass a text control on a form to a procedure byval as opposed to byref as byref errors out. How can I pass this to the procedure byval? > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.405 / Virus Database: 268.12.6/453 - Release Date: 20/09/2006 > > -- Marty Connelly Victoria, B.C. Canada From Lambert.Heenan at AIG.com Fri Sep 22 12:56:47 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 22 Sep 2006 13:56:47 -0400 Subject: [AccessD] Error Code Generator Message-ID: "Why is it better to embed the error routine in the particular proc or func". Lot's of reasons, not least of which is: Because the person who codes a proc/func is in the best position to determine what action should be taken with which specific error codes, and it only makes sense the do this in the routine that errored - for one thing the error handler will have access to all the local variables and parameters that the routine uses. Because to write a routine that would know what to do with all x thousand errors in any code that any programmer ever wrote in any application would be up for the psychic coder of the century award. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 1:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Sep 22 13:03:50 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 22 Sep 2006 11:03:50 -0700 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <4514047B.3090203@torchlake.com> Message-ID: <0J6000F8JA5JB5J0@l-daemon> Hi Tina: The best approach I found was to use recordsets to hold the data. Recordsets are more flexible than tables as they can be easily modified, added to and deleted and you do not have to worry about multiple users if you are using a centralized BE for temp table storage. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Friday, September 22, 2006 8:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Hi All, Client is an oil and gas producer. Daily data of several kinds are reported from the field on a daily basis. Client would like to be able to see graphs showing, for instance, daily production for well A for a selectable time range (the last month, this last week, this last quarter, whatever) - he would also like to be able to see daily production for two or three wells at a time on the same graph, or for all the wells in a given oilfield (individually or as a total). Once a query is devised for selecting the date range, the specific wells, or the complete oilfield (separately or in combination), I want to export the selected data to Excel and draw the appropriate graphs. And, I want to do all that fairly automatically. The client would like users to be able to tweak data in Excel for the graph, if need be - as in to exclude outlying data points - but, of course, not alter the actual data captured in the Access data table. So, I am thinking of using a make-table query and sending the data from the "made" table to Excel. Is this a good idea? Some of you have done some automation with Access and Excel, so I would appreciate knowing what the pitfalls are that I need to be careful of. I am thinking to build essentially template Excel files with already configured graphs for the choices that are going to be offered to the user - which well or wells, or which well-field, and for what date range? Does this sound like a good idea? With great care, I believe I can code I really would like your creative and technical advice, here - so, all ideas are welcome. Thanks, Tina -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Sep 22 13:02:47 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Sep 2006 13:02:47 -0500 Subject: [AccessD] Error Code Generator Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DBD8@MARLOW_MAIN2.marlow.com> Ah, but some things can be centralized. For instance, alerting for an error, recording the error, etc, those are things you want done for every error (that you aren't expecting). You still have the individual errorhandling routines which can be customized for each situation/procedure). Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Friday, September 22, 2006 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator "Why is it better to embed the error routine in the particular proc or func". Lot's of reasons, not least of which is: Because the person who codes a proc/func is in the best position to determine what action should be taken with which specific error codes, and it only makes sense the do this in the routine that errored - for one thing the error handler will have access to all the local variables and parameters that the routine uses. Because to write a routine that would know what to do with all x thousand errors in any code that any programmer ever wrote in any application would be up for the psychic coder of the century award. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 1:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Sep 22 13:32:01 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 22 Sep 2006 14:32:01 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: Switching to VB.net In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E36D5F@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35914@ADGSERVER> Drew, If you are interested in extending any of those programs with .Net, you might be interested in this: http://www.microsoft.com/downloads/details.aspx?FamilyID=98c38c1d-c630-4d9a- 8bb5-7f1fc088a7c4&DisplayLang=en Microsoft InteropForms Toolkit 1.0 "This toolkit helps you bring the power of .NET to your existing VB6 applications, by allowing them to display .NET WinForms from within the same application. Instead of upgrading the entire code base, these applications can now be extended one form at a time. The goal is a phased upgrade, with production releases at the end of each iteration containing both VB6 and VB.NET forms running in the same VB6 .exe process." Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Friday, September 22, 2006 1:47 PM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] Re: [AccessD] Switching to VB.net Importance: Low I've used .Net, but not for any live systems. With the exception of inheritance, there is little I can't do in VB. A major obstacle is that I have so many systems built with VB, that developing new systems takes less time due to the amount of code I have built over the years. Drew -----Original Message----- From: William Hindman [mailto:wdhindman at dejpolsystems.com] Sent: Friday, September 22, 2006 9:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net ...n-tier is just doublespeak for what you already do :) ...think of forms & reports as one tier ...the be mdb as another ...the code modules/classes as another ...Access puts them all together to avoid confusing the office user who works with it ...higher lever dbs don't need to make that compromise so they separate them ...it has its advantages ...and disadvantages. ...but so does Access ...I'm soooooo not switching ...MS may drag me to .net eventually but I'll be kicking and screaming and clawing at the floor the whole way :). William Hindman ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 22, 2006 7:52 AM Subject: Re: [AccessD] Switching to VB.net > Hi Charlotte, > > Thanks for this write-up! Turns out I do have the O'Reilly book. I > bought > it to try to learn and see if, for me, it's the right thing to do. > > I'll have to look up to see what n-tiered design is. If I don't need it, > then you just saved me a huge amount of time! > > Thanks, > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Tuesday, September 19, 2006 6:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > Rick Dobson's book, Programming Visual Basic .Net for Access Databases", > at least starts from familiar territory. There are also some good books > in the Microsoft .Net Development Series, including "Data Binding with > Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to > be confused at first. If you don't understand classes, you'd better > learn fast because *everything* in .Net is a class, even a string is a > class instance. And if you haven't worked with ADO, you might as well > bite the bullet and get ready for ADO.Net. I found it much easier to > move to ADO.Net having worked extensively with ADO in addition to DAO. > You'll become familiar with XML whether you want to or not because > that's where you store stuff that used to go into the registry in Access > apps. That means you have to learn to read and write it using the > appropriate tools from .Net. > > The most difficult part of .Net is that you can do so much, in so many > possible ways, that you wander around in confusion looking for someone > to lead you out of the wilderness. I think this is one language where > some training is essential, although finding the right level of training > can be a chore too. The AppDev series on .Net is pretty good and takes > you through the basics quite well. Rick Dobson's books are good but I > haven't been at all impressed with him dvds, which strike me as > extremely home-made. Rick is a nice guy and he knows his topic but the > videos tend to wander. > > You'll probably eventually wind up using 3rd party controls, although > Microsoft is trying to cover those bases more with every release. The > next framework is slated to have a new UI in place of Microsoft Forms > (or maybe above or below MS Forms, I haven't figured that out yet) and > some nifty developer tools. If you want to do effective database design > in .Net, you have to learn not only relational theory but also n-tiered > design, since it's pretty pointless to build a .Net app in only one or > two tiers. > > All in all, it's a wild ride, but fun! > > Charlotte > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 19, 2006 2:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > Or - if you could point to a reference? (no pun intended!) > > Thanks! > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > Ye Gads! The best way is to get a good team leader who knows the thing! > I'm the veriest novice, but it's my bread and butter. Let me give it > some thought. > > Charlotte > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > OK Charlotte! > > Since you have admitted switching to VB.net and are extolling the > virtues of said product, I want to ask you to do something! > > For those of us who are 'switching lurkers', we could use a write up on > how to go about this Big Switch! > > Any possibility? > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] pretty quiet out there > > Naw, it's just that we're all switching to VB.Net and don't want to > admit it. LOL > > Charlotte From jwcolby at colbyconsulting.com Fri Sep 22 13:37:01 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 22 Sep 2006 14:37:01 -0400 Subject: [AccessD] Error Code Generator In-Reply-To: Message-ID: <00c701c6de76$18b65eb0$657aa8c0@m6805> 'Twas I more or less. You can go to www.DatabaseAdvisors.com to download a VB error handler VbErrorHandler.exe generator that is based on my code but ported to VB by Seth Galitzer. Having downloaded and installed this, a toolbar will be added to the VBA Editor IDE to allow you to insert error handlers into your code, either in the form you showed or in a select case form. The bottom line is that I never found an error handler insertion wizard that I liked so I highly modified one I found. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, September 22, 2006 1:19 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Fri Sep 22 13:37:29 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 22 Sep 2006 13:37:29 -0500 Subject: [AccessD] [SPAM SUSPECT] Re: Switching to VB.net Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DBE2@MARLOW_MAIN2.marlow.com> Most of my apps are web based. I use VB .dll's with ASP based front ends....don't have a lot of use for .Net forms... thanks for the link though. Drew -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Friday, September 22, 2006 1:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Re: Switching to VB.net Drew, If you are interested in extending any of those programs with .Net, you might be interested in this: http://www.microsoft.com/downloads/details.aspx?FamilyID=98c38c1d-c630-4d9a- 8bb5-7f1fc088a7c4&DisplayLang=en Microsoft InteropForms Toolkit 1.0 "This toolkit helps you bring the power of .NET to your existing VB6 applications, by allowing them to display .NET WinForms from within the same application. Instead of upgrading the entire code base, these applications can now be extended one form at a time. The goal is a phased upgrade, with production releases at the end of each iteration containing both VB6 and VB.NET forms running in the same VB6 .exe process." Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Friday, September 22, 2006 1:47 PM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] Re: [AccessD] Switching to VB.net Importance: Low I've used .Net, but not for any live systems. With the exception of inheritance, there is little I can't do in VB. A major obstacle is that I have so many systems built with VB, that developing new systems takes less time due to the amount of code I have built over the years. Drew -----Original Message----- From: William Hindman [mailto:wdhindman at dejpolsystems.com] Sent: Friday, September 22, 2006 9:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net ...n-tier is just doublespeak for what you already do :) ...think of forms & reports as one tier ...the be mdb as another ...the code modules/classes as another ...Access puts them all together to avoid confusing the office user who works with it ...higher lever dbs don't need to make that compromise so they separate them ...it has its advantages ...and disadvantages. ...but so does Access ...I'm soooooo not switching ...MS may drag me to .net eventually but I'll be kicking and screaming and clawing at the floor the whole way :). William Hindman ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 22, 2006 7:52 AM Subject: Re: [AccessD] Switching to VB.net > Hi Charlotte, > > Thanks for this write-up! Turns out I do have the O'Reilly book. I > bought > it to try to learn and see if, for me, it's the right thing to do. > > I'll have to look up to see what n-tiered design is. If I don't need it, > then you just saved me a huge amount of time! > > Thanks, > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Tuesday, September 19, 2006 6:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > The hills are alive with references. One that still amuses me is the > O'Reilly book, "Visual Basic 2005 in a Nutshell", which totals 746 pages > and is 1.5 inches thick! That's one heck of a big nutshell! > > Rick Dobson's book, Programming Visual Basic .Net for Access Databases", > at least starts from familiar territory. There are also some good books > in the Microsoft .Net Development Series, including "Data Binding with > Windows Forms 2.0" and "Windows Forms 2.0 Programming". Be prepared to > be confused at first. If you don't understand classes, you'd better > learn fast because *everything* in .Net is a class, even a string is a > class instance. And if you haven't worked with ADO, you might as well > bite the bullet and get ready for ADO.Net. I found it much easier to > move to ADO.Net having worked extensively with ADO in addition to DAO. > You'll become familiar with XML whether you want to or not because > that's where you store stuff that used to go into the registry in Access > apps. That means you have to learn to read and write it using the > appropriate tools from .Net. > > The most difficult part of .Net is that you can do so much, in so many > possible ways, that you wander around in confusion looking for someone > to lead you out of the wilderness. I think this is one language where > some training is essential, although finding the right level of training > can be a chore too. The AppDev series on .Net is pretty good and takes > you through the basics quite well. Rick Dobson's books are good but I > haven't been at all impressed with him dvds, which strike me as > extremely home-made. Rick is a nice guy and he knows his topic but the > videos tend to wander. > > You'll probably eventually wind up using 3rd party controls, although > Microsoft is trying to cover those bases more with every release. The > next framework is slated to have a new UI in place of Microsoft Forms > (or maybe above or below MS Forms, I haven't figured that out yet) and > some nifty developer tools. If you want to do effective database design > in .Net, you have to learn not only relational theory but also n-tiered > design, since it's pretty pointless to build a .Net app in only one or > two tiers. > > All in all, it's a wild ride, but fun! > > Charlotte > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 19, 2006 2:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > Or - if you could point to a reference? (no pun intended!) > > Thanks! > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > Ye Gads! The best way is to get a good team leader who knows the thing! > I'm the veriest novice, but it's my bread and butter. Let me give it > some thought. > > Charlotte > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > OK Charlotte! > > Since you have admitted switching to VB.net and are extolling the > virtues of said product, I want to ask you to do something! > > For those of us who are 'switching lurkers', we could use a write up on > how to go about this Big Switch! > > Any possibility? > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] pretty quiet out there > > Naw, it's just that we're all switching to VB.Net and don't want to > admit it. LOL > > Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tuxedoman888 at gmail.com Fri Sep 22 13:44:45 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Fri, 22 Sep 2006 11:44:45 -0700 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <4514047B.3090203@torchlake.com> References: <4514047B.3090203@torchlake.com> Message-ID: <7c8826480609221144jdb43c92n9098843c6ed68bd8@mail.gmail.com> If you plan on going to the Access-Excel automation route, I found that it is good practice to destroy all the objects you create after you are done with them. That is, Set xlSheet = nothing Also, reference your excel objects in its entirety to ensure that the objects are properly destroyed. For example, copying a worksheet... xlSheet.Copy after:=xlApp.Worksheets("Sheet1") <-- Good xlSheet.Copy after:=Worksheets("Sheet1") <-- Bad Otherwise, Set xlSheet = nothing will not work and the object will hang around, which may produce unexpected results. Billy On 9/22/06, Tina Norris Fields wrote: > > Hi All, > > Client is an oil and gas producer. Daily data of several kinds are > reported from the field on a daily basis. Client would like to be able > to see graphs showing, for instance, daily production for well A for a > selectable time range (the last month, this last week, this last > quarter, whatever) - he would also like to be able to see daily > production for two or three wells at a time on the same graph, or for > all the wells in a given oilfield (individually or as a total). > > Once a query is devised for selecting the date range, the specific > wells, or the complete oilfield (separately or in combination), I want > to export the selected data to Excel and draw the appropriate graphs. > And, I want to do all that fairly automatically. > > The client would like users to be able to tweak data in Excel for the > graph, if need be - as in to exclude outlying data points - but, of > course, not alter the actual data captured in the Access data table. > So, I am thinking of using a make-table query and sending the data from > the "made" table to Excel. Is this a good idea? > > Some of you have done some automation with Access and Excel, so I would > appreciate knowing what the pitfalls are that I need to be careful of. > I am thinking to build essentially template Excel files with already > configured graphs for the choices that are going to be offered to the > user - which well or wells, or which well-field, and for what date > range? Does this sound like a good idea? > > With great care, I believe I can code > > I really would like your creative and technical advice, here - so, all > ideas are welcome. > > Thanks, > Tina > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From martyconnelly at shaw.ca Fri Sep 22 14:16:29 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 22 Sep 2006 12:16:29 -0700 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <4514047B.3090203@torchlake.com> References: <4514047B.3090203@torchlake.com> Message-ID: <4514368D.8080708@shaw.ca> I would be tempted to use an ActiveX 3'd party graphing solution, I find Excel Graph much like using an ExaSketch. I would use one like TeeChart. http://www.steema.com/products/teechart/gallery_std.html If the client isn't an engineer, the aesthetics of the graph will be important and multi-line graphs with labelling gets very tricky in Excel Maybe others can suggest other ActiveX's, this one is $359 for developers version. There maybe ones aimed specifically at Excel. I have heard of people using Tableau Software but then you are up to $1200. I am used to using DISSPLA on mainframes with Fortran. Tina Norris Fields wrote: >Hi All, > >Client is an oil and gas producer. Daily data of several kinds are >reported from the field on a daily basis. Client would like to be able >to see graphs showing, for instance, daily production for well A for a >selectable time range (the last month, this last week, this last >quarter, whatever) - he would also like to be able to see daily >production for two or three wells at a time on the same graph, or for >all the wells in a given oilfield (individually or as a total). > >Once a query is devised for selecting the date range, the specific >wells, or the complete oilfield (separately or in combination), I want >to export the selected data to Excel and draw the appropriate graphs. >And, I want to do all that fairly automatically. > >The client would like users to be able to tweak data in Excel for the >graph, if need be - as in to exclude outlying data points - but, of >course, not alter the actual data captured in the Access data table. >So, I am thinking of using a make-table query and sending the data from >the "made" table to Excel. Is this a good idea? > >Some of you have done some automation with Access and Excel, so I would >appreciate knowing what the pitfalls are that I need to be careful of. >I am thinking to build essentially template Excel files with already >configured graphs for the choices that are going to be offered to the >user - which well or wells, or which well-field, and for what date >range? Does this sound like a good idea? > >With great care, I believe I can code > >I really would like your creative and technical advice, here - so, all >ideas are welcome. > >Thanks, >Tina > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri Sep 22 14:36:39 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 22 Sep 2006 20:36:39 +0100 Subject: [AccessD] Error Code Generator References: <00c701c6de76$18b65eb0$657aa8c0@m6805> Message-ID: John Lot of code I am publishing uses this.Just wanted you to knwo. Figured it was you. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of JWColby Sent: Fri 22/09/2006 19:37 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator 'Twas I more or less. You can go to www.DatabaseAdvisors.com to download a VB error handler VbErrorHandler.exe generator that is based on my code but ported to VB by Seth Galitzer. Having downloaded and installed this, a toolbar will be added to the VBA Editor IDE to allow you to insert error handlers into your code, either in the form you showed or in a select case form. The bottom line is that I never found an error handler insertion wizard that I liked so I highly modified one I found. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, September 22, 2006 1:19 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Fri Sep 22 14:41:02 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 22 Sep 2006 20:41:02 +0100 Subject: [AccessD] Comments Help Security References: <916187228923D311A6FE00A0CC3FAA30D35914@ADGSERVER> Message-ID: Windows SharePoint Server web site Access database with a linked take which is linked to a list on the Server If I want to see the list on the server I need to use a username and password If I link from Access dont. I have direct Access to the list. Question If I have a table in Access and am using Active Directory would it be possible to prompt for an AD username and Password before opening the linked table? I owuld then check the details aganist the AD and if OK open the linked Access table. This may or may not be an issue and could simply be a bug in the software. I dont knwo yet but just oout of interest. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From artful at rogers.com Fri Sep 22 15:11:34 2006 From: artful at rogers.com (artful at rogers.com) Date: Fri, 22 Sep 2006 13:11:34 -0700 (PDT) Subject: [AccessD] Error Code Generator In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0113DBD2@MARLOW_MAIN2.marlow.com> Message-ID: <20060922201134.79846.qmail@web88204.mail.re2.yahoo.com> That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 22 15:25:54 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 22 Sep 2006 16:25:54 -0400 Subject: [AccessD] Error Code Generator In-Reply-To: <20060922201134.79846.qmail@web88204.mail.re2.yahoo.com> Message-ID: <00d801c6de85$4f0e6d40$657aa8c0@m6805> Art, A "non-local" way simply cannot handle all the parts required. A local error handler knows that procedureA is about opening a recordset while procedureB is about opening a form, while ProcedureC is about calculating the cubic volume of a lake. Very different problems, very different errors that will occur. At the least the local error handler will have a case statement that has error values added to the case as the errors are discovered, but may indeed call a global error logger / emailer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 4:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Sep 22 15:30:16 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 22 Sep 2006 15:30:16 -0500 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <6741943.1158953012219.JavaMail.root@sniper61> Message-ID: <002001c6de85$eafaf610$0200a8c0@danwaters> I would suggest looking at MS Graph. It has the power, within Access, to create a chart that looks just as good as Excel. You'll need to do quite a bit of data manipulation, or create cascading queries, but this keeps it all in one application. The only difference that I've seen so far is that in MS Graph I couldn't 'smooth' a line series. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, September 22, 2006 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Graphs from Access Data - Ideas, Please I would be tempted to use an ActiveX 3'd party graphing solution, I find Excel Graph much like using an ExaSketch. I would use one like TeeChart. http://www.steema.com/products/teechart/gallery_std.html If the client isn't an engineer, the aesthetics of the graph will be important and multi-line graphs with labelling gets very tricky in Excel Maybe others can suggest other ActiveX's, this one is $359 for developers version. There maybe ones aimed specifically at Excel. I have heard of people using Tableau Software but then you are up to $1200. I am used to using DISSPLA on mainframes with Fortran. Tina Norris Fields wrote: >Hi All, > >Client is an oil and gas producer. Daily data of several kinds are >reported from the field on a daily basis. Client would like to be able >to see graphs showing, for instance, daily production for well A for a >selectable time range (the last month, this last week, this last >quarter, whatever) - he would also like to be able to see daily >production for two or three wells at a time on the same graph, or for >all the wells in a given oilfield (individually or as a total). > >Once a query is devised for selecting the date range, the specific >wells, or the complete oilfield (separately or in combination), I want >to export the selected data to Excel and draw the appropriate graphs. >And, I want to do all that fairly automatically. > >The client would like users to be able to tweak data in Excel for the >graph, if need be - as in to exclude outlying data points - but, of >course, not alter the actual data captured in the Access data table. >So, I am thinking of using a make-table query and sending the data from >the "made" table to Excel. Is this a good idea? > >Some of you have done some automation with Access and Excel, so I would >appreciate knowing what the pitfalls are that I need to be careful of. >I am thinking to build essentially template Excel files with already >configured graphs for the choices that are going to be offered to the >user - which well or wells, or which well-field, and for what date >range? Does this sound like a good idea? > >With great care, I believe I can code > >I really would like your creative and technical advice, here - so, all >ideas are welcome. > >Thanks, >Tina > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Sep 22 16:08:31 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 22 Sep 2006 17:08:31 -0400 Subject: [AccessD] Error Code Generator Message-ID: Well of course. Even *I* do that! :-) My error handlers, are in the subs/functions that they serve. They take care of anticipated errors and allow the program to move on. If the error cannot be handled ('cuase I didn't think of it!) then I have a standard routine in a module that reports the error via email and also logs the same information is an error log table. But that's not *handling* and error, it's just reporting it, which is why my routine is called ReportError Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Friday, September 22, 2006 2:03 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Error Code Generator Ah, but some things can be centralized. For instance, alerting for an error, recording the error, etc, those are things you want done for every error (that you aren't expecting). You still have the individual errorhandling routines which can be customized for each situation/procedure). Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Friday, September 22, 2006 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator "Why is it better to embed the error routine in the particular proc or func". Lot's of reasons, not least of which is: Because the person who codes a proc/func is in the best position to determine what action should be taken with which specific error codes, and it only makes sense the do this in the routine that errored - for one thing the error handler will have access to all the local variables and parameters that the routine uses. Because to write a routine that would know what to do with all x thousand errors in any code that any programmer ever wrote in any application would be up for the psychic coder of the century award. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 1:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Sep 22 16:09:29 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 22 Sep 2006 16:09:29 -0500 Subject: [AccessD] Error Code Generator Message-ID: WOT I SAID. :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, September 22, 2006 4:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Art, A "non-local" way simply cannot handle all the parts required. A local error handler knows that procedureA is about opening a recordset while procedureB is about opening a form, while ProcedureC is about calculating the cubic volume of a lake. Very different problems, very different errors that will occur. At the least the local error handler will have a case statement that has error values added to the case as the errors are discovered, but may indeed call a global error logger / emailer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 4:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Sep 22 16:10:34 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 22 Sep 2006 16:10:34 -0500 Subject: [AccessD] Error Code Generator Message-ID: Check out the error handler insertion function of the (FREE!) MZ Tools. I like it plenty. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, September 22, 2006 2:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator 'Twas I more or less. You can go to www.DatabaseAdvisors.com to download a VB error handler VbErrorHandler.exe generator that is based on my code but ported to VB by Seth Galitzer. Having downloaded and installed this, a toolbar will be added to the VBA Editor IDE to allow you to insert error handlers into your code, either in the form you showed or in a select case form. The bottom line is that I never found an error handler insertion wizard that I liked so I highly modified one I found. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, September 22, 2006 1:19 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Sep 22 17:21:18 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 22 Sep 2006 18:21:18 -0400 Subject: [AccessD] Error Code Generator References: Message-ID: <004101c6de95$6dc1f940$153ce944@50NM721> ...ditto ...excellent tool :) William Hindman ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 22, 2006 5:10 PM Subject: Re: [AccessD] Error Code Generator > Check out the error handler insertion function of the (FREE!) MZ Tools. I > like it plenty. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, September 22, 2006 2:37 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Error Code Generator > > > 'Twas I more or less. You can go to www.DatabaseAdvisors.com to download > a > VB error handler VbErrorHandler.exe generator that is based on my code but > ported to VB by Seth Galitzer. Having downloaded and installed this, a > toolbar will be added to the VBA Editor IDE to allow you to insert error > handlers into your code, either in the form you showed or in a select case > form. > > The bottom line is that I never found an error handler insertion wizard > that > I liked so I highly modified one I found. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: Friday, September 22, 2006 1:19 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Error Code Generator > > I believe someone on the list created an error generator. I believe it > might > be JC? Anyway I have been using it a lot for code examples and just to be > politically correct want the owner to know. Example below > > > Function CopytoWss() > On Error GoTo Err_CopytoWss > DoCmd.SelectObject acTable, "Contacts" > DoCmd.RunCommand acCmdExportSharePointList > Exit_CopytoWss: > Exit Function > Err_CopytoWss: > MsgBox Err.Description, , "Error in Function CopytoWss" > Resume Exit_CopytoWss > Resume 0 '.FOR TROUBLESHOOTING > End Function > > > Martin > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 22 17:41:01 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 22 Sep 2006 18:41:01 -0400 Subject: [AccessD] Error Code Generator In-Reply-To: Message-ID: <00dc01c6de98$2ef68160$657aa8c0@m6805> Yep. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, September 22, 2006 5:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator WOT I SAID. :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, September 22, 2006 4:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Art, A "non-local" way simply cannot handle all the parts required. A local error handler knows that procedureA is about opening a recordset while procedureB is about opening a form, while ProcedureC is about calculating the cubic volume of a lake. Very different problems, very different errors that will occur. At the least the local error handler will have a case statement that has error values added to the case as the errors are discovered, but may indeed call a global error logger / emailer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 4:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Fri Sep 22 22:13:24 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 23 Sep 2006 13:13:24 +1000 Subject: [AccessD] Switching to VB.net Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local> I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M From lembit.dbamail at t-online.de Sat Sep 23 11:48:33 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sat, 23 Sep 2006 18:48:33 +0200 Subject: [AccessD] Access output to Excel References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local> Message-ID: <002401c6df30$1bf62be0$1400a8c0@v1000> I have an Excel worksheet (Excel 2002 SP3) with some named spaces. In Access (A2000) I have these named spaces as linked tables. I can read these tables (VB) as DAO.recordset just like any other table, However I cannot write to these tables. vb tells me its write protected. the xls file is NOT write protected. I have unprotected the worksheet. what else can be wrong? thanks Lembit From martyconnelly at shaw.ca Sat Sep 23 12:13:49 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 23 Sep 2006 10:13:49 -0700 Subject: [AccessD] Access output to Excel In-Reply-To: <002401c6df30$1bf62be0$1400a8c0@v1000> References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local> <002401c6df30$1bf62be0$1400a8c0@v1000> Message-ID: <45156B4D.4050003@shaw.ca> You have probably hit the Excel Access Link Patent infringement patch It was installed with a patch to Office XP or Office 2003 SP2, last may?? I don't know if you can back out of this patch. See explanation : http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 perhaps a workaround here to copy data back and forth via ADO what you cannot do now is see instant changes in the xls and mdb file simultaneously via links. http://office-watch.com/kb/?904953 Lembit Soobik wrote: >I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >In Access (A2000) I have these named spaces as linked tables. >I can read these tables (VB) as DAO.recordset just like any other table, >However I cannot write to these tables. >vb tells me its write protected. >the xls file is NOT write protected. >I have unprotected the worksheet. > >what else can be wrong? > >thanks >Lembit > > -- Marty Connelly Victoria, B.C. Canada From lembit.dbamail at t-online.de Sat Sep 23 12:34:38 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sat, 23 Sep 2006 19:34:38 +0200 Subject: [AccessD] Access output to Excel References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local><002401c6df30$1bf62be0$1400a8c0@v1000> <45156B4D.4050003@shaw.ca> Message-ID: <000f01c6df36$8bb1ef40$1400a8c0@v1000> oh, what a ?%!"?"/?/%! thank you, Marty, for the fast relply and the links. Do you know whether Access97 has the same problem? thanks Lembit ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 7:13 PM Subject: Re: [AccessD] Access output to Excel > You have probably hit the Excel Access Link Patent infringement patch > It was installed with a patch to Office XP or Office 2003 SP2, last may?? > I don't know if you can back out of this patch. > See explanation : > http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 > > perhaps a workaround here to copy data back and forth via ADO > what you cannot do now is see instant changes in the xls and mdb > file simultaneously via links. > > http://office-watch.com/kb/?904953 > > Lembit Soobik wrote: > >>I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >>In Access (A2000) I have these named spaces as linked tables. >>I can read these tables (VB) as DAO.recordset just like any other table, >>However I cannot write to these tables. >>vb tells me its write protected. >>the xls file is NOT write protected. >>I have unprotected the worksheet. >> >>what else can be wrong? >> >>thanks >>Lembit >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 > > From wdhindman at dejpolsystems.com Sat Sep 23 13:18:31 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 23 Sep 2006 14:18:31 -0400 Subject: [AccessD] Access output to Excel References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local><002401c6df30$1bf62be0$1400a8c0@v1000><45156B4D.4050003@shaw.ca> <000f01c6df36$8bb1ef40$1400a8c0@v1000> Message-ID: <000b01c6df3c$ad65a770$153ce944@50NM721> Lembit ...afaik, the patch was applied only to XP/2002 products and forward ...your problem may be in using the Excel 2k3 rather than the A2K itself ...if you can remove the SP2 office 2K3 patch, you may find that the linking will work again ...but then of course MS will insist you upgrade it again :( ...the guy wrote a brief description of how to link a spreadsheet back in '90 and got a patent on it ...MS claims it was working on the methodology before they were contacted by him in '92 ...he wanted $500 mil and $2 on every future MS sale ...MS said no ...the court gave him $8.7 mil and ordered MS to remove the functionality from all future products. ...MS was supposedly working on a verified clean room developed replacement ...why that would take so long is a mystery. William Hindman ----- Original Message ----- From: "Lembit Soobik" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 1:34 PM Subject: Re: [AccessD] Access output to Excel oh, what a ?%!"?"/?/%! thank you, Marty, for the fast relply and the links. Do you know whether Access97 has the same problem? thanks Lembit ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 7:13 PM Subject: Re: [AccessD] Access output to Excel > You have probably hit the Excel Access Link Patent infringement patch > It was installed with a patch to Office XP or Office 2003 SP2, last may?? > I don't know if you can back out of this patch. > See explanation : > http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 > > perhaps a workaround here to copy data back and forth via ADO > what you cannot do now is see instant changes in the xls and mdb > file simultaneously via links. > > http://office-watch.com/kb/?904953 > > Lembit Soobik wrote: > >>I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >>In Access (A2000) I have these named spaces as linked tables. >>I can read these tables (VB) as DAO.recordset just like any other table, >>However I cannot write to these tables. >>vb tells me its write protected. >>the xls file is NOT write protected. >>I have unprotected the worksheet. >> >>what else can be wrong? >> >>thanks >>Lembit >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sat Sep 23 15:40:34 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 23 Sep 2006 13:40:34 -0700 Subject: [AccessD] Access output to Excel In-Reply-To: <000f01c6df36$8bb1ef40$1400a8c0@v1000> References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local> <002401c6df30$1bf62be0$1400a8c0@v1000> <45156B4D.4050003@shaw.ca> <000f01c6df36$8bb1ef40$1400a8c0@v1000> Message-ID: <45159BC2.90209@shaw.ca> Here are the patches that produce the behaviour includes installs of Access 2003 runtimes. You might get away with it by running Access 2000 or lower. http://support.microsoft.com/?kbid=904953 I would suspect any patches to Access XP + after this date, or runtime installs and install of access 2007 Knowledge Base (KB) Articles: KB904018 Date Published: 10/18/2005 Tested it out with Access 2007 and Excel 2007 doesn't link if both programs open. The version level of Excel is irrelevant, it is a patch or version of Access that does it. However you can link tables properly with Access 97 and Excel 2007, I suppose Access 2000 would work too. Lembit Soobik wrote: >oh, what a ?%!"?"/?/%! > >thank you, Marty, for the fast relply and the links. > >Do you know whether Access97 has the same problem? > >thanks >Lembit > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Saturday, September 23, 2006 7:13 PM >Subject: Re: [AccessD] Access output to Excel > > > > >>You have probably hit the Excel Access Link Patent infringement patch >>It was installed with a patch to Office XP or Office 2003 SP2, last may?? >>I don't know if you can back out of this patch. >>See explanation : >>http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 >> >>perhaps a workaround here to copy data back and forth via ADO >>what you cannot do now is see instant changes in the xls and mdb >>file simultaneously via links. >> >>http://office-watch.com/kb/?904953 >> >>Lembit Soobik wrote: >> >> >> >>>I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >>>In Access (A2000) I have these named spaces as linked tables. >>>I can read these tables (VB) as DAO.recordset just like any other table, >>>However I cannot write to these tables. >>>vb tells me its write protected. >>>the xls file is NOT write protected. >>>I have unprotected the worksheet. >>> >>>what else can be wrong? >>> >>>thanks >>>Lembit >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >>-- >>No virus found in this incoming message. >>Checked by AVG Free Edition. >>Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From lembit.dbamail at t-online.de Sun Sep 24 04:47:27 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sun, 24 Sep 2006 11:47:27 +0200 Subject: [AccessD] Access output to Excel References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local><002401c6df30$1bf62be0$1400a8c0@v1000><45156B4D.4050003@shaw.ca><000f01c6df36$8bb1ef40$1400a8c0@v1000> <000b01c6df3c$ad65a770$153ce944@50NM721> Message-ID: <000a01c6dfbe$72679890$1400a8c0@v1000> thank you, William, pretty easy way to make money so for me its back to A97 lembit ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 8:18 PM Subject: Re: [AccessD] Access output to Excel Lembit ...afaik, the patch was applied only to XP/2002 products and forward ...your problem may be in using the Excel 2k3 rather than the A2K itself ...if you can remove the SP2 office 2K3 patch, you may find that the linking will work again ...but then of course MS will insist you upgrade it again :( ...the guy wrote a brief description of how to link a spreadsheet back in '90 and got a patent on it ...MS claims it was working on the methodology before they were contacted by him in '92 ...he wanted $500 mil and $2 on every future MS sale ...MS said no ...the court gave him $8.7 mil and ordered MS to remove the functionality from all future products. ...MS was supposedly working on a verified clean room developed replacement ...why that would take so long is a mystery. William Hindman ----- Original Message ----- From: "Lembit Soobik" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 1:34 PM Subject: Re: [AccessD] Access output to Excel oh, what a ?%!"?"/?/%! thank you, Marty, for the fast relply and the links. Do you know whether Access97 has the same problem? thanks Lembit ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 7:13 PM Subject: Re: [AccessD] Access output to Excel > You have probably hit the Excel Access Link Patent infringement patch > It was installed with a patch to Office XP or Office 2003 SP2, last may?? > I don't know if you can back out of this patch. > See explanation : > http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 > > perhaps a workaround here to copy data back and forth via ADO > what you cannot do now is see instant changes in the xls and mdb > file simultaneously via links. > > http://office-watch.com/kb/?904953 > > Lembit Soobik wrote: > >>I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >>In Access (A2000) I have these named spaces as linked tables. >>I can read these tables (VB) as DAO.recordset just like any other table, >>However I cannot write to these tables. >>vb tells me its write protected. >>the xls file is NOT write protected. >>I have unprotected the worksheet. >> >>what else can be wrong? >> >>thanks >>Lembit >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 From lembit.dbamail at t-online.de Sun Sep 24 04:49:15 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sun, 24 Sep 2006 11:49:15 +0200 Subject: [AccessD] Access output to Excel References: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local><002401c6df30$1bf62be0$1400a8c0@v1000> <45156B4D.4050003@shaw.ca><000f01c6df36$8bb1ef40$1400a8c0@v1000> <45159BC2.90209@shaw.ca> Message-ID: <000f01c6dfbe$b2739f60$1400a8c0@v1000> thank you, Marty, that means for me back to A97, rather than try to always stop the upgrades. Lembit ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, September 23, 2006 10:40 PM Subject: Re: [AccessD] Access output to Excel Here are the patches that produce the behaviour includes installs of Access 2003 runtimes. You might get away with it by running Access 2000 or lower. http://support.microsoft.com/?kbid=904953 I would suspect any patches to Access XP + after this date, or runtime installs and install of access 2007 Knowledge Base (KB) Articles: KB904018 Date Published: 10/18/2005 Tested it out with Access 2007 and Excel 2007 doesn't link if both programs open. The version level of Excel is irrelevant, it is a patch or version of Access that does it. However you can link tables properly with Access 97 and Excel 2007, I suppose Access 2000 would work too. Lembit Soobik wrote: >oh, what a ?%!"?"/?/%! > >thank you, Marty, for the fast relply and the links. > >Do you know whether Access97 has the same problem? > >thanks >Lembit > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Saturday, September 23, 2006 7:13 PM >Subject: Re: [AccessD] Access output to Excel > > > > >>You have probably hit the Excel Access Link Patent infringement patch >>It was installed with a patch to Office XP or Office 2003 SP2, last may?? >>I don't know if you can back out of this patch. >>See explanation : >>http://winks.office-watch.com/9/templates/feat.aspx?articleid=7&zoneid=2 >> >>perhaps a workaround here to copy data back and forth via ADO >>what you cannot do now is see instant changes in the xls and mdb >>file simultaneously via links. >> >>http://office-watch.com/kb/?904953 >> >>Lembit Soobik wrote: >> >> >> >>>I have an Excel worksheet (Excel 2002 SP3) with some named spaces. >>>In Access (A2000) I have these named spaces as linked tables. >>>I can read these tables (VB) as DAO.recordset just like any other table, >>>However I cannot write to these tables. >>>vb tells me its write protected. >>>the xls file is NOT write protected. >>>I have unprotected the worksheet. >>> >>>what else can be wrong? >>> >>>thanks >>>Lembit >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >>-- >>No virus found in this incoming message. >>Checked by AVG Free Edition. >>Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22.09.2006 From mwp.reid at qub.ac.uk Sun Sep 24 07:27:25 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 24 Sep 2006 13:27:25 +0100 Subject: [AccessD] OT Outlook References: Message-ID: It is my understanding that an Outlook EntryID can be used to uniquely ID an Outlook folder. i.e each folder has a unique GUID that can be referenced via VBA? Is this correct? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From martyconnelly at shaw.ca Sun Sep 24 11:01:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 24 Sep 2006 09:01:35 -0700 Subject: [AccessD] OT Outlook In-Reply-To: References: Message-ID: <4516ABDF.7050402@shaw.ca> At least from object model these should be synonymous. objFolder.EntryID (Hex string) and oFolder.Name I think you can list the entries with this magic constant cdoPR_EntryID = &HFFF0102 How I am not sure Dim oSession As MAPI.Session Dim oFolder As MAPI.Folder Dim objFolder As Outlook.MAPIFolder Set objFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox) Set oSession = CreateObject("MAPI.Session") oSession.Logon "", "", False, False Set oFolder = oSession.GetFolder(objFolder.EntryID, objFolder.StoreID) If oFolder Is Nothing Then Debug.Print "I am nada..." Else Debug.Print oFolder.Name End If Set oFolder = Nothing oSession.Logoff Set objFolder = Nothing Martin Reid wrote: >It is my understanding that an Outlook EntryID can be used to uniquely ID an Outlook folder. i.e each folder has a unique GUID that can be referenced via VBA? > >Is this correct? > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22/09/2006 > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Sun Sep 24 14:48:09 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 24 Sep 2006 20:48:09 +0100 Subject: [AccessD] OT Outlook References: <4516ABDF.7050402@shaw.ca> Message-ID: Thanks Marty That gets me started. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sun 24/09/2006 17:01 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook At least from object model these should be synonymous. objFolder.EntryID (Hex string) and oFolder.Name I think you can list the entries with this magic constant cdoPR_EntryID = &HFFF0102 How I am not sure Dim oSession As MAPI.Session Dim oFolder As MAPI.Folder Dim objFolder As Outlook.MAPIFolder Set objFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox) Set oSession = CreateObject("MAPI.Session") oSession.Logon "", "", False, False Set oFolder = oSession.GetFolder(objFolder.EntryID, objFolder.StoreID) If oFolder Is Nothing Then Debug.Print "I am nada..." Else Debug.Print oFolder.Name End If Set oFolder = Nothing oSession.Logoff Set objFolder = Nothing Martin Reid wrote: >It is my understanding that an Outlook EntryID can be used to uniquely ID an Outlook folder. i.e each folder has a unique GUID that can be referenced via VBA? > >Is this correct? > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22/09/2006 > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 25 00:08:33 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 25 Sep 2006 01:08:33 -0400 Subject: [AccessD] OT: Is anyone into controllers? Message-ID: <000001c6e060$a76eda60$657aa8c0@m6805> Well, I did it; I ordered most of the stuff required to build a controller project. Back in 1997 or so, while I was living in Puebla Mexico, I was tasked with building a controller based phone debit card vending machine. I designed it from the ground up, specing the micro-controller (a zworld z8xxx based SBC), using a bill acceptor and a custom built vending hopper to vend the debit cards. The micro was a ready built board with a ton of i/o pins, rs488, rs232 etc. It cost $180 qty 1. The language was a custom 'C' dialect written for ZWorld for use on their boards. In the end, 250 of the machines were produced, about 100 actually went into use around Puebla and in the subway in Mexico DF. Eventually the company went under, I found AccessD (1997) and I have been in this world ever since. It was the most fun I have ever had on a job, and I have been itching to get back in to controllers ever since. This time around I did the research and selected the Atmel family, specifically the AVR line http://www.atmel.com/dyn/products/devices.asp?family_id=607 These are extremely cheap, extremely powerful u-controllers. I purchased a handful of them as well as a programmer / debugger board and a demo board http://www.atmel.com/dyn/products/tools_card.asp?family_id=607 &family_name=AVR+8%2DBit+RISC+&tool_id=3146 which can be (re) programmed. I briefly considered the PIC family of controllers but they are pretty archaic and once I discovered the AVR I was sold. Life is cool again. Of course it is a learning curve reminiscent of .Net. I have been out of the controller world for many years and have to learn everything from scratch, the chips, the IDE, the 'C' compiler, the programmer / debugger. The tools so far are sooooo cool. There is a free IDE, assembler, 'C' language etc. The emulator actually allows you to watch the program run (I have written my first assembler program, though I don't have hardware yet), watch the registers, I/O pins etc, do all of the things you need to do to program - breakpoints, watchpoints etc. Of course I haven't written 'C' code since 1997... Controllers are a gas though, and once mastered allow you to do so many cool things with very simple circuits and some code. In this case I am looking to build a PWM motor controller for my son's ride-on Gator. From there, the moon. As my son gets older perhaps we can do some robotics stuff together. So is anyone out there doing anything with controllers, want to chat about it? Anyone want to get into it? It is really neat stuff and these chips are cheap and immensely powerful. How about 40 pins, 16 MIPS, 32K program, eerom, ram etc for $13 for the controller? Or 8 pins, 2K program, eerom, ram, etc for $2. A breadboard, some resistors / LEDs (or even LCDs) and you are off and running. Want to build a sun tracker for your solar array? A robot that will follow a line on the floor? An alarm system for your house? A battle bot? Should be fun. I have a forum on my web site we can use if anyone wants to join the fun. John W. Colby Colby Consulting www.ColbyConsulting.com From cfoust at infostatsystems.com Mon Sep 25 10:18:06 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Sep 2006 08:18:06 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFB4@corp-es01.fleetpride.com> Message-ID: LOL So true! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, September 22, 2006 7:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net Not to be confused with N-tear(ed) which describes the many levels of weeping and gnashing of teeth generally associated with every M$ architecture. Jim Hale -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, September 22, 2006 9:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net N-tiered design just separates the presentation tier from the data tier and the business rules. They're pretty much bundled together in Access, but for enterprise solutions, network solutions and web-based solutions, n-tier is the way to go. Charlotte Foust *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Mon Sep 25 10:22:45 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 25 Sep 2006 11:22:45 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0113DBD1@MARLOW_MAIN2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1B0113DBD1@MARLOW_MAIN2.marlow.com> Message-ID: <4517F445.3060705@torchlake.com> Hi Drew, Yes, maybe - if I do it that way, let me think how I'd go about it. I would create my Access queries with their date-range, wells, or wellfield parameters to get my data - create my Excel spreadsheets and graphs for the several different data combinations. Then import into Excel from the updated Access queries as desired. Yes? The queries are all parameter queries, getting their parameters from combo boxes and calendar controls on a form - so, I'm thinking to use make-table queries to provide standard consistent data sources for the Excel spreadsheets. Most of the users in this client office do know something about Excel, but virtually nothing about Access. For that reason I am looking for ways to provide them with buttons and drop-down selection lists to generate the data set they want to see graphed, then a quick easy leap of some kind to the Excel spreadsheets and graphs of the selected data. On the Excel side I would like to provide a button to run the macro that generates the graph, or have the data come directly into named ranges that are already set up as the source for my graph. I don't yet see how to import fresh data from the Access query-made-table into Excel without overwriting any named ranges I had established - and, thereby, losing the sources for my graph series. I like the simplicity of your suggestion. Would you share more of your thoughts, please? Thank you, Tina DWUTKA at marlow.com wrote: > Why automate at all? Excel allows you to place external data on a > spreadsheet, and you can have the sheet prompt to 'refresh' the data > whenever excel is opened. It's pretty straight forward, and wouldn't > require using any code. (Hey, wait, am I advocating a non-code approach? > William may take away my 'Code Boy' title!) > > Drew > > > From cfoust at infostatsystems.com Mon Sep 25 10:24:33 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Sep 2006 08:24:33 -0700 Subject: [AccessD] Error Code Generator In-Reply-To: <20060922201134.79846.qmail@web88204.mail.re2.yahoo.com> Message-ID: Think of it like this: If you don't at least trap the error in the procedure where it occurs, how do you expect to get that information? Errors that are unhandled in a procedure bounce back up until they find an error handler. By that time, you have no idea where they originated, you only know what the error is. So even if you have a "global" error handler, you still need to trap errors in the procedure so you know where to look for the problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Mon Sep 25 10:27:39 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 25 Sep 2006 16:27:39 +0100 Subject: [AccessD] Loadfromtext References: <17724746D360394AA3BFE5B8D40A9C1B0113DBD1@MARLOW_MAIN2.marlow.com> <4517F445.3060705@torchlake.com> Message-ID: I want to loop over a folder contain X number of text files. Any ideas. For example Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From tinanfields at torchlake.com Mon Sep 25 10:35:13 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 25 Sep 2006 11:35:13 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <0J6000F8JA5JB5J0@l-daemon> References: <0J6000F8JA5JB5J0@l-daemon> Message-ID: <4517F731.9090609@torchlake.com> Hi Jim: Recordsets - are those something other than the results of my queries? I'm not familiar with this idea. Please tell me more. Eventually, this database (existing, found "as is" - working out modifications one by one) will be split into BE and FE, and put on the client's network, but for now, only one individual even has access to the database (pun unintended and unavoidable). Everyone else just asks for specific output. Thank you for your assistance, Tina Jim Lawrence wrote: > Hi Tina: > > The best approach I found was to use recordsets to hold the data. Recordsets > are more flexible than tables as they can be easily modified, added to and > deleted and you do not have to worry about multiple users if you are using a > centralized BE for temp table storage. > > Jim > > > From tinanfields at torchlake.com Mon Sep 25 10:37:03 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 25 Sep 2006 11:37:03 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <7c8826480609221144jdb43c92n9098843c6ed68bd8@mail.gmail.com> References: <4514047B.3090203@torchlake.com> <7c8826480609221144jdb43c92n9098843c6ed68bd8@mail.gmail.com> Message-ID: <4517F79F.8090404@torchlake.com> Hi Billy, Very good point. Thank you for bringing it up. Got to take out the garbage and clean up after myself! Thanks, Tina Billy Pang wrote: > If you plan on going to the Access-Excel automation route, I found that it > is good practice to destroy all the objects you create after you are done > with them. That is, > > Set xlSheet = nothing > > Also, reference your excel objects in its entirety to ensure that the > objects are properly destroyed. For example, copying a worksheet... > > xlSheet.Copy after:=xlApp.Worksheets("Sheet1") <-- Good > > xlSheet.Copy after:=Worksheets("Sheet1") <-- Bad > Otherwise, Set xlSheet = nothing will not work and the object will hang > around, which may produce unexpected results. > > Billy > > > > From tinanfields at torchlake.com Mon Sep 25 10:45:27 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 25 Sep 2006 11:45:27 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <4514368D.8080708@shaw.ca> References: <4514047B.3090203@torchlake.com> <4514368D.8080708@shaw.ca> Message-ID: <4517F997.3050509@torchlake.com> Hi Marty, This sounds like a very good thought, too. The cost of the software is a stumbling block for me, and, I suspect, for my client, too. It's a small firm - I'm even smaller, of course. However, exploring this idea is well worth my effort. Thanks for the thought, Tina MartyConnelly wrote: > I would be tempted to use an ActiveX 3'd party graphing solution, I find > Excel Graph > much like using an ExaSketch. I would use one like TeeChart. > http://www.steema.com/products/teechart/gallery_std.html > > If the client isn't an engineer, the aesthetics of the graph will be > important > and multi-line graphs with labelling gets very tricky in Excel > > Maybe others can suggest other ActiveX's, this one is $359 for developers > version. There maybe ones aimed specifically at Excel. I have heard of > people using Tableau > Software but then you are up to $1200. I am used to using DISSPLA on > mainframes > with Fortran. > > > > From tinanfields at torchlake.com Mon Sep 25 10:47:22 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 25 Sep 2006 11:47:22 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <002001c6de85$eafaf610$0200a8c0@danwaters> References: <002001c6de85$eafaf610$0200a8c0@danwaters> Message-ID: <4517FA0A.7040100@torchlake.com> Hi Dan, Okay, I will take a good look at that. I hadn't even though of using MS Graph! Thanks for the idea, Tina Dan Waters wrote: > I would suggest looking at MS Graph. It has the power, within Access, to > create a chart that looks just as good as Excel. You'll need to do quite a > bit of data manipulation, or create cascading queries, but this keeps it all > in one application. > > The only difference that I've seen so far is that in MS Graph I couldn't > 'smooth' a line series. > > Dan Waters > > > From bheid at appdevgrp.com Mon Sep 25 10:50:06 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 25 Sep 2006 11:50:06 -0400 Subject: [AccessD] Loadfromtext In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E36ED1@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3591B@ADGSERVER> Why not load all of the items into one or more arrays and then process the files by traversing the arrays? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Monday, September 25, 2006 11:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Loadfromtext I want to loop over a folder contain X number of text files. Any ideas. For example Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From dwaters at usinternet.com Mon Sep 25 10:55:58 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 25 Sep 2006 10:55:58 -0500 Subject: [AccessD] Error Code Generator In-Reply-To: <28746865.1159198274855.JavaMail.root@sniper44> Message-ID: <002101c6e0bb$187f4d20$0200a8c0@danwaters> Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd- Think of it like this: If you don't at least trap the error in the procedure where it occurs, how do you expect to get that information? Errors that are unhandled in a procedure bounce back up until they find an error handler. By that time, you have no idea where they originated, you only know what the error is. So even if you have a "global" error handler, you still need to trap errors in the procedure so you know where to look for the problem. Charlotte Foust -----Original Message----- Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin From dwaters at usinternet.com Mon Sep 25 11:12:04 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 25 Sep 2006 11:12:04 -0500 Subject: [AccessD] Error Code Generator In-Reply-To: <19835284.1159200022468.JavaMail.root@sniper3> Message-ID: <002e01c6e0bd$5814b270$0200a8c0@danwaters> And - The system will automatically email a copy of the error table to me every weekday. I've found that I often know of the error before my customer does - which is good! Dan Waters -----Original Message----- Subject: Re: [AccessD] Error Code Generator Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd- Think of it like this: If you don't at least trap the error in the procedure where it occurs, how do you expect to get that information? Errors that are unhandled in a procedure bounce back up until they find an error handler. By that time, you have no idea where they originated, you only know what the error is. So even if you have a "global" error handler, you still need to trap errors in the procedure so you know where to look for the problem. Charlotte Foust -----Original Message----- Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Sep 25 11:44:02 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 25 Sep 2006 16:44:02 +0000 Subject: [AccessD] Loadfromtext In-Reply-To: Message-ID: Martin, I'm not sure that I understand exactly what you are asking...but I have a stock program that does something similar. Every 30 minutes...this app checks an FTP site...gets all file(*.zip), unzips ALL files, then imports ALL files. All of my files have different names, but they are all in the same format...your email almost sounds like you would have to import differently for each file name??? If not...below is the code I use to import ALL files in a named folder...regardless of file name, just looking for the extensions. Hope it helps, Mark A. Matte SAMPLE ******************************* Public Function ImportData() MyPath = "C:\Stock\BriterStockBiHourlyTEMP\*.csv" MyName = Dir(MyPath) ' Retrieve the first entry. DoCmd.SetWarnings False Do While MyName <> "" ' Start the loop. DoCmd.TransferText acImportDelim, "EndofdayallImportSpecification", "tblDailyStock", "C:\Stock\BriterStockBiHourlyTEMP\" & MyName ' Ignore the current directory and the encompassing directory. If MyName <> "." And MyName <> ".." Then MyName = Dir ' Get next entry. End If Loop FileCleanUp End Function ************************* >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Loadfromtext >Date: Mon, 25 Sep 2006 16:27:39 +0100 > >I want to loop over a folder contain X number of text files. Any ideas. For >example > >Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" > >Instead of a single file I need them all BUT some are prefixed FORM, >REPORT,MODULE, QUERY and I need to change the constant accordingly. > >I know I can run one process for each type but would it be possible to do >them all in the proper squence in one hit. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Sep 25 11:38:44 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 25 Sep 2006 12:38:44 -0400 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <000001c6e060$a76eda60$657aa8c0@m6805> Message-ID: <0J6500LMAQ8LON58@vms048.mailsrvcs.net> John, I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. Was a lot of fun though! Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:09 AM To: Tech - Database Advisors Inc.; 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Is anyone into controllers? Well, I did it; I ordered most of the stuff required to build a controller project. Back in 1997 or so, while I was living in Puebla Mexico, I was tasked with building a controller based phone debit card vending machine. I designed it from the ground up, specing the micro-controller (a zworld z8xxx based SBC), using a bill acceptor and a custom built vending hopper to vend the debit cards. The micro was a ready built board with a ton of i/o pins, rs488, rs232 etc. It cost $180 qty 1. The language was a custom 'C' dialect written for ZWorld for use on their boards. In the end, 250 of the machines were produced, about 100 actually went into use around Puebla and in the subway in Mexico DF. Eventually the company went under, I found AccessD (1997) and I have been in this world ever since. It was the most fun I have ever had on a job, and I have been itching to get back in to controllers ever since. This time around I did the research and selected the Atmel family, specifically the AVR line http://www.atmel.com/dyn/products/devices.asp?family_id=607 These are extremely cheap, extremely powerful u-controllers. I purchased a handful of them as well as a programmer / debugger board and a demo board http://www.atmel.com/dyn/products/tools_card.asp?family_id=607 &family_name=AVR+8%2DBit+RISC+&tool_id=3146 which can be (re) programmed. I briefly considered the PIC family of controllers but they are pretty archaic and once I discovered the AVR I was sold. Life is cool again. Of course it is a learning curve reminiscent of .Net. I have been out of the controller world for many years and have to learn everything from scratch, the chips, the IDE, the 'C' compiler, the programmer / debugger. The tools so far are sooooo cool. There is a free IDE, assembler, 'C' language etc. The emulator actually allows you to watch the program run (I have written my first assembler program, though I don't have hardware yet), watch the registers, I/O pins etc, do all of the things you need to do to program - breakpoints, watchpoints etc. Of course I haven't written 'C' code since 1997... Controllers are a gas though, and once mastered allow you to do so many cool things with very simple circuits and some code. In this case I am looking to build a PWM motor controller for my son's ride-on Gator. From there, the moon. As my son gets older perhaps we can do some robotics stuff together. So is anyone out there doing anything with controllers, want to chat about it? Anyone want to get into it? It is really neat stuff and these chips are cheap and immensely powerful. How about 40 pins, 16 MIPS, 32K program, eerom, ram etc for $13 for the controller? Or 8 pins, 2K program, eerom, ram, etc for $2. A breadboard, some resistors / LEDs (or even LCDs) and you are off and running. Want to build a sun tracker for your solar array? A robot that will follow a line on the floor? An alarm system for your house? A battle bot? Should be fun. I have a forum on my web site we can use if anyone wants to join the fun. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 25 12:01:20 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 25 Sep 2006 13:01:20 -0400 Subject: [AccessD] Error Code Generator In-Reply-To: <002101c6e0bb$187f4d20$0200a8c0@danwaters> Message-ID: <001f01c6e0c4$3a2b83e0$657aa8c0@m6805> Well, that certainly works for logging all errors. What happens when you simply want to ignore a certain type of error: On err = 15 resume next Or On Err = 15 resume ExitLabel Or you want to do other processing: On err = 15 CallMyFunction When a global error handler exists, then all of the LOGIC associated with handling that error is now out in the error handler function, away from the code where the error is happening. For documentation it helps to have the error cases commented Select case err case 15,16,18 'These cases occure when... Do something for these errors Resume ExitLabel case 97 'This case occurs when... Do something else here Resume next Case else Error Logger 'Call the global error logger to log any cases not specifically trapped above end select There are errors that occur that are simply expected and ignored. Why call the error handler for these cases. A simple resume next is all that is needed. Others require local action (open a recordset, change a null to a 0 etc.) then a resume next. This kind of stuff belongs in the function where the error occurred. What happens when you delete an entire function? All of the error handling is out in your error handler and is accumulating trash. If the error case is in the function then the error handler is deleted along with the function. I have no quibble with having an error LOGGER to call to log any errors that are unexpected and not handled in the local function (until they can be handled there) or even to log expected errors, but to handle every error in your program in one humongus error handler is unwieldy IMHO. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters From artful at rogers.com Mon Sep 25 12:18:18 2006 From: artful at rogers.com (artful at rogers.com) Date: Mon, 25 Sep 2006 10:18:18 -0700 (PDT) Subject: [AccessD] Error Code Generator In-Reply-To: <001f01c6e0c4$3a2b83e0$657aa8c0@m6805> Message-ID: <20060925171818.10048.qmail@web88210.mail.re2.yahoo.com> Good points, all. And presumably the jump to a global handler would cost cycles, as opposed to a local handler. I have no idea how to measure in advance this cost nor the cost in size of 1000 local handlers. I think this has come up before but I cannot recall the answer: is there a function or some other method to capture the procname? I.e. ProcName()? Arthur ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Monday, September 25, 2006 1:01:20 PM Subject: Re: [AccessD] Error Code Generator Well, that certainly works for logging all errors. What happens when you simply want to ignore a certain type of error: On err = 15 resume next Or On Err = 15 resume ExitLabel Or you want to do other processing: On err = 15 CallMyFunction When a global error handler exists, then all of the LOGIC associated with handling that error is now out in the error handler function, away from the code where the error is happening. For documentation it helps to have the error cases commented Select case err case 15,16,18 'These cases occure when... Do something for these errors Resume ExitLabel case 97 'This case occurs when... Do something else here Resume next Case else Error Logger 'Call the global error logger to log any cases not specifically trapped above end select There are errors that occur that are simply expected and ignored. Why call the error handler for these cases. A simple resume next is all that is needed. Others require local action (open a recordset, change a null to a 0 etc.) then a resume next. This kind of stuff belongs in the function where the error occurred. What happens when you delete an entire function? All of the error handling is out in your error handler and is accumulating trash. If the error case is in the function then the error handler is deleted along with the function. I have no quibble with having an error LOGGER to call to log any errors that are unexpected and not handled in the local function (until they can be handled there) or even to log expected errors, but to handle every error in your program in one humongus error handler is unwieldy IMHO. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 25 12:26:23 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 25 Sep 2006 13:26:23 -0400 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <0J6500LMAQ8LON58@vms048.mailsrvcs.net> Message-ID: <002301c6e0c7$ba1a3030$657aa8c0@m6805> >I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. You should see what the controllers can do now. And CHEAP!!! At least for the part itself. The programming / debugging hardware are fairly cheap too, anywhere from $40 up to $250 or so depending on what you want. The software can be free - the dev environment I am using is completely free - or up to $200 or so for a Basic or C compiler. I bought a handful of parts for under $40, a programmer / "ICE" for about 50 that handles all of the parts that ATMEL sells, and the free software. All told, under $100 to get back in and start playing. Yea, I still really need to go buy a prototype board ($20-$30) and a couple of cabinets of resisters / caps / transistors ($50-$100) but you can play without that stuff. Atmel sells what they call the Butterfly which is a demo board http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3146 It is a fully functional board that actually works as it is, but can then be hooked up to a programmer and used as a prototyping board. $20!!! This is a pretty cheap hobby all things considered. >Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. LOL, yea, I know about that. I just loved doing it and want to get back in. I started in electronics back in the 70s when you actually needed an o'scope and soldering iron to fix a computer. Now you throw away an entire motherboard because the skills to troubleshoot it and time required don't make sense any more. I can read schematics though, I even designed circuit boards back in the mid 80s for simple component testing stuff (using OrCad). Since the uC now does most of the work, the circuits are much simpler, and the software is where all the action is. With modern technology, you can design a schematic, route it, create Gerber / drill files, send the files to a board fab house and get back a finished PC ready to stuff. Other than your time to do all that stuff, the cost is quite low. A few hundred for the CAD software for the board design, a few hundred for the uC programming hardware / software / ICE. The PC boards can be as low as a few dollars if they are simple and you order a bunch in one board. A hundred or two can buy a bunch of simple printed circuit cards. Want to design a product to sell on your web site / eBay? $1000 and you are in business. Amazing when you think about it. Of course I haven't done that stuff for almost 20 years. But why not? Something to do in my copious spare time. I am just tired of Access / SQL Server / Databases. I do it, I make good money at it, but I want to be able to do something else in my spare time. Controllers are fun. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 12:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? John, I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. Was a lot of fun though! Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:09 AM To: Tech - Database Advisors Inc.; 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Is anyone into controllers? Well, I did it; I ordered most of the stuff required to build a controller project. Back in 1997 or so, while I was living in Puebla Mexico, I was tasked with building a controller based phone debit card vending machine. I designed it from the ground up, specing the micro-controller (a zworld z8xxx based SBC), using a bill acceptor and a custom built vending hopper to vend the debit cards. The micro was a ready built board with a ton of i/o pins, rs488, rs232 etc. It cost $180 qty 1. The language was a custom 'C' dialect written for ZWorld for use on their boards. In the end, 250 of the machines were produced, about 100 actually went into use around Puebla and in the subway in Mexico DF. Eventually the company went under, I found AccessD (1997) and I have been in this world ever since. It was the most fun I have ever had on a job, and I have been itching to get back in to controllers ever since. This time around I did the research and selected the Atmel family, specifically the AVR line http://www.atmel.com/dyn/products/devices.asp?family_id=607 These are extremely cheap, extremely powerful u-controllers. I purchased a handful of them as well as a programmer / debugger board and a demo board http://www.atmel.com/dyn/products/tools_card.asp?family_id=607 AVR+&family_name=AVR+8%2DBit+RISC+&tool_id=3146 which can be (re) programmed. I briefly considered the PIC family of controllers but they are pretty archaic and once I discovered the AVR I was sold. Life is cool again. Of course it is a learning curve reminiscent of .Net. I have been out of the controller world for many years and have to learn everything from scratch, the chips, the IDE, the 'C' compiler, the programmer / debugger. The tools so far are sooooo cool. There is a free IDE, assembler, 'C' language etc. The emulator actually allows you to watch the program run (I have written my first assembler program, though I don't have hardware yet), watch the registers, I/O pins etc, do all of the things you need to do to program - breakpoints, watchpoints etc. Of course I haven't written 'C' code since 1997... Controllers are a gas though, and once mastered allow you to do so many cool things with very simple circuits and some code. In this case I am looking to build a PWM motor controller for my son's ride-on Gator. From there, the moon. As my son gets older perhaps we can do some robotics stuff together. So is anyone out there doing anything with controllers, want to chat about it? Anyone want to get into it? It is really neat stuff and these chips are cheap and immensely powerful. How about 40 pins, 16 MIPS, 32K program, eerom, ram etc for $13 for the controller? Or 8 pins, 2K program, eerom, ram, etc for $2. A breadboard, some resistors / LEDs (or even LCDs) and you are off and running. Want to build a sun tracker for your solar array? A robot that will follow a line on the floor? An alarm system for your house? A battle bot? Should be fun. I have a forum on my web site we can use if anyone wants to join the fun. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 25 13:07:40 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 25 Sep 2006 14:07:40 -0400 Subject: [AccessD] Error Code Generator In-Reply-To: <20060925171818.10048.qmail@web88210.mail.re2.yahoo.com> Message-ID: <002401c6e0cd$7e7b38c0$657aa8c0@m6805> >I think this has come up before but I cannot recall the answer: is there a function or some other method to capture the procname? I.e. ProcName()? Nope. VBA is an interpreter, executing Pcode. All of the function names are just labels in a jump table, and in fact in an MDE are gone entirely. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, September 25, 2006 1:18 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator Good points, all. And presumably the jump to a global handler would cost cycles, as opposed to a local handler. I have no idea how to measure in advance this cost nor the cost in size of 1000 local handlers. I think this has come up before but I cannot recall the answer: is there a function or some other method to capture the procname? I.e. ProcName()? Arthur ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Monday, September 25, 2006 1:01:20 PM Subject: Re: [AccessD] Error Code Generator Well, that certainly works for logging all errors. What happens when you simply want to ignore a certain type of error: On err = 15 resume next Or On Err = 15 resume ExitLabel Or you want to do other processing: On err = 15 CallMyFunction When a global error handler exists, then all of the LOGIC associated with handling that error is now out in the error handler function, away from the code where the error is happening. For documentation it helps to have the error cases commented Select case err case 15,16,18 'These cases occure when... Do something for these errors Resume ExitLabel case 97 'This case occurs when... Do something else here Resume next Case else Error Logger 'Call the global error logger to log any cases not specifically trapped above end select There are errors that occur that are simply expected and ignored. Why call the error handler for these cases. A simple resume next is all that is needed. Others require local action (open a recordset, change a null to a 0 etc.) then a resume next. This kind of stuff belongs in the function where the error occurred. What happens when you delete an entire function? All of the error handling is out in your error handler and is accumulating trash. If the error case is in the function then the error handler is deleted along with the function. I have no quibble with having an error LOGGER to call to log any errors that are unexpected and not handled in the local function (until they can be handled there) or even to log expected errors, but to handle every error in your program in one humongus error handler is unwieldy IMHO. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Sep 25 13:18:02 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 25 Sep 2006 14:18:02 -0400 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <002301c6e0c7$ba1a3030$657aa8c0@m6805> Message-ID: <0J6500LB8UU2JSGA@vms040.mailsrvcs.net> John, <> Ditto that. I've been hunting for the "next best thing" for a while now. Been at Access since version 1 and business apps for 22 years. It's getting old. At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Was thinking about teaching, but I'd have to go back for my masters. But right now, I've got four kids that are either going through college or will be in the next few years. The bill is already starting to add up enough. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? >I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. You should see what the controllers can do now. And CHEAP!!! At least for the part itself. The programming / debugging hardware are fairly cheap too, anywhere from $40 up to $250 or so depending on what you want. The software can be free - the dev environment I am using is completely free - or up to $200 or so for a Basic or C compiler. I bought a handful of parts for under $40, a programmer / "ICE" for about 50 that handles all of the parts that ATMEL sells, and the free software. All told, under $100 to get back in and start playing. Yea, I still really need to go buy a prototype board ($20-$30) and a couple of cabinets of resisters / caps / transistors ($50-$100) but you can play without that stuff. Atmel sells what they call the Butterfly which is a demo board http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3146 It is a fully functional board that actually works as it is, but can then be hooked up to a programmer and used as a prototyping board. $20!!! This is a pretty cheap hobby all things considered. >Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. LOL, yea, I know about that. I just loved doing it and want to get back in. I started in electronics back in the 70s when you actually needed an o'scope and soldering iron to fix a computer. Now you throw away an entire motherboard because the skills to troubleshoot it and time required don't make sense any more. I can read schematics though, I even designed circuit boards back in the mid 80s for simple component testing stuff (using OrCad). Since the uC now does most of the work, the circuits are much simpler, and the software is where all the action is. With modern technology, you can design a schematic, route it, create Gerber / drill files, send the files to a board fab house and get back a finished PC ready to stuff. Other than your time to do all that stuff, the cost is quite low. A few hundred for the CAD software for the board design, a few hundred for the uC programming hardware / software / ICE. The PC boards can be as low as a few dollars if they are simple and you order a bunch in one board. A hundred or two can buy a bunch of simple printed circuit cards. Want to design a product to sell on your web site / eBay? $1000 and you are in business. Amazing when you think about it. Of course I haven't done that stuff for almost 20 years. But why not? Something to do in my copious spare time. I am just tired of Access / SQL Server / Databases. I do it, I make good money at it, but I want to be able to do something else in my spare time. Controllers are fun. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 12:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? John, I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. Was a lot of fun though! Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:09 AM To: Tech - Database Advisors Inc.; 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Is anyone into controllers? Well, I did it; I ordered most of the stuff required to build a controller project. Back in 1997 or so, while I was living in Puebla Mexico, I was tasked with building a controller based phone debit card vending machine. I designed it from the ground up, specing the micro-controller (a zworld z8xxx based SBC), using a bill acceptor and a custom built vending hopper to vend the debit cards. The micro was a ready built board with a ton of i/o pins, rs488, rs232 etc. It cost $180 qty 1. The language was a custom 'C' dialect written for ZWorld for use on their boards. In the end, 250 of the machines were produced, about 100 actually went into use around Puebla and in the subway in Mexico DF. Eventually the company went under, I found AccessD (1997) and I have been in this world ever since. It was the most fun I have ever had on a job, and I have been itching to get back in to controllers ever since. This time around I did the research and selected the Atmel family, specifically the AVR line http://www.atmel.com/dyn/products/devices.asp?family_id=607 These are extremely cheap, extremely powerful u-controllers. I purchased a handful of them as well as a programmer / debugger board and a demo board http://www.atmel.com/dyn/products/tools_card.asp?family_id=607 AVR+&family_name=AVR+8%2DBit+RISC+&tool_id=3146 which can be (re) programmed. I briefly considered the PIC family of controllers but they are pretty archaic and once I discovered the AVR I was sold. Life is cool again. Of course it is a learning curve reminiscent of .Net. I have been out of the controller world for many years and have to learn everything from scratch, the chips, the IDE, the 'C' compiler, the programmer / debugger. The tools so far are sooooo cool. There is a free IDE, assembler, 'C' language etc. The emulator actually allows you to watch the program run (I have written my first assembler program, though I don't have hardware yet), watch the registers, I/O pins etc, do all of the things you need to do to program - breakpoints, watchpoints etc. Of course I haven't written 'C' code since 1997... Controllers are a gas though, and once mastered allow you to do so many cool things with very simple circuits and some code. In this case I am looking to build a PWM motor controller for my son's ride-on Gator. From there, the moon. As my son gets older perhaps we can do some robotics stuff together. So is anyone out there doing anything with controllers, want to chat about it? Anyone want to get into it? It is really neat stuff and these chips are cheap and immensely powerful. How about 40 pins, 16 MIPS, 32K program, eerom, ram etc for $13 for the controller? Or 8 pins, 2K program, eerom, ram, etc for $2. A breadboard, some resistors / LEDs (or even LCDs) and you are off and running. Want to build a sun tracker for your solar array? A robot that will follow a line on the floor? An alarm system for your house? A battle bot? Should be fun. I have a forum on my web site we can use if anyone wants to join the fun. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Mon Sep 25 13:35:10 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 25 Sep 2006 14:35:10 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: OT: Is anyone into controllers? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E36F1B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3591F@ADGSERVER> I feel your pain, one wife and 2 kids in college now. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 2:18 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] Re: [AccessD] OT: Is anyone into controllers? Importance: Low John, <> Ditto that. I've been hunting for the "next best thing" for a while now. Been at Access since version 1 and business apps for 22 years. It's getting old. At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Was thinking about teaching, but I'd have to go back for my masters. But right now, I've got four kids that are either going through college or will be in the next few years. The bill is already starting to add up enough. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? >I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. You should see what the controllers can do now. And CHEAP!!! At least for the part itself. The programming / debugging hardware are fairly cheap too, anywhere from $40 up to $250 or so depending on what you want. The software can be free - the dev environment I am using is completely free - or up to $200 or so for a Basic or C compiler. I bought a handful of parts for under $40, a programmer / "ICE" for about 50 that handles all of the parts that ATMEL sells, and the free software. All told, under $100 to get back in and start playing. Yea, I still really need to go buy a prototype board ($20-$30) and a couple of cabinets of resisters / caps / transistors ($50-$100) but you can play without that stuff. Atmel sells what they call the Butterfly which is a demo board http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3146 It is a fully functional board that actually works as it is, but can then be hooked up to a programmer and used as a prototyping board. $20!!! This is a pretty cheap hobby all things considered. >Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. LOL, yea, I know about that. I just loved doing it and want to get back in. I started in electronics back in the 70s when you actually needed an o'scope and soldering iron to fix a computer. Now you throw away an entire motherboard because the skills to troubleshoot it and time required don't make sense any more. I can read schematics though, I even designed circuit boards back in the mid 80s for simple component testing stuff (using OrCad). Since the uC now does most of the work, the circuits are much simpler, and the software is where all the action is. With modern technology, you can design a schematic, route it, create Gerber / drill files, send the files to a board fab house and get back a finished PC ready to stuff. Other than your time to do all that stuff, the cost is quite low. A few hundred for the CAD software for the board design, a few hundred for the uC programming hardware / software / ICE. The PC boards can be as low as a few dollars if they are simple and you order a bunch in one board. A hundred or two can buy a bunch of simple printed circuit cards. Want to design a product to sell on your web site / eBay? $1000 and you are in business. Amazing when you think about it. Of course I haven't done that stuff for almost 20 years. But why not? Something to do in my copious spare time. I am just tired of Access / SQL Server / Databases. I do it, I make good money at it, but I want to be able to do something else in my spare time. Controllers are fun. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 12:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? John, I've done some PLC work with the TI series for some factory floor automation, but that was years ago. Haven't done any embedded stuff like your talking about. Was a lot of fun though! Wish I had time to do stuff like that again. But time is very short these paste few years. Been working 10-12 hour days, weekends, etc and still can't keep up. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 1:09 AM To: Tech - Database Advisors Inc.; 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Is anyone into controllers? Well, I did it; I ordered most of the stuff required to build a controller project. Back in 1997 or so, while I was living in Puebla Mexico, I was tasked with building a controller based phone debit card vending machine. I designed it from the ground up, specing the micro-controller (a zworld z8xxx based SBC), using a bill acceptor and a custom built vending hopper to vend the debit cards. The micro was a ready built board with a ton of i/o pins, rs488, rs232 etc. It cost $180 qty 1. The language was a custom 'C' dialect written for ZWorld for use on their boards. In the end, 250 of the machines were produced, about 100 actually went into use around Puebla and in the subway in Mexico DF. Eventually the company went under, I found AccessD (1997) and I have been in this world ever since. It was the most fun I have ever had on a job, and I have been itching to get back in to controllers ever since. This time around I did the research and selected the Atmel family, specifically the AVR line http://www.atmel.com/dyn/products/devices.asp?family_id=607 These are extremely cheap, extremely powerful u-controllers. I purchased a handful of them as well as a programmer / debugger board and a demo board http://www.atmel.com/dyn/products/tools_card.asp?family_id=607 AVR+&family_name=AVR+8%2DBit+RISC+&tool_id=3146 which can be (re) programmed. I briefly considered the PIC family of controllers but they are pretty archaic and once I discovered the AVR I was sold. Life is cool again. Of course it is a learning curve reminiscent of .Net. I have been out of the controller world for many years and have to learn everything from scratch, the chips, the IDE, the 'C' compiler, the programmer / debugger. The tools so far are sooooo cool. There is a free IDE, assembler, 'C' language etc. The emulator actually allows you to watch the program run (I have written my first assembler program, though I don't have hardware yet), watch the registers, I/O pins etc, do all of the things you need to do to program - breakpoints, watchpoints etc. Of course I haven't written 'C' code since 1997... Controllers are a gas though, and once mastered allow you to do so many cool things with very simple circuits and some code. In this case I am looking to build a PWM motor controller for my son's ride-on Gator. From there, the moon. As my son gets older perhaps we can do some robotics stuff together. So is anyone out there doing anything with controllers, want to chat about it? Anyone want to get into it? It is really neat stuff and these chips are cheap and immensely powerful. How about 40 pins, 16 MIPS, 32K program, eerom, ram etc for $13 for the controller? Or 8 pins, 2K program, eerom, ram, etc for $2. A breadboard, some resistors / LEDs (or even LCDs) and you are off and running. Want to build a sun tracker for your solar array? A robot that will follow a line on the floor? An alarm system for your house? A battle bot? Should be fun. I have a forum on my web site we can use if anyone wants to join the fun. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Mon Sep 25 13:39:17 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 25 Sep 2006 14:39:17 -0400 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <0J6500LB8UU2JSGA@vms040.mailsrvcs.net> Message-ID: <002801c6e0d1$e8feb0b0$657aa8c0@m6805> >At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Hey! I resemble that remark. At 52 ... Any my kids won't even START college for another 13 years. ;-) I'm not sure that controllers are "the next best thing" though they do offer the ability to create a product that the masses might buy. I am looking at a controller that the enthusiasts might buy. You wouldn't believe what these grown men are doing to their kid's ride-on toys. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 2:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? John, <> Ditto that. I've been hunting for the "next best thing" for a while now. Been at Access since version 1 and business apps for 22 years. It's getting old. At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Was thinking about teaching, but I'd have to go back for my masters. But right now, I've got four kids that are either going through college or will be in the next few years. The bill is already starting to add up enough. Jim. From markamatte at hotmail.com Mon Sep 25 13:53:29 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 25 Sep 2006 18:53:29 +0000 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <002801c6e0d1$e8feb0b0$657aa8c0@m6805> Message-ID: >You wouldn't believe what >these grown men are doing to their kid's ride-on toys. ;-) lol...I might believe it. Mark >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] OT: Is anyone into controllers? >Date: Mon, 25 Sep 2006 14:39:17 -0400 > > >At 46, I am the point where if I don't do something soon, I'm going to >have >a hard time making a switch. > >Hey! I resemble that remark. > >At 52 ... > >Any my kids won't even START college for another 13 years. ;-) > >I'm not sure that controllers are "the next best thing" though they do >offer >the ability to create a product that the masses might buy. I am looking at >a controller that the enthusiasts might buy. You wouldn't believe what >these grown men are doing to their kid's ride-on toys. ;-) > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, September 25, 2006 2:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Is anyone into controllers? > >John, > ><money at it, but I want to be able to do something else in my spare time.>> > > Ditto that. I've been hunting for the "next best thing" for a while >now. >Been at Access since version 1 and business apps for 22 years. It's >getting >old. At 46, I am the point where if I don't do something soon, I'm >going >to have a hard time making a switch. > > Was thinking about teaching, but I'd have to go back for my masters. >But >right now, I've got four kids that are either going through college or will >be in the next few years. The bill is already starting to add up >enough. > >Jim. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Sep 25 14:08:31 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 25 Sep 2006 12:08:31 -0700 Subject: [AccessD] Loadfromtext In-Reply-To: References: <17724746D360394AA3BFE5B8D40A9C1B0113DBD1@MARLOW_MAIN2.marlow.com> <4517F445.3060705@torchlake.com> Message-ID: <4518292F.4080308@shaw.ca> Here is some shoddy code I wrote to do this in an MDA Essentially you just insert the high level directory name of all the files in the first call, it then reads through the underlying directories placing all the filenames in a a collection, it then parses through the collection and does a loadfromtext verifying against an array. Dim colMyList As New Collection Sub testfind(strdirpath As String) Dim strDir As String Dim strDirTemp As String Dim strFile As String Dim strFinda As String Dim strFileName As String Dim i As Long Dim ii As Long Dim J As Long Debug.Print colMyList.Count 'clear collection For i = 1 To colMyList.Count - 1 colMyList.Remove (i) Next 'strDirPath = "C:\Documents and Settings\marty\Local Settings\Temp\MDB_Objects\Saveastext2003\" 'strDirPath = "C:\Documents and Settings\marty\Local Settings\Temp\Copy of Northwind\" FindSub strdirpath, "*txt" Dim strtemp As String Debug.Print "count = " & colMyList.Count For i = colMyList.Count - 1 To 1 Step -1 strtemp = fURLWithoutExtension(colMyList(i)) strFinda = fstrReverse(strtemp) 'split out sub directory name like "forms" 'Find the first occurance of the '\' in the FileName string J = InStr(1, strFinda, "\", vbTextCompare) strDirTemp = (Right$(strFinda, Len(strFinda) - J)) strFile = fstrReverse(Left$(strFinda, J - 1)) 'Find the second occurance of the '\' in the FileName string J = InStr(1, strDirTemp, "\", vbTextCompare) strDir = fstrReverse(Left$(strDirTemp, J - 1)) Dim arrVariant As Variant arrVariant = createobjArray For ii = 1 To 6 If arrVariant(ii) = strDir Then Debug.Print arrVariant(ii), strFile, strDir Debug.Print strdirpath Dim strcopy As String strcopy = strdirpath & strDir & "\" & strFile & ".txt" Debug.Print strcopy LoadFromText ii, strFile, strdirpath & strDir & "\" & strFile & ".txt" End If Next ii Next i End Sub Sub FindSub(strStart As String, strFindWhat As String) Dim arrFindDir() As String Dim strFind As String Dim i As Long Debug.Print strStart ChDrive (Left(strStart, 3)) ChDir (strStart) Call DirSub(strFindWhat, strStart) strFind = Dir("*.*", vbDirectory) i = 0 Do Until strFind = "" ReDim Preserve arrFindDir(i) arrFindDir(i) = strFind i = i + 1 strFind = Dir() Loop For i = 0 To UBound(arrFindDir) If Dir(arrFindDir(i), vbNormal) = "" And Left(arrFindDir(i), 1) <> "." Then ' Recursive call Call FindSub(strStart & arrFindDir(i) & "\", strFindWhat) ChDir (strStart) End If Next End Sub Sub DirSub(strFindWhat, strStart) Dim strFindfile As String strFindfile = Dir(strFindWhat, vbNormal) Do While strFindfile <> "" '.lstFiles.AddItem strStart & strFindfile colMyList.Add strStart & strFindfile strFindfile = Dir() Loop End Sub Function createobjArray() As Variant Dim objarr() As String Dim i As Long ReDim objarr(1 To 6) objarr(acForm) = "Forms" objarr(acMacro) = "Macros" objarr(acReport) = "Reports" objarr(acQuery) = "Queries" objarr(acModule) = "Modules" objarr(6) = "DataAccessPages" For i = 1 To UBound(objarr) Debug.Print objarr(i) Next createobjArray = objarr() End Function Function fffURLExtension(strFile As String) As String Dim J As Long Dim strURL 'could use InStrRev but not available in 97 strURL = fstrReverse(strFile) 'Find the url name without extension 'Find the first occurance of the '.' in the FileName string J = InStr(1, strURL, ".", vbTextCompare) If J = 0 Then 'URL name does not contain a '.' character fffURLExtension = strURL Else 'URL name does contain the '.' character fffURLExtension = Left$(strURL, J - 1) End If 'switch reverse back fffURLExtension = fstrReverse(fffURLExtension) End Function Function fffURLWithoutExtension(strFile As String) As String Dim J As Long Dim strURL 'could use InStrRev but not available in 97 strURL = fstrReverse(strFile) 'Find the url name without extension 'Find the first occurance of the '.' in the FileName string J = InStr(1, strURL, ".", vbTextCompare) If J = 0 Then 'URL name does not contain a '.' character fffURLWithoutExtension = strURL Else 'URL name does contain the '.' character fffURLWithoutExtension = Right$(strURL, Len(strURL) - J) End If 'switch reverse back fffURLWithoutExtension = fstrReverse(fffURLWithoutExtension) End Function Function fffstrReverse(strInput As String) As String ' REVERSES A STRING, SPACES & ALL Dim i As Integer For i = Len(strInput) To 1 Step -1 fffstrReverse = fffstrReverse & Mid(strInput, i, 1) Next i End Function Sub listcol() Dim i As Long For i = 1 To colMyList.Count - 1 Debug.Print colMyList.Item(i) Next End Sub Martin Reid wrote: >I want to loop over a folder contain X number of text files. Any ideas. For example > >Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" > >Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. > >I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22/09/2006 > > -- Marty Connelly Victoria, B.C. Canada From DWUTKA at marlow.com Mon Sep 25 14:36:57 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 25 Sep 2006 14:36:57 -0500 Subject: [AccessD] Error Code Generator Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DCD7@MARLOW_MAIN2.marlow.com> I don't get it either. To do centralized tasks, it only makes sense to have centralized code! Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 3:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Sep 25 14:38:35 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 25 Sep 2006 14:38:35 -0500 Subject: [AccessD] Error Code Generator Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DCD8@MARLOW_MAIN2.marlow.com> Okay, I think we are talking two different things. I agree that any function may require it's own unique handler, to handle usual cases. But for the generic tasks, such as displaying or recording an error, it only makes sense to have a global/centralized process. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, September 22, 2006 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Art, A "non-local" way simply cannot handle all the parts required. A local error handler knows that procedureA is about opening a recordset while procedureB is about opening a form, while ProcedureC is about calculating the cubic volume of a lake. Very different problems, very different errors that will occur. At the least the local error handler will have a case statement that has error values added to the case as the errors are discovered, but may indeed call a global error logger / emailer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, September 22, 2006 4:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator That was precisely my point. It seems the logical way to do it, but all the generators and the built-in stuff likes the local version. I don't get why that would be better. Given modern chip speed, it's obviously not about jumps. Maybe all the code does compress nicely but the local way seems so clumsy to me. ----- Original Message ---- From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Sent: Friday, September 22, 2006 1:51:07 PM Subject: Re: [AccessD] Error Code Generator I do it the way you just mentioned. I have a global errorhandler, that receives the information I want to 'monitor' from each procedure. It saves time and space, and with a central point for errorhandling, I can force things pretty easily. (Record the errors in a db, shut the system down, etc.) Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, September 22, 2006 12:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error Code Generator I didn't write it, but it raises a question that I have wondered about for a while. Why is it better to embed the error routine in the particular proc or func than to write one global error handler and pass it the text and perhaps the proc/func name, so there's only one error handler in the whole app? I never did understand this. Can anyone provide some insight? Arthur ----- Original Message ---- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, September 22, 2006 1:19:04 PM Subject: [AccessD] Error Code Generator I believe someone on the list created an error generator. I believe it might be JC? Anyway I have been using it a lot for code examples and just to be politically correct want the owner to know. Example below Function CopytoWss() On Error GoTo Err_CopytoWss DoCmd.SelectObject acTable, "Contacts" DoCmd.RunCommand acCmdExportSharePointList Exit_CopytoWss: Exit Function Err_CopytoWss: MsgBox Err.Description, , "Error in Function CopytoWss" Resume Exit_CopytoWss Resume 0 '.FOR TROUBLESHOOTING End Function Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Sep 25 14:49:43 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 25 Sep 2006 14:49:43 -0500 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DCDF@MARLOW_MAIN2.marlow.com> Open Excel, click Data. Select Import External Data. Select New Database Query. Select MS Access, then the table or query you want. Go through the wizard. When you are done, the data is in excel. Right click on the data, and select 'Data Range Properties'. This gives you all sorts of options, including how the data is 'refreshed'. Now, as far as how to work the parameters, well, that's up to you. You could put the parameters into a table, and have a form in Excel that allows them to change the parameters (and then refresh the data). It depends on what the parameters are, or how they are going to change. (ie, lets say you some people want data for this month, some for next month. Instead of having them enter a month, just create two queries, one for this month, one for next month. Put the linked data either into different sheets, or different workbooks. It's going to depend on what parameters are really necessary. You could also have them run a make table query, and just link the table. Drew -----Original Message----- From: Tina Norris Fields [mailto:tinanfields at torchlake.com] Sent: Monday, September 25, 2006 10:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel Graphs from Access Data - Ideas, Please Hi Drew, Yes, maybe - if I do it that way, let me think how I'd go about it. I would create my Access queries with their date-range, wells, or wellfield parameters to get my data - create my Excel spreadsheets and graphs for the several different data combinations. Then import into Excel from the updated Access queries as desired. Yes? The queries are all parameter queries, getting their parameters from combo boxes and calendar controls on a form - so, I'm thinking to use make-table queries to provide standard consistent data sources for the Excel spreadsheets. Most of the users in this client office do know something about Excel, but virtually nothing about Access. For that reason I am looking for ways to provide them with buttons and drop-down selection lists to generate the data set they want to see graphed, then a quick easy leap of some kind to the Excel spreadsheets and graphs of the selected data. On the Excel side I would like to provide a button to run the macro that generates the graph, or have the data come directly into named ranges that are already set up as the source for my graph. I don't yet see how to import fresh data from the Access query-made-table into Excel without overwriting any named ranges I had established - and, thereby, losing the sources for my graph series. I like the simplicity of your suggestion. Would you share more of your thoughts, please? Thank you, Tina DWUTKA at marlow.com wrote: > Why automate at all? Excel allows you to place external data on a > spreadsheet, and you can have the sheet prompt to 'refresh' the data > whenever excel is opened. It's pretty straight forward, and wouldn't > require using any code. (Hey, wait, am I advocating a non-code approach? > William may take away my 'Code Boy' title!) > > Drew > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Sep 25 14:54:41 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 25 Sep 2006 14:54:41 -0500 Subject: [AccessD] Loadfromtext Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113DCE1@MARLOW_MAIN2.marlow.com> Dim strTemp as string strTemp=Dir("C:\forms\*.txt") Do until strTemp="" Select Case Ucase(Left(strTemp,4)) Case "FORM" Application.LoadFromText acForm,"test","C:\forms\" & strtemp Case "REPO" Application.LoadFromText acReport,"test","C:\forms\" & strtemp ...... .... End Select Strtemp=Dir Loop Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Monday, September 25, 2006 10:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Loadfromtext I want to loop over a folder contain X number of text files. Any ideas. For example Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Jim.Hale at FleetPride.com Mon Sep 25 15:01:42 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 25 Sep 2006 15:01:42 -0500 Subject: [AccessD] Loadfromtext Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFBA@corp-es01.fleetpride.com> Here is how I do it HTH Jim Hale Public Function UploadPlan(Filespec As String) As Boolean 'Retrieves Plans from Excel workbooks Dim filecount As Integer, i As Integer Dim fm As Form DoCmd.SetWarnings False Set fm = Forms!frmselect ' Get file spec newpath = Pathnamefile(Filespec) newpath = newpath & "\Completed\" 'add location of completed directory ' Extract the path and change directory If newpath <> "" Then On Error Resume Next ChDir newpath If Err.Number = 76 Then MsgBox "Directory " & newpath & " is not valid", 16, "Error" Exit Function End If Else: Exit Function End If On Error GoTo Err_UploadPlan DoCmd.Hourglass True ' See if any files exist foundfile = Dir(newpath) If foundfile = "" Then MsgBox "Cannot find file:" & Chr(13) & Filespec DoCmd.Hourglass False Exit Function End If ' Get first file name filecount = 1 ReDim Preserve Files(filecount) Files(filecount) = foundfile ' Get other file names, if any Do While foundfile <> "" foundfile = Dir() If foundfile <> "" Then filecount = filecount + 1 ReDim Preserve Files(filecount) Files(filecount) = foundfile End If Loop 'If 1 = 2 Then If Excel_is_running = True Then Set appexcel = GetObject(, "Excel.Application") Else Set appexcel = New Excel.Application End If ' Loop through all files and process them For i = 1 To filecount fm.lblPathname.Visible = True fm.lblPathname.Caption = "Processing: " & Files(i) fm.Repaint 'Call procedure that opens workbooks and extracts Budget Call ProcessFiles(newpath, Files(i)) Next i UploadPlan = True fm.lblPathname.Visible = False The_End: DoCmd.SetWarnings True appexcel.Quit If Not (appexcel Is Nothing) Then Set appexcel = Nothing If Not (rstbase Is Nothing) Then rstbase.Close: Set rstbase = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing If Not (fm Is Nothing) Then Set fm = Nothing DoCmd.Hourglass False Exit Function Err_UploadPlan: MsgBox Err.Description UploadPlan = False Resume The_End End Function -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Monday, September 25, 2006 10:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Loadfromtext I want to loop over a folder contain X number of text files. Any ideas. For example Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Jim.Hale at FleetPride.com Mon Sep 25 15:12:09 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 25 Sep 2006 15:12:09 -0500 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFBB@corp-es01.fleetpride.com> Tina, What I generally do is 1) Save the user's selections (date parameters, etc.) selected from list boxes, spinners, or whatever in the worksheet. 2) Run update queries that update Access tables based on these selections. 3) Run select queries with joins (or where clauses using subqueries) based on the tables in 1) 4) Copy the resulting recordset into a hidden sheet that can be referenced by the graph. 5) If desired, ranges can be made expandable to accomodate changes in the number of records. I particularly recommend you look into pivot charts which give the user flexibility to change the displaye data after it has been downloaded. I use DAO when the data comes from Access but it can be downloaded directly from other sources, such as an AS400, using ADO. I tried to post sample code but the list rejected it as too long ;-( Jim Hale -----Original Message----- From: Tina Norris Fields [mailto:tinanfields at torchlake.com] Sent: Friday, September 22, 2006 10:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please Hi All, Client is an oil and gas producer. Daily data of several kinds are reported from the field on a daily basis. Client would like to be able to see graphs showing, for instance, daily production for well A for a selectable time range (the last month, this last week, this last quarter, whatever) - he would also like to be able to see daily production for two or three wells at a time on the same graph, or for all the wells in a given oilfield (individually or as a total). Once a query is devised for selecting the date range, the specific wells, or the complete oilfield (separately or in combination), I want to export the selected data to Excel and draw the appropriate graphs. And, I want to do all that fairly automatically. The client would like users to be able to tweak data in Excel for the graph, if need be - as in to exclude outlying data points - but, of course, not alter the actual data captured in the Access data table. So, I am thinking of using a make-table query and sending the data from the "made" table to Excel. Is this a good idea? Some of you have done some automation with Access and Excel, so I would appreciate knowing what the pitfalls are that I need to be careful of. I am thinking to build essentially template Excel files with already configured graphs for the choices that are going to be offered to the user - which well or wells, or which well-field, and for what date range? Does this sound like a good idea? With great care, I believe I can code I really would like your creative and technical advice, here - so, all ideas are welcome. Thanks, Tina *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From cfoust at infostatsystems.com Mon Sep 25 16:09:42 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Sep 2006 14:09:42 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D0116AAAB@ddi-01.DDI.local> Message-ID: Version 3.0 of the Framework is in beta, indeed and will be released ... That was as far as they committed. LOL. I recently saw it demonstrated and fell madly in love with some of the nifty new capabilities. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, September 22, 2006 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 25 17:08:32 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 25 Sep 2006 17:08:32 -0500 Subject: [AccessD] Error Code Generator In-Reply-To: <24212930.1159204354644.JavaMail.root@sniper10> Message-ID: <001b01c6e0ef$24d4f6e0$0200a8c0@danwaters> Hi John! Well - I did say that I can set up a Select Case within the procedure to handle the errors that are unique to that procedure or function. What you showed below is exactly what I do. As for the number of cycles, I probably average about 1 error per week for a mature system. So - it's not a big deal. The primary purpose of the global error handler is to handle unexpected errors in a way that provides me the information to begin to know what to do next. I don't think it's unwieldy, just practical. By the way, I looked at my example again, and it looks like I have a procedure to do nothing but trap errors, with one of these for every other procedure or function! No! The error handling within each procedure or function starts at the Continue statement EH: Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Well, that certainly works for logging all errors. What happens when you simply want to ignore a certain type of error: On err = 15 resume next Or On Err = 15 resume ExitLabel Or you want to do other processing: On err = 15 CallMyFunction When a global error handler exists, then all of the LOGIC associated with handling that error is now out in the error handler function, away from the code where the error is happening. For documentation it helps to have the error cases commented Select case err case 15,16,18 'These cases occure when... Do something for these errors Resume ExitLabel case 97 'This case occurs when... Do something else here Resume next Case else Error Logger 'Call the global error logger to log any cases not specifically trapped above end select There are errors that occur that are simply expected and ignored. Why call the error handler for these cases. A simple resume next is all that is needed. Others require local action (open a recordset, change a null to a 0 etc.) then a resume next. This kind of stuff belongs in the function where the error occurred. What happens when you delete an entire function? All of the error handling is out in your error handler and is accumulating trash. If the error case is in the function then the error handler is deleted along with the function. I have no quibble with having an error LOGGER to call to log any errors that are unexpected and not handled in the local function (until they can be handled there) or even to log expected errors, but to handle every error in your program in one humongus error handler is unwieldy IMHO. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error Code Generator Here is what I have developed to trap and record errors: At the bottom of each procedure or function are these lines of code: Private Sub SubroutineName() On Error GoTo EH 'Code in Sub or Function Exit Sub EH: Application.Echo True Call GlobalErrors(txtProcessID, Err.Number, Err.Description, _ "Module Name", "Subroutine Name ", "ExtraInfo1", "ExtraInfo2") End Sub txtProcessID: This is usually the Primary Key for the record. Could be an empty string. Err.Number Err.Description Module Name: This is the name of the standard module the code is in. For a report or form I use Me.Name. Subroutine Name: This is the name of the subroutine. I have to type this in each time because there is apparently no system function to provide the name while the code is running. ExtraInfo1 & ExtraInfo2: This is an optional field that holds a variable or expression that will capture information that is unique to this procedure or function. This is particularly helpful when troubleshooting. The code above can use Select Case to handle different errors differently. The procedure GlobalErrors will record this information, along with Date, Time, PC Name, and UserName. GlobalErrors can give a message to users about a certain error (i.e., printer-related errors), and can prevent recording a certain error if I know it's irrelevant. Hope this was helpful . . . Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 25 17:25:49 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 25 Sep 2006 17:25:49 -0500 Subject: [AccessD] Switching to VB.net In-Reply-To: <32907935.1159219071870.JavaMail.root@sniper25> Message-ID: <002101c6e0f1$8e654720$0200a8c0@danwaters> What are the 'nifty new capabilities'? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 25, 2006 4:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net Version 3.0 of the Framework is in beta, indeed and will be released ... That was as far as they committed. LOL. I recently saw it demonstrated and fell madly in love with some of the nifty new capabilities. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, September 22, 2006 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 25 19:26:51 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Sep 2006 17:26:51 -0700 Subject: [AccessD] Switching to VB.net In-Reply-To: <002101c6e0f1$8e654720$0200a8c0@danwaters> Message-ID: You expect me to REMEMBER?? Atlas/AJAX are impressive. There are new interactive designers coming. I haven't had time to even review the DVD they gave us because we're trying to get a beta out by Thursday, so don't expect coherence from me this week! There are 4 developers madly scrambling to make things work the way they're specified TODAY (never mind how they were specified originally or even yesterday) and a fun time is being had by all. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net What are the 'nifty new capabilities'? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 25, 2006 4:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net Version 3.0 of the Framework is in beta, indeed and will be released ... That was as far as they committed. LOL. I recently saw it demonstrated and fell madly in love with some of the nifty new capabilities. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, September 22, 2006 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Sep 25 23:13:26 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 26 Sep 2006 00:13:26 -0400 Subject: [AccessD] Sybase SQL export to Access References: Message-ID: <001a01c6e122$2ae27660$153ce944@50NM721> ...I have a client database that uses a Sybase SQL db ...its a single table ...I need to export it to a text file or mdb for use in an Access mdb ...I of course don't have Sybase or access there to else I'd just use the bcp utility myself. ...I played with using the bcp.exe command line utility from SQL Server hoping that the sql might be the same as the Sybase SQL bcp.exe utility ...but of course it doesn't work. ...anyone here have the tools to do this? ...or ideas on how I can do it myself would be preferable since I'll need to import the data quarterly? ...if anyone wants to look at the file, e me off line and I'll send you the ftp dl instructions ...my host doesn't allow anonymous ftp access. William Hindman From Gustav at cactus.dk Tue Sep 26 04:12:38 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 26 Sep 2006 11:12:38 +0200 Subject: [AccessD] Loadfromtext Message-ID: Hi Martin You could do this a bit differently by just reading the first four lines of every file found in that directory ignoring the filenames. Except for modules it is quite easy from these four lines to determine which kind of object the file contains. Module files are just write-outs of the modules, but if you are a neat programmer, the first line read would be Option Explicit. Of course, if your directory contains nothing but files with saved objects, any file not parsable for an object other than a module will be a module. /gustav Martin Reid wrote: >I want to loop over a folder contain X number of text files. Any ideas. For example > >Application.LoadFromText acForm, "test", "C:\forms\Form_Customer List.txt" > >Instead of a single file I need them all BUT some are prefixed FORM, REPORT,MODULE, QUERY and I need to change the constant accordingly. > >I know I can run one process for each type but would it be possible to do them all in the proper squence in one hit. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast From mikedorism at verizon.net Tue Sep 26 06:51:27 2006 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 26 Sep 2006 07:51:27 -0400 Subject: [AccessD] Sybase SQL export to Access In-Reply-To: <001a01c6e122$2ae27660$153ce944@50NM721> Message-ID: <000001c6e162$1a942980$2f01a8c0@dorismanning> I am interested in this as well, William, as I have a similar project coming up. If you figure it out on your own, please share. I will do the same. Doris Manning mikedorism at verizon.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, September 26, 2006 12:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Sybase SQL export to Access ...I have a client database that uses a Sybase SQL db ...its a single table ...I need to export it to a text file or mdb for use in an Access mdb ...I of course don't have Sybase or access there to else I'd just use the bcp utility myself. ...I played with using the bcp.exe command line utility from SQL Server hoping that the sql might be the same as the Sybase SQL bcp.exe utility ...but of course it doesn't work. ...anyone here have the tools to do this? ...or ideas on how I can do it myself would be preferable since I'll need to import the data quarterly? ...if anyone wants to look at the file, e me off line and I'll send you the ftp dl instructions ...my host doesn't allow anonymous ftp access. William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Tue Sep 26 13:59:48 2006 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 26 Sep 2006 13:59:48 (MET DST) Subject: [AccessD] capitals in query Message-ID: <200609261159.k8QBxmR9022487@mailhostC.plex.net> Hello Group, how can i search only for capitals in a query? i need ER not er. Thanks Pedro From Gustav at cactus.dk Tue Sep 26 07:42:49 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 26 Sep 2006 14:42:49 +0200 Subject: [AccessD] capitals in query Message-ID: Hi Pedro You can use Where StrComp([YourField], "ER", 0) = 0 /gustav >>> pedro at plex.nl 26-09-2006 13:59:48 >>> Hello Group, how can i search only for capitals in a query? i need ER not er. Thanks Pedro From stuart at lexacorp.com.pg Tue Sep 26 07:48:12 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 26 Sep 2006 22:48:12 +1000 Subject: [AccessD] capitals in query In-Reply-To: <200609261159.k8QBxmR9022487@mailhostC.plex.net> References: <200609261159.k8QBxmR9022487@mailhostC.plex.net> Message-ID: <4519AE2C.6391.2C96EFA@stuart.lexacorp.com.pg> On 26 Sep 2006 at 13:59, pedro at plex.nl wrote: > how can i search only for capitals in a query? > i need ER not er. You need to use strComp to do a binary comparison As a one off: SELECT myText FROM myTable WHERE StrComp("ER",Mid$([myText],InStr([myText],"ER"),2),0)=False; Here's a general function I've just knocked up (must stick this one in my toolbox ): Function ExactMatch(SearchStr As String, Matchstr As String) As Boolean ExactMatch = StrComp(Matchstr, Mid$(SearchStr, _ InStr(SearchStr, Matchstr), Len(Matchstr)), 0) = 0 End Function Now you can make your query: SELECT myText FROM myTable WHERE ExactMatch([mytext],"ER")=True -- Stuart From pedro at plex.nl Tue Sep 26 15:30:18 2006 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 26 Sep 2006 15:30:18 (MET DST) Subject: [AccessD] capitals in query Message-ID: <200609261330.k8QDUICp026879@mailhostC.plex.net> Hello Gustav and Stuart, thanks for your help. It is working, but i forgot to tell that most record where i need to filter on ER, have other tekst in the record. So i would need *ER*, but this isn't functioning in your query. Any idea's Pedro In antwoord op: > From: "Gustav Brock" > To: > Date: Tue, 26 Sep 2006 14:42:49 +0200 > Subject: Re: [AccessD] capitals in query > > > Hi Pedro > > You can use > > Where > StrComp([YourField], "ER", 0) = 0 > > /gustav > > > >>> pedro at plex.nl 26-09-2006 13:59:48 >>> > Hello Group, > > how can i search only for capitals in a query? > i need ER not er. > > Thanks > Pedro > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From dwaters at usinternet.com Tue Sep 26 08:35:45 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 26 Sep 2006 08:35:45 -0500 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switching to VB.net) In-Reply-To: <6521738.1159230756693.JavaMail.root@sniper12> Message-ID: <001401c6e170$ac073ca0$0200a8c0@danwaters> I briefly looked at AJAX last week, and ended up finding a program called ThinWire. This program, written in JAVA and still in beta, has a claim that it can have a GUI just like a Client-Server app, but works in a web browser. Perhaps the next .net framework is headed in that direction. It would make sense . . . Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net You expect me to REMEMBER?? Atlas/AJAX are impressive. There are new interactive designers coming. I haven't had time to even review the DVD they gave us because we're trying to get a beta out by Thursday, so don't expect coherence from me this week! There are 4 developers madly scrambling to make things work the way they're specified TODAY (never mind how they were specified originally or even yesterday) and a fun time is being had by all. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net What are the 'nifty new capabilities'? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 25, 2006 4:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net Version 3.0 of the Framework is in beta, indeed and will be released ... That was as far as they committed. LOL. I recently saw it demonstrated and fell madly in love with some of the nifty new capabilities. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, September 22, 2006 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at verizon.net Tue Sep 26 08:46:17 2006 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 26 Sep 2006 09:46:17 -0400 Subject: [AccessD] capitals in query In-Reply-To: <200609261330.k8QDUICp026879@mailhostC.plex.net> Message-ID: <000301c6e172$2802eec0$2f01a8c0@dorismanning> If there is other text, try using INSTR(). Mike & Doris Manning mikedorism at verizon.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: Tuesday, September 26, 2006 11:30 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] capitals in query Hello Gustav and Stuart, thanks for your help. It is working, but i forgot to tell that most record where i need to filter on ER, have other tekst in the record. So i would need *ER*, but this isn't functioning in your query. Any idea's Pedro In antwoord op: > From: "Gustav Brock" > To: > Date: Tue, 26 Sep 2006 14:42:49 +0200 > Subject: Re: [AccessD] capitals in query > > > Hi Pedro > > You can use > > Where > StrComp([YourField], "ER", 0) = 0 > > /gustav > > > >>> pedro at plex.nl 26-09-2006 13:59:48 >>> > Hello Group, > > how can i search only for capitals in a query? > i need ER not er. > > Thanks > Pedro > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Sep 26 08:53:26 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 26 Sep 2006 15:53:26 +0200 Subject: [AccessD] capitals in query Message-ID: Hi Pedro Then you may use: Where InStr(1, [YourField], "ER", 0) > 0 /gustav >>> pedro at plex.nl 26-09-2006 15:30:18 >>> Hello Gustav and Stuart, thanks for your help. It is working, but i forgot to tell that most record where i need to filter on ER, have other tekst in the record. So i would need *ER*, but this isn't functioning in your query. Any idea's Pedro In antwoord op: > From: "Gustav Brock" > To: > Date: Tue, 26 Sep 2006 14:42:49 +0200 > Subject: Re: [AccessD] capitals in query > > > Hi Pedro > > You can use > > Where > StrComp([YourField], "ER", 0) = 0 > > /gustav > > > >>> pedro at plex.nl 26-09-2006 13:59:48 >>> > Hello Group, > > how can i search only for capitals in a query? > i need ER not er. > > Thanks > Pedro From tinanfields at torchlake.com Tue Sep 26 09:02:44 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Tue, 26 Sep 2006 10:02:44 -0400 Subject: [AccessD] Excel Graphs from Access Data - Ideas, Please In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFBB@corp-es01.fleetpride.com> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFBB@corp-es01.fleetpride.com> Message-ID: <45193304.4010805@torchlake.com> Jim, Thank you - I would like to see that code. Would you be willing to email it to me off-list? Thanks for everything, Tina Hale, Jim wrote: > Tina, > What I generally do is > 1) Save the user's selections (date parameters, etc.) selected from list > boxes, spinners, or whatever in the worksheet. > 2) Run update queries that update Access tables based on these selections. > 3) Run select queries with joins (or where clauses using subqueries) based > on the tables in 1) > 4) Copy the resulting recordset into a hidden sheet that can be referenced > by the graph. > 5) If desired, ranges can be made expandable to accomodate changes in the > number of records. > > I particularly recommend you look into pivot charts which give the user > flexibility to change the displaye data after it has been downloaded. I use > DAO when the data comes from Access but it can be downloaded directly from > other sources, such as an AS400, using ADO. I tried to post sample code but > the list rejected it as too long ;-( > > Jim Hale > > From jimdettman at verizon.net Tue Sep 26 09:09:53 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 26 Sep 2006 10:09:53 -0400 Subject: [AccessD] OT: Is anyone into controllers? In-Reply-To: <002801c6e0d1$e8feb0b0$657aa8c0@m6805> Message-ID: <0J6700JX5E0HVF35@vms044.mailsrvcs.net> John, <> Actually I probably would. One thing I would have loved to get involved in some way was the DARPA desert challenge. Teams had to build an autonomous vehicle that could travel the 142 mile desert course. Another item that appeals to me is the proof of concept ideas that NASA is looking at for a space elevator. They want to see various ideas for a climber. He's a blurb on it: http://news.com.com/NASA+hosting+space+elevator+competition/2100-11397_3-590 7569.html Of course I'm not sitting here with millions in my back pocket, but it's cool to think about anyway. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, September 25, 2006 2:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? >At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Hey! I resemble that remark. At 52 ... Any my kids won't even START college for another 13 years. ;-) I'm not sure that controllers are "the next best thing" though they do offer the ability to create a product that the masses might buy. I am looking at a controller that the enthusiasts might buy. You wouldn't believe what these grown men are doing to their kid's ride-on toys. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 25, 2006 2:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Is anyone into controllers? John, <> Ditto that. I've been hunting for the "next best thing" for a while now. Been at Access since version 1 and business apps for 22 years. It's getting old. At 46, I am the point where if I don't do something soon, I'm going to have a hard time making a switch. Was thinking about teaching, but I'd have to go back for my masters. But right now, I've got four kids that are either going through college or will be in the next few years. The bill is already starting to add up enough. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Sep 26 09:12:51 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 26 Sep 2006 10:12:51 -0400 Subject: [AccessD] Sybase SQL export to Access References: <000001c6e162$1a942980$2f01a8c0@dorismanning> Message-ID: <000f01c6e175$daca92d0$153ce944@50NM721> ...absolutely :) William Hindman ----- Original Message ----- From: "Mike & Doris Manning" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, September 26, 2006 7:51 AM Subject: Re: [AccessD] Sybase SQL export to Access >I am interested in this as well, William, as I have a similar project >coming > up. If you figure it out on your own, please share. I will do the same. > > Doris Manning > mikedorism at verizon.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Tuesday, September 26, 2006 12:13 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Sybase SQL export to Access > > ...I have a client database that uses a Sybase SQL db ...its a single > table > ...I need to export it to a text file or mdb for use in an Access mdb > > ...I of course don't have Sybase or access there to else I'd just use the > bcp utility myself. > > ...I played with using the bcp.exe command line utility from SQL Server > hoping that the sql might be the same as the Sybase SQL bcp.exe utility > ...but of course it doesn't work. > > ...anyone here have the tools to do this? ...or ideas on how I can do it > myself would be preferable since I'll need to import the data quarterly? > > ...if anyone wants to look at the file, e me off line and I'll send you > the > ftp dl instructions ...my host doesn't allow anonymous ftp access. > > William Hindman > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Tue Sep 26 09:22:50 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 26 Sep 2006 10:22:50 -0400 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) References: <001401c6e170$ac073ca0$0200a8c0@danwaters> Message-ID: <001301c6e177$3facb9c0$153ce944@50NM721> ...its simple math to me ...the net is 70-100 times slower than a LAN ...until we get a next generation net with 100mbps speeds, no browser app can have a gui "just like" a client server app ...the best we can hope for is a thin client that works reliably and transparently with disconnected record sets ...and thin clients are inherently single app ...which isn't good enough by far for too many of my needs. ...imnsho, this is the reason behind MS pursuing dotNet with such tenacity when they already had a pretty good thin client in Terminal Server. William Hindman ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, September 26, 2006 9:35 AM Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) >I briefly looked at AJAX last week, and ended up finding a program called > ThinWire. This program, written in JAVA and still in beta, has a claim > that > it can have a GUI just like a Client-Server app, but works in a web > browser. > > > Perhaps the next .net framework is headed in that direction. It would > make > sense . . . > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > You expect me to REMEMBER?? > > Atlas/AJAX are impressive. There are new interactive designers coming. > I haven't had time to even review the DVD they gave us because we're > trying to get a beta out by Thursday, so don't expect coherence from me > this week! There are 4 developers madly scrambling to make things work > the way they're specified TODAY (never mind how they were specified > originally or even yesterday) and a fun time is being had by all. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, September 25, 2006 3:26 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > What are the 'nifty new capabilities'? > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, September 25, 2006 4:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > Version 3.0 of the Framework is in beta, indeed and will be released ... > That was as far as they committed. LOL. I recently saw it demonstrated > and fell madly in love with some of the nifty new capabilities. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Friday, September 22, 2006 8:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > I was forced to go the C# route., however Vb.net or C#, the languages > are pretty irrelevent I think. > As others have said there are just soooo many damn options. > You can easily find yourself endlessly refactoring - but maybe its just > me...lol. > The framework is enormous, and getting bigger. > I believe v3 is in beta... > > What I found helpful was the Nettiers templates (free) > http://www.nettiers.com/ which you use with CodeSmith (30 day trial) > http://codesmithtools.com/ and the MS Application blocks (free) > http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 > e25-94e2-91be63527327 > > JC, you will love this stuff. > > I'm just hoping none of my code ends up here... > http://thedailywtf.com/Default.aspx > > cheers > > Michael M > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Tue Sep 26 09:22:53 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 26 Sep 2006 07:22:53 -0700 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) In-Reply-To: <001401c6e170$ac073ca0$0200a8c0@danwaters> Message-ID: AJAX does the same thing. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 26, 2006 6:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) I briefly looked at AJAX last week, and ended up finding a program called ThinWire. This program, written in JAVA and still in beta, has a claim that it can have a GUI just like a Client-Server app, but works in a web browser. Perhaps the next .net framework is headed in that direction. It would make sense . . . Dan Waters -----Original Message----- Subject: Re: [AccessD] Switching to VB.net You expect me to REMEMBER?? Atlas/AJAX are impressive. There are new interactive designers coming. I haven't had time to even review the DVD they gave us because we're trying to get a beta out by Thursday, so don't expect coherence from me this week! There are 4 developers madly scrambling to make things work the way they're specified TODAY (never mind how they were specified originally or even yesterday) and a fun time is being had by all. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 25, 2006 3:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Switching to VB.net What are the 'nifty new capabilities'? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 25, 2006 4:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net Version 3.0 of the Framework is in beta, indeed and will be released ... That was as far as they committed. LOL. I recently saw it demonstrated and fell madly in love with some of the nifty new capabilities. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Friday, September 22, 2006 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Switching to VB.net I was forced to go the C# route., however Vb.net or C#, the languages are pretty irrelevent I think. As others have said there are just soooo many damn options. You can easily find yourself endlessly refactoring - but maybe its just me...lol. The framework is enormous, and getting bigger. I believe v3 is in beta... What I found helpful was the Nettiers templates (free) http://www.nettiers.com/ which you use with CodeSmith (30 day trial) http://codesmithtools.com/ and the MS Application blocks (free) http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 e25-94e2-91be63527327 JC, you will love this stuff. I'm just hoping none of my code ends up here... http://thedailywtf.com/Default.aspx cheers Michael M -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Sep 26 09:54:57 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 26 Sep 2006 10:54:57 -0400 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was:Switchingto VB.net) References: Message-ID: <005601c6e17b$bc696a90$153ce944@50NM721> ...AJAX is a step forward ...really a combination of existing web technologies ...but its nowhere near putting a desktop gui experience inside a browser ...imnsho of course :) William Hindman ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, September 26, 2006 10:22 AM Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was:Switchingto VB.net) > AJAX does the same thing. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 26, 2006 6:36 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: > Switchingto VB.net) > > I briefly looked at AJAX last week, and ended up finding a program > called ThinWire. This program, written in JAVA and still in beta, has a > claim that it can have a GUI just like a Client-Server app, but works in > a web browser. > > > Perhaps the next .net framework is headed in that direction. It would > make sense . . . > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > You expect me to REMEMBER?? > > Atlas/AJAX are impressive. There are new interactive designers coming. > I haven't had time to even review the DVD they gave us because we're > trying to get a beta out by Thursday, so don't expect coherence from me > this week! There are 4 developers madly scrambling to make things work > the way they're specified TODAY (never mind how they were specified > originally or even yesterday) and a fun time is being had by all. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, September 25, 2006 3:26 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > What are the 'nifty new capabilities'? > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, September 25, 2006 4:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > Version 3.0 of the Framework is in beta, indeed and will be released ... > That was as far as they committed. LOL. I recently saw it demonstrated > and fell madly in love with some of the nifty new capabilities. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Friday, September 22, 2006 8:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > I was forced to go the C# route., however Vb.net or C#, the languages > are pretty irrelevent I think. > As others have said there are just soooo many damn options. > You can easily find yourself endlessly refactoring - but maybe its just > me...lol. > The framework is enormous, and getting bigger. > I believe v3 is in beta... > > What I found helpful was the Nettiers templates (free) > http://www.nettiers.com/ which you use with CodeSmith (30 day trial) > http://codesmithtools.com/ and the MS Application blocks (free) > http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 > e25-94e2-91be63527327 > > JC, you will love this stuff. > > I'm just hoping none of my code ends up here... > http://thedailywtf.com/Default.aspx > > cheers > > Michael M > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Sep 26 12:49:29 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 26 Sep 2006 10:49:29 -0700 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) In-Reply-To: References: Message-ID: <45196829.1020000@shaw.ca> There is ATLAS which is AJAX controls and javascript framework and ASP.Net ontop of Net 2.0 framework, works cross browser. http://atlas.asp.net/default.aspx?tabid=47 Charlotte Foust wrote: >AJAX does the same thing. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, September 26, 2006 6:36 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: >Switchingto VB.net) > >I briefly looked at AJAX last week, and ended up finding a program >called ThinWire. This program, written in JAVA and still in beta, has a >claim that it can have a GUI just like a Client-Server app, but works in >a web browser. > > >Perhaps the next .net framework is headed in that direction. It would >make sense . . . > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Switching to VB.net > >You expect me to REMEMBER?? > >Atlas/AJAX are impressive. There are new interactive designers coming. >I haven't had time to even review the DVD they gave us because we're >trying to get a beta out by Thursday, so don't expect coherence from me >this week! There are 4 developers madly scrambling to make things work >the way they're specified TODAY (never mind how they were specified >originally or even yesterday) and a fun time is being had by all. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Monday, September 25, 2006 3:26 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Switching to VB.net > >What are the 'nifty new capabilities'? > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Monday, September 25, 2006 4:10 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >Version 3.0 of the Framework is in beta, indeed and will be released ... >That was as far as they committed. LOL. I recently saw it demonstrated >and fell madly in love with some of the nifty new capabilities. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael >Maddison >Sent: Friday, September 22, 2006 8:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >I was forced to go the C# route., however Vb.net or C#, the languages >are pretty irrelevent I think. >As others have said there are just soooo many damn options. >You can easily find yourself endlessly refactoring - but maybe its just >me...lol. >The framework is enormous, and getting bigger. >I believe v3 is in beta... > >What I found helpful was the Nettiers templates (free) >http://www.nettiers.com/ which you use with CodeSmith (30 day trial) >http://codesmithtools.com/ and the MS Application blocks (free) >http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 >e25-94e2-91be63527327 > >JC, you will love this stuff. > >I'm just hoping none of my code ends up here... >http://thedailywtf.com/Default.aspx > >cheers > >Michael M >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Tue Sep 26 12:49:35 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 26 Sep 2006 10:49:35 -0700 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was:SwitchingtoVB.net) In-Reply-To: <005601c6e17b$bc696a90$153ce944@50NM721> Message-ID: I haven't worked with it, William, only seen it demonstrated ... And on a beta of Vista at that. The machine it was running on was a laptop that wasn't overpowered according to the rep. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, September 26, 2006 7:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was:SwitchingtoVB.net) ...AJAX is a step forward ...really a combination of existing web technologies ...but its nowhere near putting a desktop gui experience inside a browser ...imnsho of course :) William Hindman ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, September 26, 2006 10:22 AM Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was:Switchingto VB.net) > AJAX does the same thing. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 26, 2006 6:36 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: > Switchingto VB.net) > > I briefly looked at AJAX last week, and ended up finding a program > called ThinWire. This program, written in JAVA and still in beta, has > a claim that it can have a GUI just like a Client-Server app, but > works in a web browser. > > > Perhaps the next .net framework is headed in that direction. It would > make sense . . . > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > You expect me to REMEMBER?? > > Atlas/AJAX are impressive. There are new interactive designers coming. > I haven't had time to even review the DVD they gave us because we're > trying to get a beta out by Thursday, so don't expect coherence from > me this week! There are 4 developers madly scrambling to make things > work the way they're specified TODAY (never mind how they were > specified originally or even yesterday) and a fun time is being had by all. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, September 25, 2006 3:26 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > What are the 'nifty new capabilities'? > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, September 25, 2006 4:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > Version 3.0 of the Framework is in beta, indeed and will be released ... > That was as far as they committed. LOL. I recently saw it demonstrated > and fell madly in love with some of the nifty new capabilities. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Friday, September 22, 2006 8:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > I was forced to go the C# route., however Vb.net or C#, the languages > are pretty irrelevent I think. > As others have said there are just soooo many damn options. > You can easily find yourself endlessly refactoring - but maybe its > just me...lol. > The framework is enormous, and getting bigger. > I believe v3 is in beta... > > What I found helpful was the Nettiers templates (free) > http://www.nettiers.com/ which you use with CodeSmith (30 day trial) > http://codesmithtools.com/ and the MS Application blocks (free) > http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072 > -4 > e25-94e2-91be63527327 > > JC, you will love this stuff. > > I'm just hoping none of my code ends up here... > http://thedailywtf.com/Default.aspx > > cheers > > Michael M > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Sep 26 13:15:01 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 26 Sep 2006 11:15:01 -0700 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) In-Reply-To: <45196829.1020000@shaw.ca> Message-ID: You're right, I keep getting them confused. The cross browser stuff was awesome. It works even better in the Net 3.0 framework from what I saw. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, September 26, 2006 10:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) There is ATLAS which is AJAX controls and javascript framework and ASP.Net ontop of Net 2.0 framework, works cross browser. http://atlas.asp.net/default.aspx?tabid=47 Charlotte Foust wrote: >AJAX does the same thing. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, September 26, 2006 6:36 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: >Switchingto VB.net) > >I briefly looked at AJAX last week, and ended up finding a program >called ThinWire. This program, written in JAVA and still in beta, has >a claim that it can have a GUI just like a Client-Server app, but works >in a web browser. > > >Perhaps the next .net framework is headed in that direction. It would >make sense . . . > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Switching to VB.net > >You expect me to REMEMBER?? > >Atlas/AJAX are impressive. There are new interactive designers coming. >I haven't had time to even review the DVD they gave us because we're >trying to get a beta out by Thursday, so don't expect coherence from me >this week! There are 4 developers madly scrambling to make things work >the way they're specified TODAY (never mind how they were specified >originally or even yesterday) and a fun time is being had by all. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Monday, September 25, 2006 3:26 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Switching to VB.net > >What are the 'nifty new capabilities'? > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Monday, September 25, 2006 4:10 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >Version 3.0 of the Framework is in beta, indeed and will be released ... >That was as far as they committed. LOL. I recently saw it demonstrated >and fell madly in love with some of the nifty new capabilities. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael >Maddison >Sent: Friday, September 22, 2006 8:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >I was forced to go the C# route., however Vb.net or C#, the languages >are pretty irrelevent I think. >As others have said there are just soooo many damn options. >You can easily find yourself endlessly refactoring - but maybe its just >me...lol. >The framework is enormous, and getting bigger. >I believe v3 is in beta... > >What I found helpful was the Nettiers templates (free) >http://www.nettiers.com/ which you use with CodeSmith (30 day trial) >http://codesmithtools.com/ and the MS Application blocks (free) >http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072- >4 >e25-94e2-91be63527327 > >JC, you will love this stuff. > >I'm just hoping none of my code ends up here... >http://thedailywtf.com/Default.aspx > >cheers > >Michael M >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Sep 26 14:04:19 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 26 Sep 2006 12:04:19 -0700 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) In-Reply-To: References: Message-ID: <451979B3.1070007@shaw.ca> There is also DotNetNuke Open Source, I guess they just formed a new support company http://www.dotnetnuke.com/ Here is a cheap web host that supports it along with MySQL and MS SQL Express for $5.00 a month http://www.webhostforasp.net/ Charlotte Foust wrote: >You're right, I keep getting them confused. The cross browser stuff was >awesome. It works even better in the Net 3.0 framework from what I saw. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Tuesday, September 26, 2006 10:49 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: >Switchingto VB.net) > >There is ATLAS which is AJAX controls and javascript framework and >ASP.Net ontop of Net 2.0 framework, works cross browser. > >http://atlas.asp.net/default.aspx?tabid=47 > >Charlotte Foust wrote: > > > >>AJAX does the same thing. >> >>Charlotte >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >>Sent: Tuesday, September 26, 2006 6:36 AM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: >>Switchingto VB.net) >> >>I briefly looked at AJAX last week, and ended up finding a program >>called ThinWire. This program, written in JAVA and still in beta, has >>a claim that it can have a GUI just like a Client-Server app, but works >> >> > > > >>in a web browser. >> >> >>Perhaps the next .net framework is headed in that direction. It would >>make sense . . . >> >>Dan Waters >> >>-----Original Message----- >>Subject: Re: [AccessD] Switching to VB.net >> >>You expect me to REMEMBER?? >> >>Atlas/AJAX are impressive. There are new interactive designers coming. >>I haven't had time to even review the DVD they gave us because we're >>trying to get a beta out by Thursday, so don't expect coherence from me >> >> > > > >>this week! There are 4 developers madly scrambling to make things work >>the way they're specified TODAY (never mind how they were specified >>originally or even yesterday) and a fun time is being had by all. >> >>Charlotte >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >>Sent: Monday, September 25, 2006 3:26 PM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] Switching to VB.net >> >>What are the 'nifty new capabilities'? >> >>Dan Waters >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >>Foust >>Sent: Monday, September 25, 2006 4:10 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Switching to VB.net >> >>Version 3.0 of the Framework is in beta, indeed and will be released >> >> >... > > >>That was as far as they committed. LOL. I recently saw it demonstrated >>and fell madly in love with some of the nifty new capabilities. >> >>Charlotte Foust >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael >>Maddison >>Sent: Friday, September 22, 2006 8:13 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Switching to VB.net >> >>I was forced to go the C# route., however Vb.net or C#, the languages >>are pretty irrelevent I think. >>As others have said there are just soooo many damn options. >>You can easily find yourself endlessly refactoring - but maybe its just >> >> > > > >>me...lol. >>The framework is enormous, and getting bigger. >>I believe v3 is in beta... >> >>What I found helpful was the Nettiers templates (free) >>http://www.nettiers.com/ which you use with CodeSmith (30 day trial) >>http://codesmithtools.com/ and the MS Application blocks (free) >>http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072- >>4 >>e25-94e2-91be63527327 >> >>JC, you will love this stuff. >> >>I'm just hoping none of my code ends up here... >>http://thedailywtf.com/Default.aspx >> >>cheers >> >>Michael M >>- >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Tue Sep 26 15:55:01 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 27 Sep 2006 06:55:01 +1000 Subject: [AccessD] capitals in query In-Reply-To: <200609261330.k8QDUICp026879@mailhostC.plex.net> References: <200609261330.k8QDUICp026879@mailhostC.plex.net> Message-ID: <451A2045.11016.4872054@stuart.lexacorp.com.pg> On 26 Sep 2006 at 15:30, pedro at plex.nl wrote: > Hello Gustav and Stuart, > > thanks for your help. > It is working, but i forgot to tell that most record where i need to filter > on ER, have other tekst in the record. So i would need *ER*, but this isn't > functioning in your query. > The solution I gave is for exactly that situation. There are implicit leading and trailing wildcards. ExactMatch("here,"ER") returns false ExactMatch("hERe", "ER") returns true. -- Stuart From stuart at lexacorp.com.pg Tue Sep 26 16:05:22 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 27 Sep 2006 07:05:22 +1000 Subject: [AccessD] OT: Rich Internet Applications (RIA) (was: Switchingto VB.net) In-Reply-To: References: <001401c6e170$ac073ca0$0200a8c0@danwaters>, Message-ID: <451A22B2.22743.4909B44@stuart.lexacorp.com.pg> AJAX in a development environment, not an program. Like LAMP (Linus,Apache,mySQL,PHP/Perl), it's an environment which combines several technologies. Ajax is allegedly an acronym for "Asynchronous JavaScript and XML", but it actually incorporates: * standards-based presentation using XHTML and CSS; * dynamic display and interaction using the Document Object Model; * data interchange and manipulation using XML and XSLT; * asynchronous data retrieval using XMLHttpRequest; * and JavaScript binding everything together. On 26 Sep 2006 at 7:22, Charlotte Foust wrote: > AJAX does the same thing. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, September 26, 2006 6:36 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: > Switchingto VB.net) > > I briefly looked at AJAX last week, and ended up finding a program > called ThinWire. This program, written in JAVA and still in beta, has a > claim that it can have a GUI just like a Client-Server app, but works in a > web browser. > > > Perhaps the next .net framework is headed in that direction. It would > make sense . . . > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Switching to VB.net > > You expect me to REMEMBER?? > > Atlas/AJAX are impressive. There are new interactive designers coming. I > haven't had time to even review the DVD they gave us because we're trying to > get a beta out by Thursday, so don't expect coherence from me this week! > There are 4 developers madly scrambling to make things work the way they're > specified TODAY (never mind how they were specified originally or even > yesterday) and a fun time is being had by all. > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, September 25, 2006 3:26 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Switching to VB.net > > What are the 'nifty new capabilities'? > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, September 25, 2006 4:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > Version 3.0 of the Framework is in beta, indeed and will be released ... > That was as far as they committed. LOL. I recently saw it demonstrated and > fell madly in love with some of the nifty new capabilities. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Maddison > Sent: Friday, September 22, 2006 8:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Switching to VB.net > > I was forced to go the C# route., however Vb.net or C#, the languages > are pretty irrelevent I think. > As others have said there are just soooo many damn options. > You can easily find yourself endlessly refactoring - but maybe its just > me...lol. The framework is enormous, and getting bigger. I believe v3 is in > beta... > > What I found helpful was the Nettiers templates (free) > http://www.nettiers.com/ which you use with CodeSmith (30 day trial) > http://codesmithtools.com/ and the MS Application blocks (free) > http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 > e25-94e2-91be63527327 > > JC, you will love this stuff. > > I'm just hoping none of my code ends up here... > http://thedailywtf.com/Default.aspx > > cheers > > Michael M > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From john at winhaven.net Tue Sep 26 23:35:53 2006 From: john at winhaven.net (John Bartow) Date: Tue, 26 Sep 2006 23:35:53 -0500 Subject: [AccessD] DMax issue Message-ID: <00a901c6e1ee$6b304770$6501a8c0@ScuzzPaq> This must be something I'm simply not seeing. Why doesn't this work as the default value for a textbox on a popup form? = (DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = " & [Forms]![frmProject]![txtJobNumber])) + 1 ItemNumber is Integer JobNumber is Text TIA John B. From bchacc at san.rr.com Wed Sep 27 00:29:25 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 26 Sep 2006 22:29:25 -0700 Subject: [AccessD] DMax issue In-Reply-To: <00a901c6e1ee$6b304770$6501a8c0@ScuzzPaq> Message-ID: <01dc01c6e1f5$e5b7c160$6401a8c0@HAL9005> John Wouldn't you need Val([Forms]![frmProject]![txtJobNumber]))) + 1? Maybe [Forms]![frmProject]![txtJobNumber])) is evaluating to 0 or null because it's text? I'd put a statement right before the DMax: MsgBox "*" & [Forms]![frmProject]![txtJobNumber])) & "*" just to see what that snip is evaluating to. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, September 26, 2006 9:36 PM To: _DBA-Access Subject: [AccessD] DMax issue This must be something I'm simply not seeing. Why doesn't this work as the default value for a textbox on a popup form? = (DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = " & [Forms]![frmProject]![txtJobNumber])) + 1 ItemNumber is Integer JobNumber is Text TIA John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.9/457 - Release Date: 9/26/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.9/457 - Release Date: 9/26/2006 From darrend at nimble.com.au Wed Sep 27 00:36:47 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 27 Sep 2006 15:36:47 +1000 Subject: [AccessD] DMax issue In-Reply-To: <00a901c6e1ee$6b304770$6501a8c0@ScuzzPaq> Message-ID: <20060927053649.HKMZ11173.omta03ps.mx.bigpond.com@DENZILLAP> Hi John When dealing with numbers the syntax you provided is correct - however JobNumber is actually text so in the Domain Lookup syntax (DMAX) it should be treated as text EG - try =(DMax("[ItemNumber]","tblJobDetail","[JobNumber] = [Forms]![frmProject]![txtJobNumber]"))+1 IE = [Forms]![frmProject]![txtJobNumber] now sits INSIDE the double quotes rather than outside as in your posted syntax Hope this helps Darren ------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, 27 September 2006 2:36 PM To: _DBA-Access Subject: [AccessD] DMax issue This must be something I'm simply not seeing. Why doesn't this work as the default value for a textbox on a popup form? = (DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = " & [Forms]![frmProject]![txtJobNumber])) + 1 ItemNumber is Integer JobNumber is Text TIA John B. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at dpi.nsw.gov.au Tue Sep 26 20:44:09 2006 From: connie.kamrowski at dpi.nsw.gov.au (connie.kamrowski at dpi.nsw.gov.au) Date: Wed, 27 Sep 2006 11:44:09 +1000 Subject: [AccessD] Compare two tables with a large number of fields In-Reply-To: Message-ID: Good morning everyone, I have an interesting issue. A Database was created, and put into operation, it had a bug in Citrix so it was removed converted and put back up for testing. Chinese whispers caused data to be entered into both copies of the Database Apparently the word test is ambiguous in some way. Anyway now I have two Databases, each with a job table which contains the following fields tblJob1.BuildID, tblJob1.AreaID, tblJob1.SubElementID, tblJob1.WorkID, tblJob1.StandardID, tblJob1.Location, tblJob1.Description, tblJob1.TradeID, tblJob1.Unit, tblJob1.Quantity, tblJob1.EstCost, tblJob1.Frequency, tblJob1.StartYear, tblJob1.PriorityID, tblJob1.Done, tblJob1.Approved, tblJob1.Comment, tblJob1.CloneJobID I need to compare the two tables and pull out any records which do not match (some may be due to edits in a particular column) so I can add all the added records into a third database( a copy of the original as at the day testing started). I have tried using the unmatched query but it will only let me enter 10 fields for comparison, any ideas on how I can do this? Regards, Connie Kamrowski Senior Software Support Analyst Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax: 02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation. From Andrew.Curtis at wapl.com.au Wed Sep 27 01:39:12 2006 From: Andrew.Curtis at wapl.com.au (Curtis, Andrew (WAPL)) Date: Wed, 27 Sep 2006 14:39:12 +0800 Subject: [AccessD] Compare two tables with a large number of fields In-Reply-To: Message-ID: Attached is a small database illustrating 1 possible fix for this tblJob1 and tblJob2 are the same excepting 2nd field in tblJob2 Run the query in the db to show the incorrect record. --Andrew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at dpi.nsw.gov.au Sent: Wednesday, 27 September 2006 9:44 AM To: accessd at databaseadvisors.com Subject: [AccessD] Compare two tables with a large number of fields Good morning everyone, I have an interesting issue. A Database was created, and put into operation, it had a bug in Citrix so it was removed converted and put back up for testing. Chinese whispers caused data to be entered into both copies of the Database Apparently the word test is ambiguous in some way. Anyway now I have two Databases, each with a job table which contains the following fields tblJob1.BuildID, tblJob1.AreaID, tblJob1.SubElementID, tblJob1.WorkID, tblJob1.StandardID, tblJob1.Location, tblJob1.Description, tblJob1.TradeID, tblJob1.Unit, tblJob1.Quantity, tblJob1.EstCost, tblJob1.Frequency, tblJob1.StartYear, tblJob1.PriorityID, tblJob1.Done, tblJob1.Approved, tblJob1.Comment, tblJob1.CloneJobID I need to compare the two tables and pull out any records which do not match (some may be due to edits in a particular column) so I can add all the added records into a third database( a copy of the original as at the day testing started). I have tried using the unmatched query but it will only let me enter 10 fields for comparison, any ideas on how I can do this? Regards, Connie Kamrowski Senior Software Support Analyst Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax: 02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error please notify the sender immediately and delete the message. From Gustav at cactus.dk Wed Sep 27 03:24:05 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 27 Sep 2006 10:24:05 +0200 Subject: [AccessD] DMax issue Message-ID: Hi John If JobNumber is text, you need to wrap the value in single quotes. Also, if your textbox may be Null, and DefaultValue should be a String. Thus, try this: = "'" & Nz(DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = '" & [Forms]![frmProject]![txtJobNumber] & "'"), 0) + 1 & "'" /gustav >>> john at winhaven.net 27-09-2006 06:35 >>> This must be something I'm simply not seeing. Why doesn't this work as the default value for a textbox on a popup form? = (DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = " & [Forms]![frmProject]![txtJobNumber])) + 1 ItemNumber is Integer JobNumber is Text TIA John B. From jmhecht at earthlink.net Wed Sep 27 10:12:26 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 27 Sep 2006 08:12:26 -0700 Subject: [AccessD] Changing Worlds Message-ID: My world is moving away from Access development. Sad but as they say, follow the money. I am going off list to have time to read and work on other things. Many thanks to those who have taught me through the years here. Joe Hecht jmhecht at earthlink.net From bheid at appdevgrp.com Wed Sep 27 10:18:36 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Sep 2006 11:18:36 -0400 Subject: [AccessD] VSS - Build from source error question... Message-ID: <916187228923D311A6FE00A0CC3FAA30D35930@ADGSERVER> Hey, I rebuilt my machine here at work and was trying to build from source in VSS. It gave me many "can not import file xxx' messages. The ones giving this error are some of the form and report files. When I look at the .SCC directory under my project, I see 221 objects (out of 1457 objects) that have as their type 'Microsoft Agent Character File (HTTP format)' and 27 objects that have the type 'Microsoft Agent Character File'. It looks like only the .ACF files get the 'Microsoft Agent Character File (HTTP format)' type and the .ACS files get the 'Microsoft Agent Character File' type. Has anyone run into this before? Anyone know how to fix it? Thanks, Bobby From dwaters at usinternet.com Wed Sep 27 10:23:47 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 27 Sep 2006 10:23:47 -0500 Subject: [AccessD] Changing Worlds In-Reply-To: <4315628.1159370401197.JavaMail.root@sniper59> Message-ID: <000e01c6e248$ef828970$0200a8c0@danwaters> Good Luck Joe! If you can say, where is the money taking you to? Dan Waters -----Original Message----- Subject: [AccessD] Changing Worlds My world is moving away from Access development. Sad but as they say, follow the money. I am going off list to have time to read and work on other things. Many thanks to those who have taught me through the years here. Joe Hecht jmhecht at earthlink.net From markamatte at hotmail.com Wed Sep 27 10:37:09 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 27 Sep 2006 15:37:09 +0000 Subject: [AccessD] Changing Worlds In-Reply-To: <000e01c6e248$ef828970$0200a8c0@danwaters> Message-ID: ...and do you need a co-pilot on this trip? Good luck, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Changing Worlds >Date: Wed, 27 Sep 2006 10:23:47 -0500 > >Good Luck Joe! > >If you can say, where is the money taking you to? > >Dan Waters > >-----Original Message----- >Subject: [AccessD] Changing Worlds > >My world is moving away from Access development. Sad but as they say, >follow >the money. > >I am going off list to have time to read and work on other things. > >Many thanks to those who have taught me through the years here. > >Joe Hecht >jmhecht at earthlink.net > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 27 11:19:27 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 27 Sep 2006 12:19:27 -0400 Subject: [AccessD] Changing Worlds In-Reply-To: Message-ID: <001e01c6e250$b4eab6e0$647aa8c0@m6805> Good luck Joe. Like others, I'd like to know where the money is taking you. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, September 27, 2006 11:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Changing Worlds My world is moving away from Access development. Sad but as they say, follow the money. I am going off list to have time to read and work on other things. Many thanks to those who have taught me through the years here. Joe Hecht jmhecht at earthlink.net From garykjos at gmail.com Wed Sep 27 11:42:45 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 27 Sep 2006 11:42:45 -0500 Subject: [AccessD] Changing Worlds In-Reply-To: <001e01c6e250$b4eab6e0$647aa8c0@m6805> References: <001e01c6e250$b4eab6e0$647aa8c0@m6805> Message-ID: Unfortunately I believe he has already unsubbed from the list. I saw an unsub message come through for him shortly after his last post. You can probably contact him directly at the email he posted from; jmhecht at earthlink.net By Joe, we'll miss ya! Best wishes and good luck with whatever you're moving to. Gary Kjos On 9/27/06, JWColby wrote: > Good luck Joe. > > Like others, I'd like to know where the money is taking you. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: Wednesday, September 27, 2006 11:12 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Changing Worlds > > My world is moving away from Access development. Sad but as they say, follow > the money. > > I am going off list to have time to read and work on other things. > > Many thanks to those who have taught me through the years here. > > Joe Hecht > jmhecht at earthlink.net > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Wed Sep 27 12:08:20 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Sep 2006 10:08:20 -0700 Subject: [AccessD] VSS - Build from source error question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35930@ADGSERVER> Message-ID: Normally, forms and subforms have the ACF file extension, reports and subreports have ACR, queries have ACQ, modules have ACM and the ACB and CAN files contain the miscellaneous data objects. I've never run into ACS files so they must be for objects we don't use. You have the current Access VSS add-in installed? The 2003 add-in is supposed to work for XP as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS - Build from source error question... Hey, I rebuilt my machine here at work and was trying to build from source in VSS. It gave me many "can not import file xxx' messages. The ones giving this error are some of the form and report files. When I look at the .SCC directory under my project, I see 221 objects (out of 1457 objects) that have as their type 'Microsoft Agent Character File (HTTP format)' and 27 objects that have the type 'Microsoft Agent Character File'. It looks like only the .ACF files get the 'Microsoft Agent Character File (HTTP format)' type and the .ACS files get the 'Microsoft Agent Character File' type. Has anyone run into this before? Anyone know how to fix it? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Sep 27 12:26:50 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Sep 2006 13:26:50 -0400 Subject: [AccessD] VSS - Build from source error question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E3723F@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35932@ADGSERVER> Hi Charlotte, I am running Access XP. I installed the XP Developer Tools also. The I installed the VSS 6.0c client. Did I miss something? I can see the VSS toolbar in Access. I had never seen the .ACS files either. I am thinking that I have not installed something or that I did something out of order. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 27, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VSS - Build from source error question... Normally, forms and subforms have the ACF file extension, reports and subreports have ACR, queries have ACQ, modules have ACM and the ACB and CAN files contain the miscellaneous data objects. I've never run into ACS files so they must be for objects we don't use. You have the current Access VSS add-in installed? The 2003 add-in is supposed to work for XP as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS - Build from source error question... Hey, I rebuilt my machine here at work and was trying to build from source in VSS. It gave me many "can not import file xxx' messages. The ones giving this error are some of the form and report files. When I look at the .SCC directory under my project, I see 221 objects (out of 1457 objects) that have as their type 'Microsoft Agent Character File (HTTP format)' and 27 objects that have the type 'Microsoft Agent Character File'. It looks like only the .ACF files get the 'Microsoft Agent Character File (HTTP format)' type and the .ACS files get the 'Microsoft Agent Character File' type. Has anyone run into this before? Anyone know how to fix it? Thanks, Bobby From john at winhaven.net Wed Sep 27 12:37:39 2006 From: john at winhaven.net (John Bartow) Date: Wed, 27 Sep 2006 12:37:39 -0500 Subject: [AccessD] DMax issue In-Reply-To: <01dc01c6e1f5$e5b7c160$6401a8c0@HAL9005> Message-ID: <026c01c6e25b$a149afa0$6501a8c0@ScuzzPaq> Rocky, The worst thing about using the Domain functions - they are hard to debug (IMO). I'd done the MsgBox thing as you recommended - after putting a watch on the variables, etc. No luck as everything comes through OK except the result! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software I'd put a statement right before the DMax: MsgBox "*" & [Forms]![frmProject]![txtJobNumber])) & "*" just to see what that snip is evaluating to. From john at winhaven.net Wed Sep 27 12:44:28 2006 From: john at winhaven.net (John Bartow) Date: Wed, 27 Sep 2006 12:44:28 -0500 Subject: [AccessD] DMax issue In-Reply-To: <20060927053649.HKMZ11173.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: <026d01c6e25c$94ebfc80$6501a8c0@ScuzzPaq> Darren, Thanks - that did the trick! I think I must have tried every set of quotes around the criteria but this! Just what I needed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK When dealing with numbers the syntax you provided is correct - however JobNumber is actually text so in the Domain Lookup syntax (DMAX) it should be treated as text EG - try =(DMax("[ItemNumber]","tblJobDetail","[JobNumber] = [Forms]![frmProject]![txtJobNumber]"))+1 IE = [Forms]![frmProject]![txtJobNumber] now sits INSIDE the double quotes rather than outside as in your posted syntax From john at winhaven.net Wed Sep 27 12:47:54 2006 From: john at winhaven.net (John Bartow) Date: Wed, 27 Sep 2006 12:47:54 -0500 Subject: [AccessD] DMax issue In-Reply-To: Message-ID: <026e01c6e25d$0fdb3d20$6501a8c0@ScuzzPaq> Thanks Gustav, Since Events prior to this make sure the text box is not null there should never be a time when JobNumber's text box is null or I would defintetly use this. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock If JobNumber is text, you need to wrap the value in single quotes. Also, if your textbox may be Null, and DefaultValue should be a String. Thus, try this: = "'" & Nz(DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = '" & [Forms]![frmProject]![txtJobNumber] & "'"), 0) + 1 & "'" /gustav From Gustav at cactus.dk Wed Sep 27 12:54:06 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 27 Sep 2006 19:54:06 +0200 Subject: [AccessD] DMax issue Message-ID: Hi John Then you can reduce to: = "'" & DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = '" & [Forms]![frmProject]![txtJobNumber] & "'") + 1 & "'" /gustav >>> john at winhaven.net 27-09-2006 19:47:54 >>> Thanks Gustav, Since Events prior to this make sure the text box is not null there should never be a time when JobNumber's text box is null or I would defintetly use this. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock If JobNumber is text, you need to wrap the value in single quotes. Also, if your textbox may be Null, and DefaultValue should be a String. Thus, try this: = "'" & Nz(DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = '" & [Forms]![frmProject]![txtJobNumber] & "'"), 0) + 1 & "'" /gustav From shamil at users.mns.ru Wed Sep 27 13:00:23 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 27 Sep 2006 22:00:23 +0400 Subject: [AccessD] Moving out of MS Access? Message-ID: <000001c6e25e$cea87eb0$6401a8c0@nant> Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? What do you think and what do you see there overseas? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Does this mean there is a demand for the new MS Access development or just that there is no usually any need to migrate old MS Access applications to MS SQL/.NET? Microsoft Office Access and Enterprise IT Case Study: Streamlining Application Development Peter Mullen is Manager of Application Development in the corporate services department of a Fortune 500 insurance company with almost 50,000 employees and over 500 offices in 120 countries. Following a major acquisition, the company undertook a reorganization that involved centralizing its data management. Mullen, who had some experience working with Microsoft Office Access, started exploring the ways that Access database applications were being deployed across the enterprise. He was stunned to learn how pervasively Access was being used. Mullen says, ?Access was all over the place doing so many things that it blew my mind. Once I became known as ?The Access Guy? there were people all over the company who wanted my time.? Not surprisingly, the quality of the Access applications Mullen discovered was quite variable. To Mullen?s trained eye, some were in fact very poorly designed, and yet they were getting the job done. Mullen also found positions hidden in the payroll in the field that consisted essentially of supporting a small number of departmental Access applications. Mullen and his manager put together a presentation for the Chief Information Officer (CIO), proposing that the IT department begin formally supporting Access development at the company. They outlined a strategy for centralizing and rationalizing management of the Access applications that were evolving under the radar of their traditional portfolio management. The CIO saw the value in this proposal right away, and Mullen became the lead developer of a new group that was formed for this purpose. Mullen?s group created and nurtured the use of naming standards, coding standards, and standard methodologies. They also were able to reduce headcount in the field as support activities were centralized. Mullen reports that after about two years, ?We had standard code; we had about 200 applications, and we were handling it. We started to rationalize our portfolio and really started to communicate exactly what we were doing to IT. This was the key point?that a lot of people in the organization started to see what we were really about. These were complicated problems being solved without spending a lot of money.? As more people in the IT organization learned of the success of Mullen?s group, he began to receive requests for ?bolt-on applications, small department tracking projects, and proofs of concept. We hit a few of these and we had a real perceived value to the organization.? Mullen summarizes what he?s learned about the optimal role of Access in the enterprise as follows: ?Access development in corporate organizations is simply a reality. People in the business are constantly looking for ways to add value to their customers and to free up their staff from mundane chores using automation that is inexpensive and easily accomplished. This is the strength of Access. The problem, from an IT perspective, is that the business comes to depend on products created without any IT involvement. Someone?usually an outsider or a low-level employee?becomes vital to the support of the product. So the question for IT becomes, ?Will we provide support for this process?? In my experience, providing an organized group that can create and support Access applications is a solid investment. It adds real and perceived value to the business and prevents a whole portfolio of applications from being developed under the radar of IT.? Mullen continues, ?IT usually looks at all of the Access applications that are developed in the field as problems to be eliminated. I look at them and I see opportunity. Applications developed in the field are sometimes things that should never have been created; yet often they are products that are highly valued and fill a real need. By treating field applications (which most often means Access) with respect, and providing support and portfolio management, you can sometimes find patterns of demand in your organization and help drive real IT value back to the business.? Mullen is now working with the Architecture Team in his organization to identify candidates for migration to SQL Server and .NET applications. Mullen says, ?Much of our portfolio will remain in Access, but some will migrate. There will always be a need for those quick and inexpensive solutions. The important thing is to keep track of these applications. They are the fingertips of your IT organization.? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Access developers, administrators, and users now have a new toolkit to aid them in analyzing Access 97 databases for upgrade and conversion to Access 2003. Users can take advantage of the tools in the Access 2003 Conversion Toolkit to find and analyze databases in preparation for switching to Access 2003. For upgrading to the 2007 release, Microsoft plans to release the Microsoft Office Migration Planning Manager. -- Shamil From mwp.reid at qub.ac.uk Wed Sep 27 13:06:12 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 27 Sep 2006 19:06:12 +0100 Subject: [AccessD] Moving out of MS Access? References: <000001c6e25e$cea87eb0$6401a8c0@nant> Message-ID: Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. I actually wrote an article for Microsoft on what happens after moving them to SQL Server http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx At that time was a big PR push to move them to SQL Server. The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 27/09/2006 19:00 To: 'Access-D' Subject: [AccessD] Moving out of MS Access? Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? From mwp.reid at qub.ac.uk Wed Sep 27 13:24:01 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 27 Sep 2006 19:24:01 +0100 Subject: [AccessD] OT Outlook References: <000001c6e25e$cea87eb0$6401a8c0@nant> Message-ID: Anyone know where I can find outlooks configuration file?? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From dwaters at usinternet.com Wed Sep 27 13:29:25 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 27 Sep 2006 13:29:25 -0500 Subject: [AccessD] Moving out of MS Access? In-Reply-To: <22107074.1159380249144.JavaMail.root@sniper33> Message-ID: <002901c6e262$dc7cda00$0200a8c0@danwaters> Hi Shamil, This is just about my favorite soapbox! In any organization, there is someone or a few people who learn how to begin using Access as a database, usually to track or manage a departmental activity. They use it themselves, then learn that with a few changes, it can become a shared database. But then even more people start using it, and it breaks due to poor design. But by now, the department (or company) depends on it. So the department manager goes to the IT department and tells them that he needs this database fixed right away! Predictably, the IT department sees this scenario more than they want to. From their perspective, they must now go into a significant database design effort, with no time planned for and no budget planned for. After a few times of this, it's easy to see why Access gets blamed. So, to get off the hook, the IT department will blame Access, and demand that Access no longer be used for company applications. You really can't blame them. The problem is that Access is too easy to use to create a useful application without the 'developer' having training. Think about VB - you don't just up and make a VB front end app with back end tables without some training! I have one customer which uses my Access app for Corrective Action, Nonconforming Material, Debit Memos, Die Cast Machine Settings, Vacation Requests, Attendance Tracking, Warnings, Controlled Documents, and soon to be Training Management. This is all in one FE, using a separate .mdb for Temp tables, a library database with forms, reports, and standard modules, and a BE data .mdb. It's very effective, and they literally don't have to hire as many people. So yes - Access can be used very effectively for business applications. Interestingly, one of the reasons I started working with them is because they had a Quality Engineer who tried to create a Corrective Action process, but couldn't write any code. (She was gone before I got there.) So, if MS can influence people to not use a high-powered tool with a low-skilled driver, the reputation of Access as a business app will improve. They may already be doing this by providing a large number of usable templates for people to use 'out of the box.' That's my 10 cents (with inflation)! And - Shamil - where is this report published? I'd like to be able to refer prospective customers to it. Dan Waters -----Original Message----- Subject: [AccessD] Moving out of MS Access? Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? What do you think and what do you see there overseas? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Does this mean there is a demand for the new MS Access development or just that there is no usually any need to migrate old MS Access applications to MS SQL/.NET? Microsoft Office Access and Enterprise IT Case Study: Streamlining Application Development Peter Mullen is Manager of Application Development in the corporate services department of a Fortune 500 insurance company with almost 50,000 employees and over 500 offices in 120 countries. Following a major acquisition, the company undertook a reorganization that involved centralizing its data management. Mullen, who had some experience working with Microsoft Office Access, started exploring the ways that Access database applications were being deployed across the enterprise. He was stunned to learn how pervasively Access was being used. Mullen says, ?Access was all over the place doing so many things that it blew my mind. Once I became known as ?The Access Guy? there were people all over the company who wanted my time.? Not surprisingly, the quality of the Access applications Mullen discovered was quite variable. To Mullen?s trained eye, some were in fact very poorly designed, and yet they were getting the job done. Mullen also found positions hidden in the payroll in the field that consisted essentially of supporting a small number of departmental Access applications. Mullen and his manager put together a presentation for the Chief Information Officer (CIO), proposing that the IT department begin formally supporting Access development at the company. They outlined a strategy for centralizing and rationalizing management of the Access applications that were evolving under the radar of their traditional portfolio management. The CIO saw the value in this proposal right away, and Mullen became the lead developer of a new group that was formed for this purpose. Mullen?s group created and nurtured the use of naming standards, coding standards, and standard methodologies. They also were able to reduce headcount in the field as support activities were centralized. Mullen reports that after about two years, ?We had standard code; we had about 200 applications, and we were handling it. We started to rationalize our portfolio and really started to communicate exactly what we were doing to IT. This was the key point?that a lot of people in the organization started to see what we were really about. These were complicated problems being solved without spending a lot of money.? As more people in the IT organization learned of the success of Mullen?s group, he began to receive requests for ?bolt-on applications, small department tracking projects, and proofs of concept. We hit a few of these and we had a real perceived value to the organization.? Mullen summarizes what he?s learned about the optimal role of Access in the enterprise as follows: ?Access development in corporate organizations is simply a reality. People in the business are constantly looking for ways to add value to their customers and to free up their staff from mundane chores using automation that is inexpensive and easily accomplished. This is the strength of Access. The problem, from an IT perspective, is that the business comes to depend on products created without any IT involvement. Someone?usually an outsider or a low-level employee?becomes vital to the support of the product. So the question for IT becomes, ?Will we provide support for this process?? In my experience, providing an organized group that can create and support Access applications is a solid investment. It adds real and perceived value to the business and prevents a whole portfolio of applications from being developed under the radar of IT.? Mullen continues, ?IT usually looks at all of the Access applications that are developed in the field as problems to be eliminated. I look at them and I see opportunity. Applications developed in the field are sometimes things that should never have been created; yet often they are products that are highly valued and fill a real need. By treating field applications (which most often means Access) with respect, and providing support and portfolio management, you can sometimes find patterns of demand in your organization and help drive real IT value back to the business.? Mullen is now working with the Architecture Team in his organization to identify candidates for migration to SQL Server and .NET applications. Mullen says, ?Much of our portfolio will remain in Access, but some will migrate. There will always be a need for those quick and inexpensive solutions. The important thing is to keep track of these applications. They are the fingertips of your IT organization.? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Access developers, administrators, and users now have a new toolkit to aid them in analyzing Access 97 databases for upgrade and conversion to Access 2003. Users can take advantage of the tools in the Access 2003 Conversion Toolkit to find and analyze databases in preparation for switching to Access 2003. For upgrading to the 2007 release, Microsoft plans to release the Microsoft Office Migration Planning Manager. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Sep 27 13:39:26 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 27 Sep 2006 14:39:26 -0400 Subject: [AccessD] VSS - Build from source error question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E3724A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35935@ADGSERVER> What is the correct order to install this stuff. Here's the way I did it: 1) Install Access 97 2) Install Access 97 dev tools 3) Install Office XP 4) Install Office XP dev tools 5) Install VSS client (6.0c) Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VSS - Build from source error question... Hi Charlotte, I am running Access XP. I installed the XP Developer Tools also. The I installed the VSS 6.0c client. Did I miss something? I can see the VSS toolbar in Access. I had never seen the .ACS files either. I am thinking that I have not installed something or that I did something out of order. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 27, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VSS - Build from source error question... Normally, forms and subforms have the ACF file extension, reports and subreports have ACR, queries have ACQ, modules have ACM and the ACB and CAN files contain the miscellaneous data objects. I've never run into ACS files so they must be for objects we don't use. You have the current Access VSS add-in installed? The 2003 add-in is supposed to work for XP as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS - Build from source error question... Hey, I rebuilt my machine here at work and was trying to build from source in VSS. It gave me many "can not import file xxx' messages. The ones giving this error are some of the form and report files. When I look at the .SCC directory under my project, I see 221 objects (out of 1457 objects) that have as their type 'Microsoft Agent Character File (HTTP format)' and 27 objects that have the type 'Microsoft Agent Character File'. It looks like only the .ACF files get the 'Microsoft Agent Character File (HTTP format)' type and the .ACS files get the 'Microsoft Agent Character File' type. Has anyone run into this before? Anyone know how to fix it? Thanks, Bobby From shamil at users.mns.ru Wed Sep 27 14:12:06 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 27 Sep 2006 23:12:06 +0400 Subject: [AccessD] Moving out of MS Access? In-Reply-To: Message-ID: <000d01c6e268$d2f62260$6401a8c0@nant> Thank you for the links on articles and for your opinion, Martin! -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 27, 2006 10:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Moving out of MS Access? Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. I actually wrote an article for Microsoft on what happens after moving them to SQL Server http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx At that time was a big PR push to move them to SQL Server. The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 27/09/2006 19:00 To: 'Access-D' Subject: [AccessD] Moving out of MS Access? Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? From shamil at users.mns.ru Wed Sep 27 14:12:06 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 27 Sep 2006 23:12:06 +0400 Subject: [AccessD] Moving out of MS Access? In-Reply-To: <002901c6e262$dc7cda00$0200a8c0@danwaters> Message-ID: <001201c6e268$d331cbd0$6401a8c0@nant> Hi Dan, The quoted article is published here (watch line wraps): http://blogs.msdn.com/access/archive/2006/07/27/680772.aspx#comments <<< So, if MS can influence people to not use a high-powered tool with a low-skilled driver, the reputation of Access as a business app will improve. >>> Maybe write a petition to Microsoft to include MS Access 2007 runtime into MS Windows Vista? :) (Now, when MS Windows release is delayed and MS Office 12 release is on the way that could be possible to do?) BTW, "MS Access" gives ~112 million hits on google and Visual studio "just" ~87 million... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 27, 2006 10:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Moving out of MS Access? Hi Shamil, This is just about my favorite soapbox! In any organization, there is someone or a few people who learn how to begin using Access as a database, usually to track or manage a departmental activity. They use it themselves, then learn that with a few changes, it can become a shared database. But then even more people start using it, and it breaks due to poor design. But by now, the department (or company) depends on it. So the department manager goes to the IT department and tells them that he needs this database fixed right away! Predictably, the IT department sees this scenario more than they want to. From their perspective, they must now go into a significant database design effort, with no time planned for and no budget planned for. After a few times of this, it's easy to see why Access gets blamed. So, to get off the hook, the IT department will blame Access, and demand that Access no longer be used for company applications. You really can't blame them. The problem is that Access is too easy to use to create a useful application without the 'developer' having training. Think about VB - you don't just up and make a VB front end app with back end tables without some training! I have one customer which uses my Access app for Corrective Action, Nonconforming Material, Debit Memos, Die Cast Machine Settings, Vacation Requests, Attendance Tracking, Warnings, Controlled Documents, and soon to be Training Management. This is all in one FE, using a separate .mdb for Temp tables, a library database with forms, reports, and standard modules, and a BE data .mdb. It's very effective, and they literally don't have to hire as many people. So yes - Access can be used very effectively for business applications. Interestingly, one of the reasons I started working with them is because they had a Quality Engineer who tried to create a Corrective Action process, but couldn't write any code. (She was gone before I got there.) So, if MS can influence people to not use a high-powered tool with a low-skilled driver, the reputation of Access as a business app will improve. They may already be doing this by providing a large number of usable templates for people to use 'out of the box.' That's my 10 cents (with inflation)! And - Shamil - where is this report published? I'd like to be able to refer prospective customers to it. Dan Waters -----Original Message----- Subject: [AccessD] Moving out of MS Access? Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? What do you think and what do you see there overseas? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Does this mean there is a demand for the new MS Access development or just that there is no usually any need to migrate old MS Access applications to MS SQL/.NET? Microsoft Office Access and Enterprise IT Case Study: Streamlining Application Development Peter Mullen is Manager of Application Development in the corporate services department of a Fortune 500 insurance company with almost 50,000 employees and over 500 offices in 120 countries. Following a major acquisition, the company undertook a reorganization that involved centralizing its data management. Mullen, who had some experience working with Microsoft Office Access, started exploring the ways that Access database applications were being deployed across the enterprise. He was stunned to learn how pervasively Access was being used. Mullen says, ?Access was all over the place doing so many things that it blew my mind. Once I became known as ?The Access Guy? there were people all over the company who wanted my time.? Not surprisingly, the quality of the Access applications Mullen discovered was quite variable. To Mullen?s trained eye, some were in fact very poorly designed, and yet they were getting the job done. Mullen also found positions hidden in the payroll in the field that consisted essentially of supporting a small number of departmental Access applications. Mullen and his manager put together a presentation for the Chief Information Officer (CIO), proposing that the IT department begin formally supporting Access development at the company. They outlined a strategy for centralizing and rationalizing management of the Access applications that were evolving under the radar of their traditional portfolio management. The CIO saw the value in this proposal right away, and Mullen became the lead developer of a new group that was formed for this purpose. Mullen?s group created and nurtured the use of naming standards, coding standards, and standard methodologies. They also were able to reduce headcount in the field as support activities were centralized. Mullen reports that after about two years, ?We had standard code; we had about 200 applications, and we were handling it. We started to rationalize our portfolio and really started to communicate exactly what we were doing to IT. This was the key point?that a lot of people in the organization started to see what we were really about. These were complicated problems being solved without spending a lot of money.? As more people in the IT organization learned of the success of Mullen?s group, he began to receive requests for ?bolt-on applications, small department tracking projects, and proofs of concept. We hit a few of these and we had a real perceived value to the organization.? Mullen summarizes what he?s learned about the optimal role of Access in the enterprise as follows: ?Access development in corporate organizations is simply a reality. People in the business are constantly looking for ways to add value to their customers and to free up their staff from mundane chores using automation that is inexpensive and easily accomplished. This is the strength of Access. The problem, from an IT perspective, is that the business comes to depend on products created without any IT involvement. Someone?usually an outsider or a low-level employee?becomes vital to the support of the product. So the question for IT becomes, ?Will we provide support for this process?? In my experience, providing an organized group that can create and support Access applications is a solid investment. It adds real and perceived value to the business and prevents a whole portfolio of applications from being developed under the radar of IT.? Mullen continues, ?IT usually looks at all of the Access applications that are developed in the field as problems to be eliminated. I look at them and I see opportunity. Applications developed in the field are sometimes things that should never have been created; yet often they are products that are highly valued and fill a real need. By treating field applications (which most often means Access) with respect, and providing support and portfolio management, you can sometimes find patterns of demand in your organization and help drive real IT value back to the business.? Mullen is now working with the Architecture Team in his organization to identify candidates for migration to SQL Server and .NET applications. Mullen says, ?Much of our portfolio will remain in Access, but some will migrate. There will always be a need for those quick and inexpensive solutions. The important thing is to keep track of these applications. They are the fingertips of your IT organization.? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Access developers, administrators, and users now have a new toolkit to aid them in analyzing Access 97 databases for upgrade and conversion to Access 2003. Users can take advantage of the tools in the Access 2003 Conversion Toolkit to find and analyze databases in preparation for switching to Access 2003. For upgrading to the 2007 release, Microsoft plans to release the Microsoft Office Migration Planning Manager. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tuxedoman888 at gmail.com Wed Sep 27 14:27:10 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Wed, 27 Sep 2006 12:27:10 -0700 Subject: [AccessD] OT Outlook In-Reply-To: References: <000001c6e25e$cea87eb0$6401a8c0@nant> Message-ID: <7c8826480609271227j7d99434dh373294adbfd7c4f4@mail.gmail.com> Outlook Data Files Locations http://itinfo.mit.edu/article.php?id=6972 On 9/27/06, Martin Reid wrote: > > Anyone know where I can find outlooks configuration file?? > > Martin > > > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From mwp.reid at qub.ac.uk Wed Sep 27 14:38:59 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 27 Sep 2006 20:38:59 +0100 Subject: [AccessD] OT Outlook References: <000001c6e25e$cea87eb0$6401a8c0@nant> <7c8826480609271227j7d99434dh373294adbfd7c4f4@mail.gmail.com> Message-ID: Thanks Billy I am up to my neck in Outlook, Access, XML and XSD and I havnt a clue what I am doing (<: Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Billy Pang Sent: Wed 27/09/2006 20:27 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook Outlook Data Files Locations http://itinfo.mit.edu/article.php?id=6972 On 9/27/06, Martin Reid wrote: > > Anyone know where I can find outlooks configuration file?? > > Martin > > > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Sep 27 14:40:37 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 27 Sep 2006 12:40:37 -0700 Subject: [AccessD] Moving out of MS Access? In-Reply-To: References: <000001c6e25e$cea87eb0$6401a8c0@nant> Message-ID: <451AD3B5.8060707@shaw.ca> With regards to SharePoint, I am hearing a lot of concerns from Senior Records Manager about the absence of two tier authentication. I have heard of hacks into Sharepoint with regards to patient health care records. Martin Reid wrote: >Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. > >I actually wrote an article for Microsoft on what happens after moving them to SQL Server >http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx > >At that time was a big PR push to move them to SQL Server. > >The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. > >I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov >Sent: Wed 27/09/2006 19:00 >To: 'Access-D' >Subject: [AccessD] Moving out of MS Access? > > > > >Hi All, > >Is this article from http://blogs.msdn.com/access/default.aspx just a cry of >MS Access Team trying to stop the massive(?) exodus of MS Access developers >or it shows the real picture and place of MS Access in corporate world and >that MS Access isn't yet dead for real business tasks development ? > > > > -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Wed Sep 27 14:42:10 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 27 Sep 2006 14:42:10 -0500 Subject: [AccessD] Moving out of MS Access? In-Reply-To: <24025144.1159384445311.JavaMail.root@sniper51> Message-ID: <003501c6e26d$062fdaf0$0200a8c0@danwaters> Thanks Shamil! It's good to hear some words from MS about where and where not to use Access. Most importantly, this will validate to many companies that Access can be used for many of their applications. Dan Waters -----Original Message----- Subject: Re: [AccessD] Moving out of MS Access? Hi Dan, The quoted article is published here (watch line wraps): http://blogs.msdn.com/access/archive/2006/07/27/680772.aspx#comments <<< So, if MS can influence people to not use a high-powered tool with a low-skilled driver, the reputation of Access as a business app will improve. >>> Maybe write a petition to Microsoft to include MS Access 2007 runtime into MS Windows Vista? :) (Now, when MS Windows release is delayed and MS Office 12 release is on the way that could be possible to do?) BTW, "MS Access" gives ~112 million hits on google and Visual studio "just" ~87 million... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 27, 2006 10:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Moving out of MS Access? Hi Shamil, This is just about my favorite soapbox! In any organization, there is someone or a few people who learn how to begin using Access as a database, usually to track or manage a departmental activity. They use it themselves, then learn that with a few changes, it can become a shared database. But then even more people start using it, and it breaks due to poor design. But by now, the department (or company) depends on it. So the department manager goes to the IT department and tells them that he needs this database fixed right away! Predictably, the IT department sees this scenario more than they want to. From their perspective, they must now go into a significant database design effort, with no time planned for and no budget planned for. After a few times of this, it's easy to see why Access gets blamed. So, to get off the hook, the IT department will blame Access, and demand that Access no longer be used for company applications. You really can't blame them. The problem is that Access is too easy to use to create a useful application without the 'developer' having training. Think about VB - you don't just up and make a VB front end app with back end tables without some training! I have one customer which uses my Access app for Corrective Action, Nonconforming Material, Debit Memos, Die Cast Machine Settings, Vacation Requests, Attendance Tracking, Warnings, Controlled Documents, and soon to be Training Management. This is all in one FE, using a separate .mdb for Temp tables, a library database with forms, reports, and standard modules, and a BE data .mdb. It's very effective, and they literally don't have to hire as many people. So yes - Access can be used very effectively for business applications. Interestingly, one of the reasons I started working with them is because they had a Quality Engineer who tried to create a Corrective Action process, but couldn't write any code. (She was gone before I got there.) So, if MS can influence people to not use a high-powered tool with a low-skilled driver, the reputation of Access as a business app will improve. They may already be doing this by providing a large number of usable templates for people to use 'out of the box.' That's my 10 cents (with inflation)! And - Shamil - where is this report published? I'd like to be able to refer prospective customers to it. Dan Waters -----Original Message----- Subject: [AccessD] Moving out of MS Access? Hi All, Is this article from http://blogs.msdn.com/access/default.aspx just a cry of MS Access Team trying to stop the massive(?) exodus of MS Access developers or it shows the real picture and place of MS Access in corporate world and that MS Access isn't yet dead for real business tasks development ? What do you think and what do you see there overseas? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Does this mean there is a demand for the new MS Access development or just that there is no usually any need to migrate old MS Access applications to MS SQL/.NET? Microsoft Office Access and Enterprise IT Case Study: Streamlining Application Development Peter Mullen is Manager of Application Development in the corporate services department of a Fortune 500 insurance company with almost 50,000 employees and over 500 offices in 120 countries. Following a major acquisition, the company undertook a reorganization that involved centralizing its data management. Mullen, who had some experience working with Microsoft Office Access, started exploring the ways that Access database applications were being deployed across the enterprise. He was stunned to learn how pervasively Access was being used. Mullen says, ?Access was all over the place doing so many things that it blew my mind. Once I became known as ?The Access Guy? there were people all over the company who wanted my time.? Not surprisingly, the quality of the Access applications Mullen discovered was quite variable. To Mullen?s trained eye, some were in fact very poorly designed, and yet they were getting the job done. Mullen also found positions hidden in the payroll in the field that consisted essentially of supporting a small number of departmental Access applications. Mullen and his manager put together a presentation for the Chief Information Officer (CIO), proposing that the IT department begin formally supporting Access development at the company. They outlined a strategy for centralizing and rationalizing management of the Access applications that were evolving under the radar of their traditional portfolio management. The CIO saw the value in this proposal right away, and Mullen became the lead developer of a new group that was formed for this purpose. Mullen?s group created and nurtured the use of naming standards, coding standards, and standard methodologies. They also were able to reduce headcount in the field as support activities were centralized. Mullen reports that after about two years, ?We had standard code; we had about 200 applications, and we were handling it. We started to rationalize our portfolio and really started to communicate exactly what we were doing to IT. This was the key point?that a lot of people in the organization started to see what we were really about. These were complicated problems being solved without spending a lot of money.? As more people in the IT organization learned of the success of Mullen?s group, he began to receive requests for ?bolt-on applications, small department tracking projects, and proofs of concept. We hit a few of these and we had a real perceived value to the organization.? Mullen summarizes what he?s learned about the optimal role of Access in the enterprise as follows: ?Access development in corporate organizations is simply a reality. People in the business are constantly looking for ways to add value to their customers and to free up their staff from mundane chores using automation that is inexpensive and easily accomplished. This is the strength of Access. The problem, from an IT perspective, is that the business comes to depend on products created without any IT involvement. Someone?usually an outsider or a low-level employee?becomes vital to the support of the product. So the question for IT becomes, ?Will we provide support for this process?? In my experience, providing an organized group that can create and support Access applications is a solid investment. It adds real and perceived value to the business and prevents a whole portfolio of applications from being developed under the radar of IT.? Mullen continues, ?IT usually looks at all of the Access applications that are developed in the field as problems to be eliminated. I look at them and I see opportunity. Applications developed in the field are sometimes things that should never have been created; yet often they are products that are highly valued and fill a real need. By treating field applications (which most often means Access) with respect, and providing support and portfolio management, you can sometimes find patterns of demand in your organization and help drive real IT value back to the business.? Mullen is now working with the Architecture Team in his organization to identify candidates for migration to SQL Server and .NET applications. Mullen says, ?Much of our portfolio will remain in Access, but some will migrate. There will always be a need for those quick and inexpensive solutions. The important thing is to keep track of these applications. They are the fingertips of your IT organization.? Market research by Microsoft indicates that fewer than 5 percent of all Access applications developed in large enterprises have requirements that justify moving the data from a Jet database to SQL Server, and fewer than 1 percent require migrating the forms, reports, and code to a .NET-based solution. Access developers, administrators, and users now have a new toolkit to aid them in analyzing Access 97 databases for upgrade and conversion to Access 2003. Users can take advantage of the tools in the Access 2003 Conversion Toolkit to find and analyze databases in preparation for switching to Access 2003. For upgrading to the 2007 release, Microsoft plans to release the Microsoft Office Migration Planning Manager. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Sep 27 14:52:47 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 27 Sep 2006 20:52:47 +0100 Subject: [AccessD] Moving out of MS Access? References: <000001c6e25e$cea87eb0$6401a8c0@nant> <451AD3B5.8060707@shaw.ca> Message-ID: Martin Can you expand on that. I am goign to start a large pilot in Sharepoint in a week or so. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Wed 27/09/2006 20:40 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Moving out of MS Access? With regards to SharePoint, I am hearing a lot of concerns from Senior Records Manager about the absence of two tier authentication. I have heard of hacks into Sharepoint with regards to patient health care records. Martin Reid wrote: >Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. > >I actually wrote an article for Microsoft on what happens after moving them to SQL Server >http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx > >At that time was a big PR push to move them to SQL Server. > >The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. > >I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov >Sent: Wed 27/09/2006 19:00 >To: 'Access-D' >Subject: [AccessD] Moving out of MS Access? > > > > >Hi All, > >Is this article from http://blogs.msdn.com/access/default.aspx just a cry of >MS Access Team trying to stop the massive(?) exodus of MS Access developers >or it shows the real picture and place of MS Access in corporate world and >that MS Access isn't yet dead for real business tasks development ? > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Sep 27 14:53:18 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 27 Sep 2006 20:53:18 +0100 Subject: [AccessD] OT Outlook References: <000001c6e25e$cea87eb0$6401a8c0@nant><7c8826480609271227j7d99434dh373294adbfd7c4f4@mail.gmail.com> Message-ID: How can I turn on a Com add in in outlook via code using VBA. The add in is of by default. I dont know its name by the way (<: Generics will do if anyone knows I can work it out from there. Martin (wading about in the dark in Belfast) Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From shamil at users.mns.ru Wed Sep 27 15:33:45 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 28 Sep 2006 00:33:45 +0400 Subject: [AccessD] OT Outlook In-Reply-To: Message-ID: <000301c6e274$3b1d56a0$6401a8c0@nant> Martin, In MS Access you can do: Access.Application.COMAddIns(1).connect=True To connect the first of registered COM Add-Ins. I believe in Outlook it should be: Outlook.Application.COMAddIns(1).connect=True To identify the add-in you can cycle COMAddins collection and use ProgId or Descriptin properties. Here is just debug.print cycling sample: Dim myAddIn As Office.COMAddIn For Each myAddIn In Access.Application.COMAddIns With myAddIn Debug.Print "Connected = " & .Connect; Debug.Print " , ProgId = " & .ProgId & " - "; Debug.Print .Description End With Next myAddIn To use this code you have to have a reference set to MS Office object library - I expect it should be set in MS Outlook VBA by default... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 27, 2006 11:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook How can I turn on a Com add in in outlook via code using VBA. The add in is of by default. I dont know its name by the way (<: Generics will do if anyone knows I can work it out from there. Martin (wading about in the dark in Belfast) Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Jim.Hale at FleetPride.com Wed Sep 27 16:45:52 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 27 Sep 2006 16:45:52 -0500 Subject: [AccessD] Moving out of MS Access? Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFE0@corp-es01.fleetpride.com> Speaking of hacks I read recently about a copier hack. Apparently the hard drive on modern copiers is just as susceptible as any HD to being compromised. Also, leased copiers are usually returned without the disk being wiped so they usually have sensitive data still on them. One more thing to worry about. Jim Hale -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Wednesday, September 27, 2006 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Moving out of MS Access? With regards to SharePoint, I am hearing a lot of concerns from Senior Records Manager about the absence of two tier authentication. I have heard of hacks into Sharepoint with regards to patient health care records. Martin Reid wrote: >Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. > >I actually wrote an article for Microsoft on what happens after moving them to SQL Server >http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx > >At that time was a big PR push to move them to SQL Server. > >The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. > >I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov >Sent: Wed 27/09/2006 19:00 >To: 'Access-D' >Subject: [AccessD] Moving out of MS Access? > > > > >Hi All, > >Is this article from http://blogs.msdn.com/access/default.aspx just a cry of >MS Access Team trying to stop the massive(?) exodus of MS Access developers >or it shows the real picture and place of MS Access in corporate world and >that MS Access isn't yet dead for real business tasks development ? > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From john at winhaven.net Wed Sep 27 17:58:23 2006 From: john at winhaven.net (John Bartow) Date: Wed, 27 Sep 2006 17:58:23 -0500 Subject: [AccessD] DMax issue In-Reply-To: Message-ID: <035501c6e288$6f79a2f0$6501a8c0@ScuzzPaq> Thanks Gustav -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Then you can reduce to: = "'" & DMax("[ItemNumber]", "tblJobDetail", "[JobNumber] = '" & [Forms]![frmProject]![txtJobNumber] & "'") + 1 & "'" From cfoust at infostatsystems.com Wed Sep 27 20:01:03 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 27 Sep 2006 18:01:03 -0700 Subject: [AccessD] VSS - Build from source error question... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35935@ADGSERVER> Message-ID: That looks right to me. If you see the VSS toolbar in Access, you have the add-in, although there is a later version of VSS and the 2003 add-in works in AXP, at least against the latest version of VSS. What happens if you simply delete those files (not permanently) in source safe? Hang on! I just realized why the ACS extension wasn't familiar. In Access, those represent macros (i.e., scripts), which we never really use. You may be able to recreate them if it's just things like AutoExce and Autokeys. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 11:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VSS - Build from source error question... What is the correct order to install this stuff. Here's the way I did it: 1) Install Access 97 2) Install Access 97 dev tools 3) Install Office XP 4) Install Office XP dev tools 5) Install VSS client (6.0c) Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VSS - Build from source error question... Hi Charlotte, I am running Access XP. I installed the XP Developer Tools also. The I installed the VSS 6.0c client. Did I miss something? I can see the VSS toolbar in Access. I had never seen the .ACS files either. I am thinking that I have not installed something or that I did something out of order. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 27, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VSS - Build from source error question... Normally, forms and subforms have the ACF file extension, reports and subreports have ACR, queries have ACQ, modules have ACM and the ACB and CAN files contain the miscellaneous data objects. I've never run into ACS files so they must be for objects we don't use. You have the current Access VSS add-in installed? The 2003 add-in is supposed to work for XP as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, September 27, 2006 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS - Build from source error question... Hey, I rebuilt my machine here at work and was trying to build from source in VSS. It gave me many "can not import file xxx' messages. The ones giving this error are some of the form and report files. When I look at the .SCC directory under my project, I see 221 objects (out of 1457 objects) that have as their type 'Microsoft Agent Character File (HTTP format)' and 27 objects that have the type 'Microsoft Agent Character File'. It looks like only the .ACF files get the 'Microsoft Agent Character File (HTTP format)' type and the .ACS files get the 'Microsoft Agent Character File' type. Has anyone run into this before? Anyone know how to fix it? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Thu Sep 28 03:24:54 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 28 Sep 2006 09:24:54 +0100 Subject: [AccessD] OT Outlook References: <000301c6e274$3b1d56a0$6401a8c0@nant> Message-ID: Shamil Just repeats the same add in over and over Connected = False , ProgId = AceCnfViewer.sortie - Microsoft Office 12.0 Access Database Engine Conflict Resolver Connected = False , ProgId = CnfViewer.sortie - #401 Its Access 2007. What I am doing is trying to set the Data Collection Email add in in Outlook to true. It is off by default. Data Collection is a wizard activity but you can code it. In order to code for it you need to set the com add in in OUtlook 2007 to on. It is turned on when you first run the wizard. Sort of feeling my way in the dark here are com add ins are out of my area. Also have to create XML on the fly as well. Still havnt worked that bit out yet either (<: but it is interesting. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 27/09/2006 21:33 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT Outlook Martin, In MS Access you can do: Access.Application.COMAddIns(1).connect=True To connect the first of registered COM Add-Ins. I believe in Outlook it should be: Outlook.Application.COMAddIns(1).connect=True To identify the add-in you can cycle COMAddins collection and use ProgId or Descriptin properties. Here is just debug.print cycling sample: Dim myAddIn As Office.COMAddIn For Each myAddIn In Access.Application.COMAddIns With myAddIn Debug.Print "Connected = " & .Connect; Debug.Print " , ProgId = " & .ProgId & " - "; Debug.Print .Description End With Next myAddIn To use this code you have to have a reference set to MS Office object library - I expect it should be set in MS Outlook VBA by default... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 27, 2006 11:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook How can I turn on a Com add in in outlook via code using VBA. The add in is of by default. I dont know its name by the way (<: Generics will do if anyone knows I can work it out from there. Martin (wading about in the dark in Belfast) Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Sep 28 03:49:46 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 28 Sep 2006 12:49:46 +0400 Subject: [AccessD] OT Outlook In-Reply-To: Message-ID: <000c01c6e2db$0cd070e0$6401a8c0@nant> <<< Just repeats the same add in over and over >>> Hello Martin, Does it mean that you have more than two Outlook Add-ins installed? Do you have "COM Add-ins" menu entry under "Tools" menu bar? (If not - you can put it there by using Right-Click->Customize... (it's "buried" in Tools commands)) When using Tools->COM Add-ins how many COM add-in do you see in the list? As far as I see there are only two: 1. Connected = False , ProgId = AceCnfViewer.sortie - Microsoft Office 12.0 Access Database Engine Conflict Resolver 2. Connected = False , ProgId = CnfViewer.sortie - #401 To programmatically from VBA code activate the first one this code line should be enough: Outlook.Application.COMAddIns(1).connect=True To activate AceCnfViewer.sortie add-in in the case it's not the first in the list this code can be used: Option compare text ... Dim myAddIn As Office.COMAddIn For Each myAddIn In Office.Application.COMAddIns With myAddIn If .ProgId = "CnfViewer.sortie" then .Connect = True Exit for End if End With Next myAddIn -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, September 28, 2006 12:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook Shamil Just repeats the same add in over and over Connected = False , ProgId = AceCnfViewer.sortie - Microsoft Office 12.0 Access Database Engine Conflict Resolver Connected = False , ProgId = CnfViewer.sortie - #401 Its Access 2007. What I am doing is trying to set the Data Collection Email add in in Outlook to true. It is off by default. Data Collection is a wizard activity but you can code it. In order to code for it you need to set the com add in in OUtlook 2007 to on. It is turned on when you first run the wizard. Sort of feeling my way in the dark here are com add ins are out of my area. Also have to create XML on the fly as well. Still havnt worked that bit out yet either (<: but it is interesting. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 27/09/2006 21:33 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT Outlook Martin, In MS Access you can do: Access.Application.COMAddIns(1).connect=True To connect the first of registered COM Add-Ins. I believe in Outlook it should be: Outlook.Application.COMAddIns(1).connect=True To identify the add-in you can cycle COMAddins collection and use ProgId or Descriptin properties. Here is just debug.print cycling sample: Dim myAddIn As Office.COMAddIn For Each myAddIn In Access.Application.COMAddIns With myAddIn Debug.Print "Connected = " & .Connect; Debug.Print " , ProgId = " & .ProgId & " - "; Debug.Print .Description End With Next myAddIn To use this code you have to have a reference set to MS Office object library - I expect it should be set in MS Outlook VBA by default... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 27, 2006 11:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook How can I turn on a Com add in in outlook via code using VBA. The add in is of by default. I dont know its name by the way (<: Generics will do if anyone knows I can work it out from there. Martin (wading about in the dark in Belfast) Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Thu Sep 28 04:34:28 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 28 Sep 2006 10:34:28 +0100 Subject: [AccessD] OT Outlook References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: Thansk Shamil I have 6 add ins showing up in outlook Microsoft Access Add in for data collection (This is the one I am interested in) Microsoft Exchange Oulook add in SharePoint Addin Outlook Mobile Service VBA for Outlook SnagIt Add in (Graphic Package we use) But I think I can sort it now thats to you example Thanks and Best Wishes Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Thu 28/09/2006 09:49 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT Outlook <<< Just repeats the same add in over and over >>> Hello Martin, Does it mean that you have more than two Outlook Add-ins installed? Do you have "COM Add-ins" menu entry under "Tools" menu bar? (If not - you can put it there by using Right-Click->Customize... (it's "buried" in Tools commands)) When using Tools->COM Add-ins how many COM add-in do you see in the list? As far as I see there are only two: 1. Connected = False , ProgId = AceCnfViewer.sortie - Microsoft Office 12.0 Access Database Engine Conflict Resolver 2. Connected = False , ProgId = CnfViewer.sortie - #401 To programmatically from VBA code activate the first one this code line should be enough: Outlook.Application.COMAddIns(1).connect=True To activate AceCnfViewer.sortie add-in in the case it's not the first in the list this code can be used: Option compare text ... Dim myAddIn As Office.COMAddIn For Each myAddIn In Office.Application.COMAddIns With myAddIn If .ProgId = "CnfViewer.sortie" then .Connect = True Exit for End if End With Next myAddIn -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, September 28, 2006 12:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook Shamil Just repeats the same add in over and over Connected = False , ProgId = AceCnfViewer.sortie - Microsoft Office 12.0 Access Database Engine Conflict Resolver Connected = False , ProgId = CnfViewer.sortie - #401 Its Access 2007. What I am doing is trying to set the Data Collection Email add in in Outlook to true. It is off by default. Data Collection is a wizard activity but you can code it. In order to code for it you need to set the com add in in OUtlook 2007 to on. It is turned on when you first run the wizard. Sort of feeling my way in the dark here are com add ins are out of my area. Also have to create XML on the fly as well. Still havnt worked that bit out yet either (<: but it is interesting. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 27/09/2006 21:33 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT Outlook Martin, In MS Access you can do: Access.Application.COMAddIns(1).connect=True To connect the first of registered COM Add-Ins. I believe in Outlook it should be: Outlook.Application.COMAddIns(1).connect=True To identify the add-in you can cycle COMAddins collection and use ProgId or Descriptin properties. Here is just debug.print cycling sample: Dim myAddIn As Office.COMAddIn For Each myAddIn In Access.Application.COMAddIns With myAddIn Debug.Print "Connected = " & .Connect; Debug.Print " , ProgId = " & .ProgId & " - "; Debug.Print .Description End With Next myAddIn To use this code you have to have a reference set to MS Office object library - I expect it should be set in MS Outlook VBA by default... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, September 27, 2006 11:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Outlook How can I turn on a Com add in in outlook via code using VBA. The add in is of by default. I dont know its name by the way (<: Generics will do if anyone knows I can work it out from there. Martin (wading about in the dark in Belfast) Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Sep 28 11:08:13 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 28 Sep 2006 09:08:13 -0700 Subject: [AccessD] Moving out of MS Access? In-Reply-To: References: <000001c6e25e$cea87eb0$6401a8c0@nant> <451AD3B5.8060707@shaw.ca> Message-ID: <451BF36D.3010805@shaw.ca> Well the big problem with Sharepoint you only go through Windows authentication so someone accesses the app with a userid and password from anywhere. If someone just steals the password, your app is compromised. Easily done in a hospital setting So you set up a second tier authentication that identifies the terminal or actual user This can be done by RSA certificates in IE, USB dongles or biometric thumbprints what you use is determined by ease of use for the user. You are probably looking at prices around $10,000 to setup this tier but this can balanced off by whatever fines you might have to pay for data compromise, determined by your countries Data Protection Act. I seem to remember some continental European Banks adding this tier recently for clients using internet banking via a USB dongle Talked to my brother last night and he will send you some papers on this from Documentum (now EMC) and FileNet that cover this for Sharepoint 2003 These are the big two document management systems in use in US outside of IBM's systems but both have some hooks to Sharepoint. Martin Reid wrote: >Martin > >Can you expand on that. I am goign to start a large pilot in Sharepoint in a week or so. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly >Sent: Wed 27/09/2006 20:40 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Moving out of MS Access? > > > >With regards to SharePoint, I am hearing a lot of concerns from Senior >Records Manager about the absence of two tier authentication. I have >heard of hacks >into Sharepoint with regards to patient health care records. > >Martin Reid wrote: > > > >>Luke Chung (FMS) did a similar bit on this sort of thing. This his article is on the FMS web site/ My own point of view is that Access wil be around for many many years. They are already talking about Access 14 in some of the emails I see. >> >>I actually wrote an article for Microsoft on what happens after moving them to SQL Server >>http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/managesql.mspx >> >>At that time was a big PR push to move them to SQL Server. >> >>The people involved in Access from what I can tell have huge faith in it but I dont see them looking at it in the same way as we do as a developer platform to build real world applications. >> >>I think the future of Access is tied tightly with Microsoft SharePoint. Everythign I see is pointing that way. >> >>Martin >> >>Martin WP Reid >>Training and Assessment Unit >>Riddle Hall >>Belfast >> >>tel: 02890 974477 >> >> >>________________________________ >> >>From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov >>Sent: Wed 27/09/2006 19:00 >>To: 'Access-D' >>Subject: [AccessD] Moving out of MS Access? >> >> >> >> >>Hi All, >> >>Is this article from http://blogs.msdn.com/access/default.aspx just a cry of >>MS Access Team trying to stop the massive(?) exodus of MS Access developers >>or it shows the real picture and place of MS Access in corporate world and >>that MS Access isn't yet dead for real business tasks development ? >> >> >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > >-- > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Thu Sep 28 13:02:53 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 28 Sep 2006 19:02:53 +0100 Subject: [AccessD] Outlook and Access References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: Heres a folder "number" 00000000DED792DDC981714FBC3FD0EB94D7AB9382820000 Given the above which I am assuming to be a GUID reference to the outlook folder,. how can I find the folder name from Access. I already know which folder this is I am just trying to work this process via code. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Thu Sep 28 13:18:11 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 28 Sep 2006 19:18:11 +0100 Subject: [AccessD] XML References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: Note I didnt prefix this OT as it isnt. Its part of Access 2007 Data Collection Via Email Given the following structure and data would it be easier to use VBA to create this or simply type up the XML in an editor. In fact would you use VBA at all? I could do this in 30 seconds in an XML editor. I havnt a clue where to start with the VBA side of this. In terms of Access this is dropped into a Memo field. true true 25 0 true true false 0 true
Street AddressOne Perimeter Park South
CityBirmingham
St ateAL
ZIP Code35243
CountryUS
Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From hollisvj at pgdp.usec.com Thu Sep 28 14:13:02 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 28 Sep 2006 14:13:02 -0500 Subject: [AccessD] Select All Text in DropDown Message-ID: <703BDA18A87DFA4CB265A86F42E4178D010147FE@c2k3exchange.pgdp.corp.usec.com> I have a form with a combo box that brings up the data for the selected name in the dropdown. When the user enters, clicks, or has the focus of the combo I need it to select all the text in the field. For some reason it always goes to the beginning of the field so they can't just start typing a name to find it, they always have to scroll the list or highlight the text in the box first, then delete it or start typing after it is highlighted. They want the text in the combo from the current record to already be highlighted so they can easily find another record by typing the person's name without any extra steps. I tried this, but it only highlights the first 3 characters of the name instead of the whole name. How does it determine the length of the field and select all of it? Private Sub FindName_GotFocus() FindName.SetFocus FindName.SelLength = Len(FindName) End Sub Virginia From wdhindman at dejpolsystems.com Thu Sep 28 14:34:54 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 28 Sep 2006 15:34:54 -0400 Subject: [AccessD] Select All Text in DropDown References: <703BDA18A87DFA4CB265A86F42E4178D010147FE@c2k3exchange.pgdp.corp.usec.com> Message-ID: <018d01c6e335$2d6fc7b0$153ce944@50NM721> ...tools/options/keyboard/select entire field? William Hindman ----- Original Message ----- From: "Hollis, Virginia" To: Sent: Thursday, September 28, 2006 3:13 PM Subject: [AccessD] Select All Text in DropDown >I have a form with a combo box that brings up the data for the selected > name in the dropdown. When the user enters, clicks, or has the focus of > the combo I need it to select all the text in the field. For some reason > it always goes to the beginning of the field so they can't just start > typing a name to find it, they always have to scroll the list or > highlight the text in the box first, then delete it or start typing > after it is highlighted. They want the text in the combo from the > current record to already be highlighted so they can easily find another > record by typing the person's name without any extra steps. > > > > I tried this, but it only highlights the first 3 characters of the name > instead of the whole name. How does it determine the length of the field > and select all of it? > > > > Private Sub FindName_GotFocus() > > > > FindName.SetFocus > > FindName.SelLength = Len(FindName) > > > > End Sub > > > > Virginia > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mwp.reid at qub.ac.uk Thu Sep 28 14:52:32 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 28 Sep 2006 20:52:32 +0100 Subject: [AccessD] GUID PK References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: Havnt needed this much help in some time I am doing an update to a system table. The table has a PK of ReplicationID Data type number. The insert includes some of the XML stuff I posted earlier. The new issue is when you run the wizard the insert happens by magic including the GUID PK. How can I create this GUID via CODE? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DElam at jenkens.com Thu Sep 28 15:22:38 2006 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 28 Sep 2006 15:22:38 -0500 Subject: [AccessD] Access Security Problems Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DE6AE@natexch.jenkens.com> I have a database that I did not create that is secured with the standard Access Security. Yesterday, I was asked to add a user to the security and could not get or add data to the accounts. When I try to open it I get errors saying Record(s) cannot be read; no read permission on MSysAccounts. I get this 3 or 4 times and then it opens to the security window, but it is blank and will not let me add data. I am guessing I would need to rebuild the security, and I actually took the opportunity to get the database owners to agree to turn the security off in favor of a few measures to prevent accidental intrusions which is really all they needed. I imported the objects into a new database and thought I had the security purged, but unfortunately the forms are secured just enough to give errors when adding records. With the security messed up, I cannot even look at the permissions, much less change them. I know the login I am using has full permissions, but the program is not allowing them. Anyone know a quick simple way to get rid of this? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From shamil at users.mns.ru Thu Sep 28 15:37:37 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 29 Sep 2006 00:37:37 +0400 Subject: [AccessD] GUID PK In-Reply-To: Message-ID: <000d01c6e33d$ef9fb810$6401a8c0@nant> Martin, The code you look for should be in AccessD archives - Marty posted it here quite some time ago as far as I can remember. Other sources: http://www.freevbcode.com/ShowCode.Asp?ID=21 http://www.vbaccelerator.com/codelib/tlb/guid.htm there should be many others... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, September 28, 2006 11:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] GUID PK Havnt needed this much help in some time I am doing an update to a system table. The table has a PK of ReplicationID Data type number. The insert includes some of the XML stuff I posted earlier. The new issue is when you run the wizard the insert happens by magic including the GUID PK. How can I create this GUID via CODE? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Thu Sep 28 16:22:04 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 28 Sep 2006 16:22:04 -0500 Subject: [AccessD] Access Security Problems Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113E017@MARLOW_MAIN2.marlow.com> The security should no longer be there if you imported them into a new database. When you imported them, was it done with the plain old system.mdw and the Admin user? Drew -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Thursday, September 28, 2006 3:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access Security Problems I have a database that I did not create that is secured with the standard Access Security. Yesterday, I was asked to add a user to the security and could not get or add data to the accounts. When I try to open it I get errors saying Record(s) cannot be read; no read permission on MSysAccounts. I get this 3 or 4 times and then it opens to the security window, but it is blank and will not let me add data. I am guessing I would need to rebuild the security, and I actually took the opportunity to get the database owners to agree to turn the security off in favor of a few measures to prevent accidental intrusions which is really all they needed. I imported the objects into a new database and thought I had the security purged, but unfortunately the forms are secured just enough to give errors when adding records. With the security messed up, I cannot even look at the permissions, much less change them. I know the login I am using has full permissions, but the program is not allowing them. Anyone know a quick simple way to get rid of this? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Thu Sep 28 18:49:31 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 28 Sep 2006 18:49:31 -0500 Subject: [AccessD] OT: Friday Humor Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDFEB@corp-es01.fleetpride.com> Subject: Classified Ad Found in Newspaper > Date: Thu, 28 Sep 2006 08:39:06 -0400 > > $10,000 > 06' Suzuki GSXR 1000 > Farmington, UT 84025 - Aug 7, 2006 > > 2006 Suzuki 1000. This bike is perfect! It has 1000 miles and has had > its 500 mile dealer service. (Expensive) It's been adult ridden, > allwheels have always been on the ground. I use it as a > cruiser/commuter. I'm selling it because it was purchased without > proper consent of a Loving wife. Apparently "Do whatever the hell > you want" Doesn't mean what I thought. > > Call Steve...(801)867-8292 > *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From dwaters at usinternet.com Thu Sep 28 19:01:45 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 28 Sep 2006 19:01:45 -0500 Subject: [AccessD] OT: Friday Humor In-Reply-To: <2535494.1159487622542.JavaMail.root@sniper11> Message-ID: <003e01c6e35a$747bccb0$0200a8c0@danwaters> Any AccessD folks near Farmington Utah? C'mon! Of course any statement that starts, "Do Whatever.." means, "You better not..."! He must have skipped pre-marriage class! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 28, 2006 6:50 PM To: 'Accessd (E-mail) Subject: [AccessD] OT: Friday Humor Subject: Classified Ad Found in Newspaper > Date: Thu, 28 Sep 2006 08:39:06 -0400 > > $10,000 > 06' Suzuki GSXR 1000 > Farmington, UT 84025 - Aug 7, 2006 > > 2006 Suzuki 1000. This bike is perfect! It has 1000 miles and has had > its 500 mile dealer service. (Expensive) It's been adult ridden, > allwheels have always been on the ground. I use it as a > cruiser/commuter. I'm selling it because it was purchased without > proper consent of a Loving wife. Apparently "Do whatever the hell > you want" Doesn't mean what I thought. > > Call Steve...(801)867-8292 > *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Sep 28 21:33:49 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 28 Sep 2006 19:33:49 -0700 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: <6.2.3.4.2.20060921073644.022c78b0@pop3.highstream.net> References: <6.2.3.4.2.20060921073644.022c78b0@pop3.highstream.net> Message-ID: <451C860D.5030203@shaw.ca> For those of you wanting to footle around with Access and MS Virtual Earth Here is some sample code, it also dumps the html code to an html file By clicking on map you display Lat/Long position of cursor Option Compare Database Option Explicit Function testVirtualEarthMap() '------------------ 'display Virtual Earth at a fixed LatLong ' then click on map to display Lat/Long position of cursor 'see these for info: 'http://dev.live.com/virtualearth/sdk/ 'http://www.ftponline.com/special/web20/pvarholasp/default.aspx Dim objExplorer As Object Dim objDocument As Object Dim strHTML As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" objExplorer.Toolbar = 1 ' 0= off objExplorer.StatusBar = 1 '0 =off objExplorer.Width = 800 objExplorer.Height = 870 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open 'create html string and dump to a test file strHTML = "" strHTML = strHTML & createhtml WriteFile "c:\gis\test.html", strHTML 'objDocument.Writeln strHTML objDocument.Write strHTML objExplorer.Refresh ' ??This has to be done because of http://local.live.com/veapi.ashx 'objDocument.Close 'stall here Do While (objExplorer.Busy) Loop 'MsgBox "finished" 'Set objExplorer = Nothing 'Set objDocument = Nothing End Function Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML or html String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub Function createhtml() As String Dim strHTML As String strHTML = "" strHTML = strHTML & "Virtual Earth Map" strHTML = strHTML & "" 'When your page has referenced the map control, set up the call to display a default map by completing a LoadMap ( ) method call: strHTML = strHTML & vbCrLf & " " ' strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" ' strhtml = strhtml & vbCrLf & "// -->" 'Last, you display the map: strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "
" strHTML = strHTML & vbCrLf & " right or left click map for latitude longitude position " strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" WriteFile "c:\gis\test.html", strHTML createhtml = strHTML End Function -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Thu Sep 28 23:55:24 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 28 Sep 2006 21:55:24 -0700 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: <451C860D.5030203@shaw.ca> Message-ID: <0J6C005TJ8B72G20@l-daemon> Impressive Marty... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, September 28, 2006 7:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db For those of you wanting to footle around with Access and MS Virtual Earth Here is some sample code, it also dumps the html code to an html file By clicking on map you display Lat/Long position of cursor Option Compare Database Option Explicit Function testVirtualEarthMap() '------------------ 'display Virtual Earth at a fixed LatLong ' then click on map to display Lat/Long position of cursor 'see these for info: 'http://dev.live.com/virtualearth/sdk/ 'http://www.ftponline.com/special/web20/pvarholasp/default.aspx Dim objExplorer As Object Dim objDocument As Object Dim strHTML As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" objExplorer.Toolbar = 1 ' 0= off objExplorer.StatusBar = 1 '0 =off objExplorer.Width = 800 objExplorer.Height = 870 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open 'create html string and dump to a test file strHTML = "" strHTML = strHTML & createhtml WriteFile "c:\gis\test.html", strHTML 'objDocument.Writeln strHTML objDocument.Write strHTML objExplorer.Refresh ' ??This has to be done because of http://local.live.com/veapi.ashx 'objDocument.Close 'stall here Do While (objExplorer.Busy) Loop 'MsgBox "finished" 'Set objExplorer = Nothing 'Set objDocument = Nothing End Function Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML or html String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub Function createhtml() As String Dim strHTML As String strHTML = "" strHTML = strHTML & "Virtual Earth Map" strHTML = strHTML & "" 'When your page has referenced the map control, set up the call to display a default map by completing a LoadMap ( ) method call: strHTML = strHTML & vbCrLf & " " ' strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" ' strhtml = strhtml & vbCrLf & "// -->" 'Last, you display the map: strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "
" strHTML = strHTML & vbCrLf & " right or left click map for latitude longitude position " strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" WriteFile "c:\gis\test.html", strHTML createhtml = strHTML End Function -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Sep 29 00:25:40 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 28 Sep 2006 22:25:40 -0700 Subject: [AccessD] Access Security Problems In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DE6AE@natexch.jenkens.com> References: <7B1961ED924D1A459E378C9B1BB22B4C068DE6AE@natexch.jenkens.com> Message-ID: <451CAE54.2090206@shaw.ca> Just use the LoadFromText and SaveAsText commands to save the forms as text files and reLoad them in new mdb, that will definitely remove the security. To do the whole slew just use this code to place form text files in a temp directory. I have the reverse code somewhere. Also you could try running jetcomp.exe vs a copy of the mdw file just in case it is corrupted it is just another mdb file and run against the copy 'call as Save Objects("c:\temp\aob") Public Function SaveObjects(strPath As String) 'needs directory c:\temp\aob to be created to save text files ' or mkdir "c:\temp\aob Dim strName As String Dim objCollection As Object Dim aob As AccessObject 'check whether code ProjectType running in acMDB or acADP 'this affects what objects can be saved to text files Dim lmdbtype As Long lmdbtype = CurrentProject.ProjectType Debug.Print lmdbtype & " adp type" Select Case lmdbtype Case acMDB Set objCollection = CurrentProject.AllForms saveallobs objCollection, aob, strPath Set objCollection = CurrentProject.AllReports saveallobs objCollection, aob, strPath Case acADP Debug.Print "ADP" Case Else MsgBox "type not found" & lmdbtype End Select End Function Sub saveallobs(objCollection As Object, aob As AccessObject, _ strPath As String) Dim strMDB As String Dim strSplitPath As String For Each aob In objCollection Debug.Print aob.Type; aob.Name; " " & aob.DateModified Next aob For Each aob In objCollection strSplitPath = DescribeTempPath(strPath, aob.Type) SaveAsText aob.Type, aob.Name, strSplitPath & aob.Name & ".txt" End If Next aob End Sub Function DescribeTempPath(path As String, lobtype As Long) As String Dim strobtype As String Select Case lobtype Case acTable strobtype = "Tables" Case acQuery strobtype = "Queries" Case acModule strobtype = "Modules" Case acMacro strobtype = "Macros" Case acForm strobtype = "Forms" Case acReport strobtype = "Reports" Case acDataAccessPage strobtype = "DataAccessPages" Case Else strobtype = "Unknown" End Select Elam, Debbie wrote: >I have a database that I did not create that is secured with the standard >Access Security. Yesterday, I was asked to add a user to the security and >could not get or add data to the accounts. When I try to open it I get >errors saying Record(s) cannot be read; no read permission on MSysAccounts. >I get this 3 or 4 times and then it opens to the security window, but it is >blank and will not let me add data. > >I am guessing I would need to rebuild the security, and I actually took the >opportunity to get the database owners to agree to turn the security off in >favor of a few measures to prevent accidental intrusions which is really all >they needed. I imported the objects into a new database and thought I had >the security purged, but unfortunately the forms are secured just enough to >give errors when adding records. With the security messed up, I cannot even >look at the permissions, much less change them. I know the login I am using >has full permissions, but the program is not allowing them. Anyone know a >quick simple way to get rid of this? > >Debbie >- JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject >to the Attorney-Client Privilege, (2) an attorney work product, or (3) >strictly confidential. If you are not the intended recipient of this >message, you may not disclose, print, copy or disseminate this information. >If you have received this in error, please reply and notify the sender >(only) and delete the message. Unauthorized interception of this e-mail is a >violation of federal criminal law. >This communication does not reflect an intention by the sender or the >sender's client or principal to conduct a transaction or make any agreement >by electronic means. Nothing contained in this message or in any attachment >shall satisfy the requirements for a writing, and nothing contained herein >shall constitute a contract or electronic signature under the Electronic >Signatures in Global and National Commerce Act, any version of the Uniform >Electronic Transactions Act or any other statute governing electronic >transactions. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Sep 29 00:34:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 28 Sep 2006 22:34:35 -0700 Subject: [AccessD] GUID PK In-Reply-To: References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: <451CB06B.6040306@shaw.ca> Here is list of GUID manipulation and creation routines You probably want the canonical string guid. MS GUID routines are not totaly random I think the13'th digit is a 4 to indicate MS generated http://www.trigeminal.com/code/guids.bas Martin Reid wrote: >Havnt needed this much help in some time > >I am doing an update to a system table. The table has a PK of ReplicationID Data type number. > >The insert includes some of the XML stuff I posted earlier. The new issue is when you run the wizard the insert happens by magic including the GUID PK. > >How can I create this GUID via CODE? > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Fri Sep 29 00:49:12 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 29 Sep 2006 01:49:12 -0400 Subject: [AccessD] Access Security Problems References: <7B1961ED924D1A459E378C9B1BB22B4C068DE6AE@natexch.jenkens.com> <451CAE54.2090206@shaw.ca> Message-ID: <006501c6e38a$fe179c30$153ce944@50NM721> http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='EATBloatV2.mdb' ...Max Sherman has the whole to/from text routine put together in this sample ...works well. William Hindman ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, September 29, 2006 1:25 AM Subject: Re: [AccessD] Access Security Problems > Just use the LoadFromText and SaveAsText commands to save the forms as > text files > and reLoad them in new mdb, that will definitely remove the security. > To do the whole slew just use this code to place form text files in a > temp directory. > I have the reverse code somewhere. > > Also you could try running jetcomp.exe vs a copy of the mdw file > just in case it is corrupted it is just another mdb file and run against > the copy > > > 'call as Save Objects("c:\temp\aob") > > Public Function SaveObjects(strPath As String) > 'needs directory c:\temp\aob to be created to save text files > ' or mkdir "c:\temp\aob > > Dim strName As String > Dim objCollection As Object > Dim aob As AccessObject > 'check whether code ProjectType running in acMDB or acADP > 'this affects what objects can be saved to text files > Dim lmdbtype As Long > lmdbtype = CurrentProject.ProjectType > Debug.Print lmdbtype & " adp type" > Select Case lmdbtype > Case acMDB > > Set objCollection = CurrentProject.AllForms > saveallobs objCollection, aob, strPath > Set objCollection = CurrentProject.AllReports > saveallobs objCollection, aob, strPath > > Case acADP > Debug.Print "ADP" > > Case Else > MsgBox "type not found" & lmdbtype > End Select > End Function > > Sub saveallobs(objCollection As Object, aob As AccessObject, _ > strPath As String) > Dim strMDB As String > Dim strSplitPath As String > For Each aob In objCollection > Debug.Print aob.Type; aob.Name; " " & aob.DateModified > Next aob > > For Each aob In objCollection > strSplitPath = DescribeTempPath(strPath, aob.Type) > SaveAsText aob.Type, aob.Name, strSplitPath & aob.Name & ".txt" > End If > Next aob > > End Sub > Function DescribeTempPath(path As String, lobtype As Long) As String > Dim strobtype As String > Select Case lobtype > Case acTable > strobtype = "Tables" > Case acQuery > strobtype = "Queries" > Case acModule > strobtype = "Modules" > Case acMacro > strobtype = "Macros" > Case acForm > strobtype = "Forms" > Case acReport > strobtype = "Reports" > Case acDataAccessPage > strobtype = "DataAccessPages" > Case Else > strobtype = "Unknown" > End Select > > Elam, Debbie wrote: > >>I have a database that I did not create that is secured with the standard >>Access Security. Yesterday, I was asked to add a user to the security and >>could not get or add data to the accounts. When I try to open it I get >>errors saying Record(s) cannot be read; no read permission on >>MSysAccounts. >>I get this 3 or 4 times and then it opens to the security window, but it >>is >>blank and will not let me add data. >> >>I am guessing I would need to rebuild the security, and I actually took >>the >>opportunity to get the database owners to agree to turn the security off >>in >>favor of a few measures to prevent accidental intrusions which is really >>all >>they needed. I imported the objects into a new database and thought I had >>the security purged, but unfortunately the forms are secured just enough >>to >>give errors when adding records. With the security messed up, I cannot >>even >>look at the permissions, much less change them. I know the login I am >>using >>has full permissions, but the program is not allowing them. Anyone know a >>quick simple way to get rid of this? >> >>Debbie >>- JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) >>subject >>to the Attorney-Client Privilege, (2) an attorney work product, or (3) >>strictly confidential. If you are not the intended recipient of this >>message, you may not disclose, print, copy or disseminate this >>information. >>If you have received this in error, please reply and notify the sender >>(only) and delete the message. Unauthorized interception of this e-mail is >>a >>violation of federal criminal law. >>This communication does not reflect an intention by the sender or the >>sender's client or principal to conduct a transaction or make any >>agreement >>by electronic means. Nothing contained in this message or in any >>attachment >>shall satisfy the requirements for a writing, and nothing contained herein >>shall constitute a contract or electronic signature under the Electronic >>Signatures in Global and National Commerce Act, any version of the Uniform >>Electronic Transactions Act or any other statute governing electronic >>transactions. >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From david.gray at tpg.com.au Fri Sep 29 03:46:45 2006 From: david.gray at tpg.com.au (David Gray) Date: Fri, 29 Sep 2006 18:46:45 +1000 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: <451C860D.5030203@shaw.ca> Message-ID: Really cool Marty! Thanks! What else can you do? Do you know how to store pushpins in a table? David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, 29 September 2006 12:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db For those of you wanting to footle around with Access and MS Virtual Earth Here is some sample code, it also dumps the html code to an html file By clicking on map you display Lat/Long position of cursor Option Compare Database Option Explicit Function testVirtualEarthMap() '------------------ 'display Virtual Earth at a fixed LatLong ' then click on map to display Lat/Long position of cursor 'see these for info: 'http://dev.live.com/virtualearth/sdk/ 'http://www.ftponline.com/special/web20/pvarholasp/default.aspx Dim objExplorer As Object Dim objDocument As Object Dim strHTML As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" objExplorer.Toolbar = 1 ' 0= off objExplorer.StatusBar = 1 '0 =off objExplorer.Width = 800 objExplorer.Height = 870 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open 'create html string and dump to a test file strHTML = "" strHTML = strHTML & createhtml WriteFile "c:\gis\test.html", strHTML 'objDocument.Writeln strHTML objDocument.Write strHTML objExplorer.Refresh ' ??This has to be done because of http://local.live.com/veapi.ashx 'objDocument.Close 'stall here Do While (objExplorer.Busy) Loop 'MsgBox "finished" 'Set objExplorer = Nothing 'Set objDocument = Nothing End Function Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML or html String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub Function createhtml() As String Dim strHTML As String strHTML = "" strHTML = strHTML & "Virtual Earth Map" strHTML = strHTML & "" 'When your page has referenced the map control, set up the call to display a default map by completing a LoadMap ( ) method call: strHTML = strHTML & vbCrLf & " " ' strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" ' strhtml = strhtml & vbCrLf & "// -->" 'Last, you display the map: strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "
" strHTML = strHTML & vbCrLf & " right or left click map for latitude longitude position " strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" WriteFile "c:\gis\test.html", strHTML createhtml = strHTML End Function -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 29 06:36:34 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Sep 2006 13:36:34 +0200 Subject: [AccessD] GUID PK Message-ID: Hi Martin I guess you need a GUID in its string representation. We use this function which (or similar) is quite common. Public Type GUID Data1 As Long Data2 As Integer Data3 As Integer Data4(0 To 7) As Byte End Type Private Declare Function CoCreateGuid Lib "ole32.dll" ( _ ByRef pguid As GUID) As Long Private Declare Function StringFromGUID2 Lib "ole32.dll" ( _ ByRef rguid As Any, _ ByVal lpstrClsId As Long, _ ByVal cbMax As Long) As Long Public Function GetGUIDString() As String ' Create a GUID and return its string representation. ' ' 2002-12-15. Cactus Data ApS, CPH. ' Length of GUID string per definition. Const clngGUID As Long = 38 ' Length of buffer with added space for zero terminator. Const clngBuffer As Long = clngGUID + 1 Dim udtGuid As GUID Dim strGUID As String * clngGUID Dim abytGUID() As Byte ' Dim byte array. abytGUID() = String(clngBuffer, vbNullChar) ' Create GUID. If CoCreateGuid(udtGuid) = 0 Then ' GUID was successfully created. If StringFromGUID2(udtGuid, VarPtr(abytGUID(0)), clngBuffer) = clngBuffer Then ' GUID was successfully copied into byte array abytGUID in Unicode. ' Convert byte array to Ansi GUID string stripping zero terminator. strGUID = abytGUID End If End If GetGUIDString = strGUID End Function As Marty tells, those GUIDs will always contain 4 at position 13. You may set off from the crowd by replacing this char with something else. /gustav >>> mwp.reid at qub.ac.uk 28-09-2006 21:52:32 >>> Havnt needed this much help in some time I am doing an update to a system table. The table has a PK of ReplicationID Data type number. The insert includes some of the XML stuff I posted earlier. The new issue is when you run the wizard the insert happens by magic including the GUID PK. How can I create this GUID via CODE? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From hollisvj at pgdp.usec.com Fri Sep 29 07:57:24 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 29 Sep 2006 07:57:24 -0500 Subject: [AccessD] Select All Text in DropDown Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0101481C@c2k3exchange.pgdp.corp.usec.com> No, wish it was that easy..... that is already selected. When they click or enter the combo box, it does not select the existing text. Shouldn't the SelLength or one of the Sel do it? But it isn't.... Virginia ________________________________ ...tools/options/keyboard/select entire field? William Hindman ________________________________ From: Hollis, Virginia Sent: Thursday, September 28, 2006 2:13 PM To: 'accessD at databaseadvisors.com' Subject: Select All Text in DropDown I have a form with a combo box that brings up the data for the selected name in the dropdown. When the user enters, clicks, or has the focus of the combo I need it to select all the text in the field. For some reason it always goes to the beginning of the field so they can't just start typing a name to find it, they always have to scroll the list or highlight the text in the box first, then delete it or start typing after it is highlighted. They want the text in the combo from the current record to already be highlighted so they can easily find another record by typing the person's name without any extra steps. I tried this, but it only highlights the first 3 characters of the name instead of the whole name. How does it determine the length of the field and select all of it? Private Sub FindName_GotFocus() FindName.SetFocus FindName.SelLength = Len(FindName) End Sub Virginia From Gustav at cactus.dk Fri Sep 29 08:20:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Sep 2006 15:20:08 +0200 Subject: [AccessD] Select All Text in DropDown Message-ID: Hi Virginia When tabbing into the combo, all the text should be selected. If clicking, it should not, but the cursor should be positioned at the click point - if the cursor moves to first position, it sounds like you have some update or refresh code running at the OnClick event. /gustav >>> hollisvj at pgdp.usec.com 29-09-2006 14:57:24 >>> No, wish it was that easy..... that is already selected. When they click or enter the combo box, it does not select the existing text. Shouldn't the SelLength or one of the Sel do it? But it isn't.... Virginia ________________________________ ...tools/options/keyboard/select entire field? William Hindman ________________________________ From: Hollis, Virginia Sent: Thursday, September 28, 2006 2:13 PM To: 'accessD at databaseadvisors.com' Subject: Select All Text in DropDown I have a form with a combo box that brings up the data for the selected name in the dropdown. When the user enters, clicks, or has the focus of the combo I need it to select all the text in the field. For some reason it always goes to the beginning of the field so they can't just start typing a name to find it, they always have to scroll the list or highlight the text in the box first, then delete it or start typing after it is highlighted. They want the text in the combo from the current record to already be highlighted so they can easily find another record by typing the person's name without any extra steps. I tried this, but it only highlights the first 3 characters of the name instead of the whole name. How does it determine the length of the field and select all of it? Private Sub FindName_GotFocus() FindName.SetFocus FindName.SelLength = Len(FindName) End Sub From Gustav at cactus.dk Fri Sep 29 09:47:46 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Sep 2006 16:47:46 +0200 Subject: [AccessD] Microsoft Office System Developers Conference 2006 Message-ID: Hi all Noticed that raw recordings of the sessions are available for download: http://msdn.microsoft.com/office/learn/conferences/default.aspx Has anyone watched a video? Would it be worth the time for download (hecto-MB) and watching (most are about 70 minutes)? /gustav From bill_Patten at earthlink.net Fri Sep 29 10:17:11 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Fri, 29 Sep 2006 08:17:11 -0700 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db References: Message-ID: <000e01c6e3da$5780eac0$0202fea9@BPCS> David, You might check out http://www.viavirtualearth.com/VVE/Dashboard/Default.ashx and MS Inteteractive SDK at http://dev.live.com/virtualearth/sdk/ Don't know if you can tie it into Access but maybe with some of Marty's code you could. Bill ----- Original Message ----- From: "David Gray" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 29, 2006 1:46 AM Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db Really cool Marty! Thanks! What else can you do? Do you know how to store pushpins in a table? David Gray 96 Springacre Rd Thornlands QLD Yahoo ID: flock_it_software -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, 29 September 2006 12:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db For those of you wanting to footle around with Access and MS Virtual Earth Here is some sample code, it also dumps the html code to an html file By clicking on map you display Lat/Long position of cursor Option Compare Database Option Explicit Function testVirtualEarthMap() '------------------ 'display Virtual Earth at a fixed LatLong ' then click on map to display Lat/Long position of cursor 'see these for info: 'http://dev.live.com/virtualearth/sdk/ 'http://www.ftponline.com/special/web20/pvarholasp/default.aspx Dim objExplorer As Object Dim objDocument As Object Dim strHTML As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" objExplorer.Toolbar = 1 ' 0= off objExplorer.StatusBar = 1 '0 =off objExplorer.Width = 800 objExplorer.Height = 870 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open 'create html string and dump to a test file strHTML = "" strHTML = strHTML & createhtml WriteFile "c:\gis\test.html", strHTML 'objDocument.Writeln strHTML objDocument.Write strHTML objExplorer.Refresh ' ??This has to be done because of http://local.live.com/veapi.ashx 'objDocument.Close 'stall here Do While (objExplorer.Busy) Loop 'MsgBox "finished" 'Set objExplorer = Nothing 'Set objDocument = Nothing End Function Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML or html String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub Function createhtml() As String Dim strHTML As String strHTML = "" strHTML = strHTML & "Virtual Earth Map" strHTML = strHTML & "" 'When your page has referenced the map control, set up the call to display a default map by completing a LoadMap ( ) method call: strHTML = strHTML & vbCrLf & " " ' strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" ' strhtml = strhtml & vbCrLf & "// -->" 'Last, you display the map: strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "
" strHTML = strHTML & vbCrLf & " right or left click map for latitude longitude position " strHTML = strHTML & vbCrLf & "" strHTML = strHTML & vbCrLf & "" WriteFile "c:\gis\test.html", strHTML createhtml = strHTML End Function -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Sep 29 10:38:16 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 29 Sep 2006 19:38:16 +0400 Subject: [AccessD] DB2 and Ruby on Rails (was: Data interface The best way) In-Reply-To: Message-ID: <000001c6e3dd$4a51a4e0$6401a8c0@nant> Hi Gustav, Yes, Ruby looks interesting - I have got a book about it (although no time to read it carefully ...) VB.NET could migrate in the Ruby direction with time - my 0.02RUR bet... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, August 22, 2006 5:11 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DB2 and Ruby on Rails (was: Data interface The bestway) Hi Shamil, Ken et al Just noticed this link to a free Starter Toolkit for DB2 on Rails: http://alphaworks.ibm.com/tech/db2onrails Starter Toolkit for DB2? on Rails is a conveniently-packaged set of products and technologies that enables the quick creation of a configuration for building DB2 Web applications using Ruby on Rails technology. Also note the free DB2 Express-C database engine: http://www-306.ibm.com/software/data/db2/udb/db2express/download.html /gustav >>> shamil at users.mns.ru 20-10-2005 00:02:47 >>> <<< Ruby on Rails is the prime example. >>> Ken, Believe or not but just yesterday I have bookmarked Ruby's main Web site: http://www.ruby-lang.org/en/ for investigations when (if ever) I will have free time. Yes, I have heard about Ruby or Rails and I also plan to give it a try. Ruby looks like being the most advanced modern OO language - it has amazing things like modifying class definition on-the-fly so it may happen a running application will have object instances of the same class with different call interfaces. I still to realize for what real-life applications such flexibility is needed... > Model-View-Controller model. Ruby on Rails is the prime example. Well, MS Avalon(Windows Presentation Foundation) has this model as one of its key concepts. And my own rather naive that times (1998) but so true as far as I see now VBA/VB6-programming concept I called "DEEP-object concept" (http://www.smsconsulting.spb.ru/shamil_s/articles/deepcnpt.htm) was partially about Model-View-Controller model partially about what is called "low coupling" and "high cohesion" OOP concepts and related stuff.(I wasn't aware about that concepts that times, stupid me) It was developed later into several proprietary commercial frameworks - so it was never published. (Well, I did give it a try to develop open source very advanced VBA framework using MS Access 2000 summer 1999 but because it was a programming on the edge and because MS Access 97/2000 have "termination bug", which didn't have stable workaround it didn't work and I deleted/lost all the code I developed that times. Stupid me again. In MS Access XP/2003 the "termination bug" was finally fixed.) Well known here in AccessD VBA framework based on these concepts is John Colby's framework of course. > Since I have far from a deep understanding of MVC IMO it would have better called Model View Dispatcher model (or Model Dispatcher View). Or I don't understand English well to feel all the nuances or certain words - for me Controller is something that controls and Dispatcher is something that dispatches - and dispatching IMO implies no strict control at all and less coupling between Model and View. And in MVC model Controller's role is just to dispatch messages (calls) from View to Model or callbacks(events) from Model to View(s) - it doesn't control anything... Thank you for the links on Django and TurboGears but it looks like I will have time for them "in my next life only"... Shamil ----- Original Message ----- From: "Ken Ismert" To: "Access Developers discussion and problem solving" Sent: Wednesday, October 19, 2005 11:26 PM Subject: Re: [AccessD] Data interface The best way > > Shamil, > > >As for "an object design down to the lowest level" - > >this is still questionable here how it should be done - > >and it's getting the more questionable what this design > >should be the more I'm getting into the modern methods > >of OOP&D... > > Theoretical questions aside, the notable object-data systems doing > useful things now are the open-source web frameworks using the > Model-View-Controller model. Ruby on Rails is the prime example. > > Since I have far from a deep understanding of MVC, I will just point out > that the data objects are modeled in code, and changes in the data > objects are reflected to the table structure of the underlying database. > > > One challenge that future OO DBMS projects will have is equalling or > bettering the ease-of-use of these MVC frameworks. One thing is certain: > they'll never beat the price. > > Ruby on Rails > http://www.rubyonrails.org/ > > Django > http://www.djangoproject.com/ > > TurboGears > http://www.turbogears.org/ > > Ruby on Rails > Model-View-Controller Article > http://en.wikipedia.org/wiki/Ruby_On_Rails > > -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Sep 29 10:46:09 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 29 Sep 2006 15:46:09 +0000 Subject: [AccessD] Select All Text in DropDown In-Reply-To: Message-ID: Sounds to me like the row source has mor than 1 column(ID,Description). When you use LEN of that field...it is using the length of your bound column. I tried the following but it only worked when I used a breakpoint and stepped thru the code. Not sure why...but does show why your LEN is giving you the wrong results...also I used the code ONENTER not click. Hope it helps, Mark A. Matte Combo4.SetFocus Dim test test = Len(Combo4.Text) Combo4.SelLength = test >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Select All Text in DropDown >Date: Fri, 29 Sep 2006 15:20:08 +0200 > >Hi Virginia > >When tabbing into the combo, all the text should be selected. If clicking, >it should not, but the cursor should be positioned at the click point - if >the cursor moves to first position, it sounds like you have some update or >refresh code running at the OnClick event. > >/gustav > > >>> hollisvj at pgdp.usec.com 29-09-2006 14:57:24 >>> >No, wish it was that easy..... that is already selected. When they click >or enter the combo box, it does not select the existing text. Shouldn't >the SelLength or one of the Sel do it? But it isn't.... > > > >Virginia > >________________________________ > > >...tools/options/keyboard/select entire field? > >William Hindman > >________________________________ > > >From: Hollis, Virginia >Sent: Thursday, September 28, 2006 2:13 PM >To: 'accessD at databaseadvisors.com' >Subject: Select All Text in DropDown > > > >I have a form with a combo box that brings up the data for the selected >name in the dropdown. When the user enters, clicks, or has the focus of >the combo I need it to select all the text in the field. For some reason >it always goes to the beginning of the field so they can't just start >typing a name to find it, they always have to scroll the list or >highlight the text in the box first, then delete it or start typing >after it is highlighted. They want the text in the combo from the >current record to already be highlighted so they can easily find another >record by typing the person's name without any extra steps. > > > >I tried this, but it only highlights the first 3 characters of the name >instead of the whole name. How does it determine the length of the field >and select all of it? > > > >Private Sub FindName_GotFocus() > > FindName.SetFocus > FindName.SelLength = Len(FindName) > >End Sub > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 29 10:47:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 29 Sep 2006 17:47:03 +0200 Subject: [AccessD] AJAX/Atlas: Rich Internet Applications (RIA) (was: Switching to VB.net) Message-ID: Thanks Mary, I hadn't heard of that. Looks promising. Note that roadshows for developers may be arranged in a city near you, and that a little confusion about the name exists: ASP.NET 2.0 AJAX (formerly Atlas) /gustav >>> martyconnelly at shaw.ca 26-09-2006 19:49:29 >>> There is ATLAS which is AJAX controls and javascript framework and ASP.Net ontop of Net 2.0 framework, works cross browser. http://atlas.asp.net/default.aspx?tabid=47 Charlotte Foust wrote: >AJAX does the same thing. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, September 26, 2006 6:36 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Rich Internet Applications (RIA) (was: >Switchingto VB.net) > >I briefly looked at AJAX last week, and ended up finding a program >called ThinWire. This program, written in JAVA and still in beta, has a >claim that it can have a GUI just like a Client-Server app, but works in >a web browser. > > >Perhaps the next .net framework is headed in that direction. It would >make sense . . . > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Switching to VB.net > >You expect me to REMEMBER?? > >Atlas/AJAX are impressive. There are new interactive designers coming. >I haven't had time to even review the DVD they gave us because we're >trying to get a beta out by Thursday, so don't expect coherence from me >this week! There are 4 developers madly scrambling to make things work >the way they're specified TODAY (never mind how they were specified >originally or even yesterday) and a fun time is being had by all. > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Monday, September 25, 2006 3:26 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Switching to VB.net > >What are the 'nifty new capabilities'? > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >Foust >Sent: Monday, September 25, 2006 4:10 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >Version 3.0 of the Framework is in beta, indeed and will be released ... >That was as far as they committed. LOL. I recently saw it demonstrated >and fell madly in love with some of the nifty new capabilities. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael >Maddison >Sent: Friday, September 22, 2006 8:13 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Switching to VB.net > >I was forced to go the C# route., however Vb.net or C#, the languages >are pretty irrelevent I think. >As others have said there are just soooo many damn options. >You can easily find yourself endlessly refactoring - but maybe its just >me...lol. >The framework is enormous, and getting bigger. >I believe v3 is in beta... > >What I found helpful was the Nettiers templates (free) >http://www.nettiers.com/ which you use with CodeSmith (30 day trial) >http://codesmithtools.com/ and the MS Application blocks (free) >http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4 >e25-94e2-91be63527327 > >JC, you will love this stuff. > >I'm just hoping none of my code ends up here... >http://thedailywtf.com/Default.aspx > >cheers > >Michael M From martyconnelly at shaw.ca Fri Sep 29 11:17:39 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Sep 2006 09:17:39 -0700 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: <0J6C005TJ8B72G20@l-daemon> References: <0J6C005TJ8B72G20@l-daemon> Message-ID: <451D4723.3050709@shaw.ca> I tried this originally a while back by creating an html file and it works okay by right clicking on the html file and bringing up in IE but I couldn't get it to work directly in an IE document with a Document.Write it would just hang. So I stuck in a refresh and it worked, must have something to do with a a redirect behind the scenes to another site to obtain the .js control. If you view the html source without the refresh command some how it adds another line of html code at bottom for another .js file. I suppose you can download the .js control to your machine but that wouldn't guarantee the latest version. Well it is still Beta and I haven't read the entire SDK. Jim Lawrence wrote: >Impressive Marty... > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, September 28, 2006 7:34 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db > >For those of you wanting to footle around with Access and MS Virtual Earth >Here is some sample code, it also dumps the html code to an html file >By clicking on map you display Lat/Long position of cursor > >Option Compare Database >Option Explicit > > >Function testVirtualEarthMap() >'------------------ >'display Virtual Earth at a fixed LatLong >' then click on map to display Lat/Long position of cursor >'see these for info: >'http://dev.live.com/virtualearth/sdk/ >'http://www.ftponline.com/special/web20/pvarholasp/default.aspx > >Dim objExplorer As Object >Dim objDocument As Object >Dim strHTML As String > >Set objExplorer = CreateObject("InternetExplorer.Application") > >objExplorer.Navigate "about:blank" >objExplorer.Toolbar = 1 ' 0= off >objExplorer.StatusBar = 1 '0 =off >objExplorer.Width = 800 >objExplorer.Height = 870 >objExplorer.Left = 0 >objExplorer.Top = 0 >objExplorer.Visible = 1 > >Do While (objExplorer.Busy) >Loop > > >Set objDocument = objExplorer.Document >objDocument.Open >'create html string and dump to a test file > strHTML = "" > strHTML = strHTML & createhtml > >WriteFile "c:\gis\test.html", strHTML > >'objDocument.Writeln strHTML >objDocument.Write strHTML >objExplorer.Refresh ' ??This has to be done because of >http://local.live.com/veapi.ashx >'objDocument.Close 'stall here >Do While (objExplorer.Busy) >Loop >'MsgBox "finished" >'Set objExplorer = Nothing >'Set objDocument = Nothing > >End Function > >Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) >' Dump XML or html String to File for debugging > Dim fhFile As Integer > fhFile = FreeFile > ' Debug.Print "Length of string=" & Len(sContents) > Open sFileName For Output As #fhFile > Print #fhFile, sContents; > Close #fhFile > Debug.Print "Out File" & sFileName >End Sub > >Function createhtml() As String > >Dim strHTML As String > strHTML = "" > strHTML = strHTML & "Virtual Earth Map" > strHTML = strHTML & "content=""text/html; charset=utf-8"">" >'When your page has referenced the map control, set up the call to >display a default map by completing a LoadMap ( ) method call: > strHTML = strHTML & vbCrLf & " " >' strHTML = strHTML & vbCrLf & "" > strHTML = strHTML & vbCrLf & "" >' strhtml = strhtml & vbCrLf & "// -->" >'Last, you display the map: > > strHTML = strHTML & vbCrLf & "" > strHTML = strHTML & vbCrLf & "
" > strHTML = strHTML & vbCrLf & " right or left click map for latitude >longitude position " > strHTML = strHTML & vbCrLf & "" > strHTML = strHTML & vbCrLf & "" >WriteFile "c:\gis\test.html", strHTML >createhtml = strHTML >End Function > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri Sep 29 11:48:58 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 29 Sep 2006 17:48:58 +0100 Subject: [AccessD] GUID PK References: Message-ID: Gustav Works like a charm. Can I use this in a section I am writing. You as source will be acknowledged. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Gustav Brock Sent: Fri 29/09/2006 12:36 To: accessd at databaseadvisors.com Subject: Re: [AccessD] GUID PK Hi Martin I guess you need a GUID in its string representation. We use this function which (or similar) is quite common. Public Type GUID Data1 As Long Data2 As Integer Data3 As Integer Data4(0 To 7) As Byte End Type Private Declare Function CoCreateGuid Lib "ole32.dll" ( _ ByRef pguid As GUID) As Long Private Declare Function StringFromGUID2 Lib "ole32.dll" ( _ ByRef rguid As Any, _ ByVal lpstrClsId As Long, _ ByVal cbMax As Long) As Long Public Function GetGUIDString() As String ' Create a GUID and return its string representation. ' ' 2002-12-15. Cactus Data ApS, CPH. ' Length of GUID string per definition. Const clngGUID As Long = 38 ' Length of buffer with added space for zero terminator. Const clngBuffer As Long = clngGUID + 1 Dim udtGuid As GUID Dim strGUID As String * clngGUID Dim abytGUID() As Byte ' Dim byte array. abytGUID() = String(clngBuffer, vbNullChar) ' Create GUID. If CoCreateGuid(udtGuid) = 0 Then ' GUID was successfully created. If StringFromGUID2(udtGuid, VarPtr(abytGUID(0)), clngBuffer) = clngBuffer Then ' GUID was successfully copied into byte array abytGUID in Unicode. ' Convert byte array to Ansi GUID string stripping zero terminator. strGUID = abytGUID End If End If GetGUIDString = strGUID End Function As Marty tells, those GUIDs will always contain 4 at position 13. You may set off from the crowd by replacing this char with something else. /gustav >>> mwp.reid at qub.ac.uk 28-09-2006 21:52:32 >>> Havnt needed this much help in some time I am doing an update to a system table. The table has a PK of ReplicationID Data type number. The insert includes some of the XML stuff I posted earlier. The new issue is when you run the wizard the insert happens by magic including the GUID PK. How can I create this GUID via CODE? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Sep 29 12:09:53 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Sep 2006 10:09:53 -0700 Subject: [AccessD] XML In-Reply-To: References: <000c01c6e2db$0cd070e0$6401a8c0@nant> Message-ID: <451D5361.9080303@shaw.ca> Just to create an xml string that you could drop into the XML DOM Function createxml() As String Dim strXLML As String strXML = "" strXML = strXML & "?xml version="1.0" encoding="UTF-8"?" strXML = strXML & "" strXML = strXML & "" etc..... createxml = strXML Martin Reid wrote: >Note I didnt prefix this OT as it isnt. Its part of Access 2007 Data Collection Via Email > > >Given the following structure and data would it be easier to use VBA to create this or simply type up the XML in an editor. In fact would you use VBA at all? I could do this in 30 seconds in an XML editor. I havnt a clue where to start with the VBA side of this. In terms of Access this is dropped into a Memo field. > > > > > > >true > >true > >25 >0 >true >true >false >0 >true > > > > > > > > > >
>
>
> > > > > > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.407 / Virus Database: 268.12.9/458 - Release Date: 27/09/2006 > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri Sep 29 12:56:16 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 29 Sep 2006 18:56:16 +0100 Subject: [AccessD] XML References: <000c01c6e2db$0cd070e0$6401a8c0@nant> <451D5361.9080303@shaw.ca> Message-ID: marty The full file is below. Would it be just as easy to create this totally in an editor or via VBA. The XML file itself isnt a problem. If you notice the values for example maxReplies set to 25. If I was doing it I would just type it up and then pass the string to VBA. What do you think? true true 25 0 true true false 0 true
Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From markamatte at hotmail.com Fri Sep 29 13:30:20 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 29 Sep 2006 18:30:20 +0000 Subject: [AccessD] OT: Myrtle Beach,SC In-Reply-To: Message-ID: Anyone for lunch this weekend in Myrtle...let me know. Mark A. Matte 336/253-5270 From RRANTHON at sentara.com Fri Sep 29 13:38:41 2006 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Fri, 29 Sep 2006 14:38:41 -0400 Subject: [AccessD] OT: Myrtle Beach,SC In-Reply-To: References: Message-ID: <200609291839.k8TId5S25538@databaseadvisors.com> Sorry, Mark, I'm only there over Thanksgiving and in May (playing golf, natch)... >>> "Mark A Matte" 9/29/2006 2:30 PM >>> Anyone for lunch this weekend in Myrtle...let me know. Mark A. Matte 336/253-5270 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Fri Sep 29 14:52:29 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 29 Sep 2006 20:52:29 +0100 Subject: [AccessD] Excel and VBA References: Message-ID: I have an editor looking for someone to write a book on Excel and VBA. Anyone interested please contact me of list. I would say intermediate to experienced required. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From martyconnelly at shaw.ca Fri Sep 29 15:05:05 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Sep 2006 13:05:05 -0700 Subject: [AccessD] XML In-Reply-To: References: <000c01c6e2db$0cd070e0$6401a8c0@nant> <451D5361.9080303@shaw.ca> Message-ID: <451D7C71.6040005@shaw.ca> Not sure what you are trying to accomplish but this looks oddly like the xml you might import into InfoPath to create a form template and hook with a data connection. Is that what you are trying to do? If you have XMLSpy it might be easier to fill in. Failing that fill in the variable elements with VBA. Martin Reid wrote: >marty > >The full file is below. Would it be just as easy to create this totally in an editor or via VBA. The XML file itself isnt a problem. If you notice the values for example maxReplies set to 25. If I was doing it I would just type it up and then pass the string to VBA. What do you think? > > > > > >true > >true > >25 > >0 > >true > >true > >false > >0 > >true > > > > > > > > > > > > > > > > > > > >
> >
> >
> > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.407 / Virus Database: 268.12.10/459 - Release Date: 29/09/2006 > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri Sep 29 15:16:54 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 29 Sep 2006 21:16:54 +0100 Subject: [AccessD] XML References: <000c01c6e2db$0cd070e0$6401a8c0@nant><451D5361.9080303@shaw.ca> <451D7C71.6040005@shaw.ca> Message-ID: Marty Its the XML data for an Access 2007 Data Collection via Email. If your interested I can send you the stuff to date - be interested in seeing what you think? The Access 2007 Email Data Collection wiz populates a system table eventually with XML. The XML holds all the choices you made in the wizard. What I am doing is trying to develop a more flexible coding approach to this. I can do almost all of it in VBA but am getting hung up on the XML. Well the XML itself is simple but getting it put together in a sensible and flexible way is the problem. Even if at the end of the day I recommend dont do it the wiz is easier I am to far into it to stop now (<: This is really step 1. Step 2 is to set up the outlook side as well. Again using XML config fiels to tell outlook this process is enabled. Hence the email re com add ins etc Martin Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Fri 29/09/2006 21:05 To: Access Developers discussion and problem solving Subject: Re: [AccessD] XML Not sure what you are trying to accomplish but this looks oddly like the xml you might import into InfoPath to create a form template and hook with a data connection. Is that what you are trying to do? If you have XMLSpy it might be easier to fill in. Failing that fill in the variable elements with VBA. From martyconnelly at shaw.ca Fri Sep 29 16:05:21 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Sep 2006 14:05:21 -0700 Subject: [AccessD] XML In-Reply-To: References: <000c01c6e2db$0cd070e0$6401a8c0@nant> <451D5361.9080303@shaw.ca> <451D7C71.6040005@shaw.ca> Message-ID: <451D8A91.4050506@shaw.ca> I'll take a look but don't have Outlook installed. Do have Access & InfoPath 2007 installed. Martin Reid wrote: >Marty > >Its the XML data for an Access 2007 Data Collection via Email. If your interested I can send you the stuff to date - be interested in seeing what you think? > >The Access 2007 Email Data Collection wiz populates a system table eventually with XML. The XML holds all the choices you made in the wizard. What I am doing is trying to develop a more flexible coding approach to this. I can do almost all of it in VBA but am getting hung up on the XML. Well the XML itself is simple but getting it put together in a sensible and flexible way is the problem. Even if at the end of the day I recommend dont do it the wiz is easier I am to far into it to stop now (<: > >This is really step 1. Step 2 is to set up the outlook side as well. Again using XML config fiels to tell outlook this process is enabled. Hence the email re com add ins etc > >Martin > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly >Sent: Fri 29/09/2006 21:05 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] XML > > > >Not sure what you are trying to accomplish but this looks oddly like >the xml you might import into InfoPath to create a form template >and hook with a data connection. Is that what you are trying to do? >If you have XMLSpy it might be easier to fill in. >Failing that fill in the variable elements with VBA. > > > > > -- Marty Connelly Victoria, B.C. Canada From bheid at sc.rr.com Fri Sep 29 16:12:57 2006 From: bheid at sc.rr.com (Bobby Heid) Date: Fri, 29 Sep 2006 17:12:57 -0400 Subject: [AccessD] OT: Myrtle Beach,SC In-Reply-To: <200609291839.k8TId5S25538@databaseadvisors.com> Message-ID: <000401c6e40c$0a131100$2d01a8c0@bhxp> I used to live down there. Surfside and Pawleys Island. Where do you live? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Friday, September 29, 2006 2:39 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Myrtle Beach,SC Sorry, Mark, I'm only there over Thanksgiving and in May (playing golf, natch)... >>> "Mark A Matte" 9/29/2006 2:30 PM >>> Anyone for lunch this weekend in Myrtle...let me know. Mark A. Matte 336/253-5270 From pedro at plex.nl Fri Sep 29 16:13:06 2006 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 29 Sep 2006 23:13:06 +0200 Subject: [AccessD] trying to understand code Message-ID: <003d01c6e40c$0eef92c0$4001a8c0@qmotionfaa3ad9> Hello Group, i use Candace trips code for displaying photo's in a database, without storing them in a database. Part of the code is about the path where the picture and database is stored. I changed the pad to store the pictures where i would like to store them. But in this code is also the part of ......... I don't understand what's happening there. Who can explain this to me. Also the format of the textfield where you give the name of the displayed picture is: $#.##0,00;($#.##0,00) What does this mean. Thanks Pedro Private Function GetPathPart() As String Dim db As DAO.Database Dim strPath As String Dim intCounter As Integer Set db = CurrentDb strPath = "C:\my-directoryname\" db.Close Set db = Nothing For intCounter = Len(strPath) To 1 Step -1 If Mid$(strPath, intCounter, 1) = "\" Then Exit For End If Next intCounter GetPathPart = Left$(strPath, intCounter) From mwp.reid at qub.ac.uk Fri Sep 29 16:39:55 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 29 Sep 2006 22:39:55 +0100 Subject: [AccessD] XML References: <000c01c6e2db$0cd070e0$6401a8c0@nant><451D5361.9080303@shaw.ca><451D7C71.6040005@shaw.ca> <451D8A91.4050506@shaw.ca> Message-ID: Will send it to you. yes have both here. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Fri 29/09/2006 22:05 To: Access Developers discussion and problem solving Subject: Re: [AccessD] XML I'll take a look but don't have Outlook installed. Do have Access & InfoPath 2007 installed. Martin Reid wrote: >Marty > >Its the XML data for an Access 2007 Data Collection via Email. If your interested I can send you the stuff to date - be interested in seeing what you think? > >The Access 2007 Email Data Collection wiz populates a system table eventually with XML. The XML holds all the choices you made in the wizard. What I am doing is trying to develop a more flexible coding approach to this. I can do almost all of it in VBA but am getting hung up on the XML. Well the XML itself is simple but getting it put together in a sensible and flexible way is the problem. Even if at the end of the day I recommend dont do it the wiz is easier I am to far into it to stop now (<: > >This is really step 1. Step 2 is to set up the outlook side as well. Again using XML config fiels to tell outlook this process is enabled. Hence the email re com add ins etc > >Martin > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly >Sent: Fri 29/09/2006 21:05 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] XML > > > >Not sure what you are trying to accomplish but this looks oddly like >the xml you might import into InfoPath to create a form template >and hook with a data connection. Is that what you are trying to do? >If you have XMLSpy it might be easier to fill in. >Failing that fill in the variable elements with VBA. > > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From scapistrant at symphonyinfo.com Fri Sep 29 16:56:47 2006 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Fri, 29 Sep 2006 16:56:47 -0500 Subject: [AccessD] Longitude/Latitude References: <000601c6e3f7$75f3ff70$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F0103A46D@LAKATOS.Symphony.local> Hello all, Sorry if this has been asked recently and I didn't pay attention. What options exist for programmatically inserting longitude and latitude values on an address record? I was told that Google had some way to return that information from their database, but can't seem to find it (perhaps if I paid for a business account). This is a task I'd do regularly (perhaps twice a month) as data gets uploaded from a local Access db into a website, where the website is coded to calculate distance between addresses. Ideally, it would be SO cool to due this by connecting to a website and looping through the recordset of an Address table. But another option I suppose is getting occasional downloads of a reference table, and use that as my lookup. Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Main: 763-391-7400 ext 801 Toll Free: 888-357-1373 ext 801 Direct: 612-237-0075 From JHewson at karta.com Fri Sep 29 17:06:00 2006 From: JHewson at karta.com (Jim Hewson) Date: Fri, 29 Sep 2006 17:06:00 -0500 Subject: [AccessD] trying to understand code Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04907C38@karta-exc-int.Karta.com> Pedro, What I have used is: Image.Picture = Application.CurrentProject.Path & "\images\" & GraphicFile This allows you to move the database to any directory as long the sub directory is named "images". GraphicFile is the field in the table depicting the graphic file name which includes the extension. HTH Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Friday, September 29, 2006 4:13 PM To: AccessD Subject: [AccessD] trying to understand code Hello Group, i use Candace trips code for displaying photo's in a database, without storing them in a database. Part of the code is about the path where the picture and database is stored. I changed the pad to store the pictures where i would like to store them. But in this code is also the part of ......... I don't understand what's happening there. Who can explain this to me. Also the format of the textfield where you give the name of the displayed picture is: $#.##0,00;($#.##0,00) What does this mean. Thanks Pedro Private Function GetPathPart() As String Dim db As DAO.Database Dim strPath As String Dim intCounter As Integer Set db = CurrentDb strPath = "C:\my-directoryname\" db.Close Set db = Nothing For intCounter = Len(strPath) To 1 Step -1 If Mid$(strPath, intCounter, 1) = "\" Then Exit For End If Next intCounter GetPathPart = Left$(strPath, intCounter) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Sep 29 17:28:23 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 29 Sep 2006 18:28:23 -0400 Subject: [AccessD] Longitude/Latitude References: <000601c6e3f7$75f3ff70$4b4f5a46@Symphony.local> <02F5B8F3D893A845A3DF342F14D80F0103A46D@LAKATOS.Symphony.local> Message-ID: <00c101c6e416$93cbac90$153ce944@50NM721> ...reference tables abound ...including high quality free ones ...start here, but there are plenty more http://spatialnews.geocomm.com/newsletter/2000/jan/zipcodes.html William Hindman ----- Original Message ----- From: "Steve Capistrant" To: "Access Developers discussion and problem solving" ; Sent: Friday, September 29, 2006 5:56 PM Subject: [AccessD] Longitude/Latitude > Hello all, > > Sorry if this has been asked recently and I didn't pay attention. What > options exist for programmatically inserting longitude and latitude values > on an address record? I was told that Google had some way to return that > information from their database, but can't seem to find it (perhaps if I > paid for a business account). This is a task I'd do regularly (perhaps > twice a month) as data gets uploaded from a local Access db into a > website, where the website is coded to calculate distance between > addresses. > > Ideally, it would be SO cool to due this by connecting to a website and > looping through the recordset of an Address table. But another option I > suppose is getting occasional downloads of a reference table, and use that > as my lookup. > > Steve Capistrant > Symphony Information Services > scapistrant at symphonyinfo.com > www.symphonyinfo.com > Main: 763-391-7400 ext 801 > Toll Free: 888-357-1373 ext 801 > Direct: 612-237-0075 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Fri Sep 29 20:31:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Sep 2006 18:31:35 -0700 Subject: [AccessD] Longitude/Latitude In-Reply-To: <02F5B8F3D893A845A3DF342F14D80F0103A46D@LAKATOS.Symphony.local> References: <000601c6e3f7$75f3ff70$4b4f5a46@Symphony.local> <02F5B8F3D893A845A3DF342F14D80F0103A46D@LAKATOS.Symphony.local> Message-ID: <451DC8F7.2080308@shaw.ca> Here is one that supplies an access table on a monthly basis. http://zipinfo.com/products/z5ll/ To calculate distances using great circle method between lat long's. Shortest distance on a sphere. Const PI As Double = 3.14159265358979 Const Circumference As Double = 40123.648 'kilometers Const MilesPerKilometer As Double = 0.6214 Sub test() Debug.Print Distance(32.815, -117.135866, 37.79333, -122.554722, True) End Sub Public Function Distance( _ ByVal Latitude1 As Double, _ ByVal Longitude1 As Double, _ ByVal Latitude2 As Double, _ ByVal Longitude2 As Double, _ Optional Miles As Boolean) As Double 'courtesy Lyle Fairfield 'assumes we are getting latitude-longitude 'as degrees with fractions expresed as decimals 'if minutes-seconds then use Sexagesimal function to convert Dim CosArc As Double Dim Arc As Double Latitude1 = Radians(Latitude1) Longitude1 = Radians(Longitude1) Latitude2 = Radians(Latitude2) Longitude2 = Radians(Longitude2) CosArc = (Sin(Latitude1) * Sin(Latitude2)) + _ (Cos(Latitude1) * Cos(Latitude2) * Cos(Longitude1 - Longitude2)) If Abs(CosArc) = 1 Then Arc = PI Else Arc = Atn(-CosArc / Sqr(-CosArc * CosArc + 1)) + 2 * Atn(1) End If Distance = Arc / PI / 2 * Circumference If Miles = True Then Distance = Distance * MilesPerKilometer Distance = Round(Distance, 2) End Function Private Function Radians(ByVal degrees As Double) As Double Radians = PI * degrees / 180 End Function Public Function SexagesimalToDecimal(ParamArray Sexagesimals()) As Double ' send this function degrees, minutes, seconds ' degrees as convenience; degrees will not be changed Dim z As Long For z = 0 To UBound(Sexagesimals()) - LBound(Sexagesimals()) SexagesimalToDecimal = SexagesimalToDecimal + Sexagesimals(z)/ 60 ^ (z) Next z End Function Sub testsex() Debug.Print Distance(SexagesimalToDecimal(39, 56, 58), SexagesimalToDecimal(-75, 9, 21), 35.667, 139.75) ' Philly to Tokyo 10916.89 km ' SanFrancisco to SanDiego 460.99 miles End Sub Steve Capistrant wrote: >Hello all, > >Sorry if this has been asked recently and I didn't pay attention. What options exist for programmatically inserting longitude and latitude values on an address record? I was told that Google had some way to return that information from their database, but can't seem to find it (perhaps if I paid for a business account). This is a task I'd do regularly (perhaps twice a month) as data gets uploaded from a local Access db into a website, where the website is coded to calculate distance between addresses. > >Ideally, it would be SO cool to due this by connecting to a website and looping through the recordset of an Address table. But another option I suppose is getting occasional downloads of a reference table, and use that as my lookup. > >Steve Capistrant >Symphony Information Services >scapistrant at symphonyinfo.com >www.symphonyinfo.com > > > -- Marty Connelly Victoria, B.C. Canada From markamatte at hotmail.com Sat Sep 30 07:00:11 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Sat, 30 Sep 2006 12:00:11 +0000 Subject: [AccessD] OT: Myrtle Beach,SC In-Reply-To: <000401c6e40c$0a131100$2d01a8c0@bhxp> Message-ID: Bobby, Right now I live in Greensboro, NC. Just in Myrtle(North Myrtle actually) for a little R&R. Thought I'd see if anyone were close. Where are you located? Thanks, Mark >From: "Bobby Heid" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] OT: Myrtle Beach,SC >Date: Fri, 29 Sep 2006 17:12:57 -0400 > >I used to live down there. Surfside and Pawleys Island. Where do you >live? > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R >ANTHONY >Sent: Friday, September 29, 2006 2:39 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] OT: Myrtle Beach,SC > >Sorry, Mark, I'm only there over Thanksgiving and in May (playing golf, >natch)... > > >>> "Mark A Matte" 9/29/2006 2:30 PM >>> >Anyone for lunch this weekend in Myrtle...let me know. > >Mark A. Matte >336/253-5270 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From lembit.dbamail at t-online.de Sat Sep 30 13:01:24 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sat, 30 Sep 2006 20:01:24 +0200 Subject: [AccessD] Access 97 nasty behaviour of subform References: <000e01c6e3da$5780eac0$0202fea9@BPCS> Message-ID: <005d01c6e4ba$71fec5d0$1800a8c0@s1800> good evening everyone, I have a form with a subform, form is continuous and has 3 little subforms in the header. form is bound to a table. subforms are bund to tables (which are named spaces in an EXCEL worksheet. form has a button. when I click it, some code runs and copies and processes data from some other excel table to Access BE tables. works fine so far. at the end of the update I want to write to the one table on the excel sheet the project-number to indicate it has been processed. this works as many times as I click, but only UNTIL I close the main form and open it again. NOW it tells me error 3027 database or object is read-only. If I now close the main form open the subform and change something like allow updates, THen change it back to what it was and save it, THEN I can open the main form and it will happily run and update the exxel sheet as often as I like. close the main form, open it again ERROR 3027. cahnge something on subform, save, close, mainform works again for one opening. I have now put me.allowedits = tru in the subform onLoad event nochange I have in my code tried both: a) open the table and write to the table b) write to the control on the subform in both cases I get the effect that after closing the main form and reopening it, I get 3027 error. any idea what I'm missing? thank you Lembit From pedro at plex.nl Sat Sep 30 14:26:42 2006 From: pedro at plex.nl (Pedro Janssen) Date: Sat, 30 Sep 2006 21:26:42 +0200 Subject: [AccessD] trying to understand code References: <9C382E065F54AE48BC3AA7925DCBB01C04907C38@karta-exc-int.Karta.com> Message-ID: <000701c6e4c6$5be8d180$4001a8c0@qmotionfaa3ad9> Hello Jim, that's a great idea. Thanks. Pedro My question in the original mail wasn't complete. I meant But in this code is also the part of: For intCounter ..... I don't understand what's happening there. Who can explain this to me. Also the format of the textfield where you give the name of the displayed picture is: $#.##0,00;($#.##0,00) What does this mean. For intCounter = Len(strPath) To 1 Step -1 If Mid$(strPath, intCounter, 1) = "\" Then Exit For End If Next intCounter GetPathPart = Left$(strPath, intCounter) ----- Original Message ----- From: "Jim Hewson" To: "Access Developers discussion and problem solving" Sent: Saturday, September 30, 2006 12:06 AM Subject: Re: [AccessD] trying to understand code > Pedro, > What I have used is: > Image.Picture = Application.CurrentProject.Path & "\images\" & GraphicFile > > This allows you to move the database to any directory as long the sub > directory is named "images". GraphicFile is the field in the table > depicting the graphic file name which includes the extension. > > HTH > > Jim > jhewson at karta.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen > Sent: Friday, September 29, 2006 4:13 PM > To: AccessD > Subject: [AccessD] trying to understand code > > Hello Group, > > i use Candace trips code for displaying photo's in a database, without > storing them in a database. > > Part of the code is about the path where the picture and database is > stored. I changed the pad to store the pictures where i would like to > store them. But in this code is also the part of ......... > I don't understand what's happening there. Who can explain this to me. > Also the format of the textfield where you give the name of the displayed > picture is: $#.##0,00;($#.##0,00) What does this mean. > > > Thanks > > Pedro > > > > > > Private Function GetPathPart() As String > > Dim db As DAO.Database > Dim strPath As String > Dim intCounter As Integer > > Set db = CurrentDb > strPath = "C:\my-directoryname\" > db.Close > Set db = Nothing > > For intCounter = Len(strPath) To 1 Step -1 > If Mid$(strPath, intCounter, 1) = "\" Then > Exit For > End If > Next intCounter > > GetPathPart = Left$(strPath, intCounter) > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sat Sep 30 18:23:38 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Oct 2006 09:23:38 +1000 Subject: [AccessD] Access 97 nasty behaviour of subform In-Reply-To: <005d01c6e4ba$71fec5d0$1800a8c0@s1800> References: , <005d01c6e4ba$71fec5d0$1800a8c0@s1800> Message-ID: <451F891A.30079.12755964@stuart.lexacorp.com.pg> Sounds as though the first instance of the subform gets a lock on the Excel table which isn't closed when the main form is closed. Opening the main form creates a new instance of the subform which tries to get a second lock and so can only get a RO connection. Editing the sub form must be completely destroying the first instance thus breaking the lock and allowing the next instance to establish a RW connection Not sure what to suggest on how to overcome it, but hopefully this gives you an idea of where to look. -- Stuart On 30 Sep 2006 at 20:01, Lembit Soobik wrote: > good evening everyone, > I have a form with a subform, > form is continuous and has 3 little subforms in the header. > form is bound to a table. > subforms are bund to tables (which are named spaces in an EXCEL worksheet. > > form has a button. when I click it, some code runs and copies and processes > data from some other excel table to Access BE tables. > > works fine so far. > > at the end of the update I want to write to the one table on the excel sheet > the project-number to indicate it has been processed. this works as many > times as I click, but only UNTIL I close the main form and open it again. > NOW it tells me error 3027 database or object is read-only. > > If I now close the main form > open the subform and change something like allow updates, THen change it > back to what it was and save it, THEN I can open the main form and it will > happily run and update the exxel sheet as often as I like. > > close the main form, open it again ERROR 3027. > cahnge something on subform, save, close, mainform works again for one > opening. > > I have now put me.allowedits = tru in the subform onLoad event > nochange > I have in my code tried both: > a) open the table and write to the table > b) write to the control on the subform > > in both cases I get the effect that after closing the main form and > reopening it, I get 3027 error. > > any idea what I'm missing? > > thank you > Lembit > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bheid at sc.rr.com Sat Sep 30 21:09:39 2006 From: bheid at sc.rr.com (Bobby Heid) Date: Sat, 30 Sep 2006 22:09:39 -0400 Subject: [AccessD] OT: Myrtle Beach,SC In-Reply-To: Message-ID: <001b01c6e4fe$a6ecca00$2d01a8c0@bhxp> I'm in Lexington, SC. About 150 miles from there. Have a great time! Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Saturday, September 30, 2006 8:00 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Myrtle Beach,SC Bobby, Right now I live in Greensboro, NC. Just in Myrtle(North Myrtle actually) for a little R&R. Thought I'd see if anyone were close. Where are you located? Thanks, Mark