From tinanfields at torchlake.com Sun Feb 1 10:48:14 2015 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 01 Feb 2015 11:48:14 -0500 Subject: [AccessD] Odd Shortcut Problem In-Reply-To: <32DF752B6B54476C80EF18BB7A1CF7DC@HAL9007> References: <10DFE5348EEB41F2A98EEB8E48263ECF@HAL9007><293E3218B8C04600B5A53E8E4E259528@HAL9007> <1614CA5BDA27475ABBDAA17996DFDD03@XPS><4A6D1DBBD1744B469520E6B7A5E4673D@HAL9007> <54CCEB32.2030104@torchlake.com> <32DF752B6B54476C80EF18BB7A1CF7DC@HAL9007> Message-ID: <54CE58CE.4080302@torchlake.com> Wow! That is grand. Thanks. TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 1/31/2015 12:21 PM, Rocky Smolin wrote: > Tina: > > It's really simple. Check this: > > http://stackoverflow.com/questions/2088814/export-objects-in-msaccess-application-to-text-objects-and-import-into-a-new-md > > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris > Fields > Sent: Saturday, January 31, 2015 6:48 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Odd Shortcut Problem > > Okay, you guys, tell me about saveastext and loadfromtext commands, and how > they straightened out the shortcut problem on Rocky's form. I never heard > of these, before. Please teach me. :-) TNF > > Tina Norris Fields > tinanfields-at-torchlake-dot-com > 231-322-2787 > > On 1/30/2015 3:21 PM, Rocky Smolin wrote: >> IT WORKED!!! Happy Friday, amigo. >> >> R >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >> Sent: Wednesday, January 28, 2015 10:14 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Odd Shortcut Problem >> >> Rocky, >> >> Decompile only invalidates compiled code...it doesn't do anything to >> fix form corruption. >> >> You might want to use the un-documented saveastext and loadfromtext >> commands to see if that straightens the form out. >> >> You might also be able to modify the file before you load it if >> there any issues there. >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> Smolin >> Sent: Wednesday, January 28, 2015 12:39 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Odd Shortcut Problem >> >> I just did a decompile - no cigar. Imported all into a new mdb. Same >> problem. :( >> >> R >> >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dw-murphy at cox.net Sun Feb 1 12:32:06 2015 From: dw-murphy at cox.net (Doug Murphy) Date: Sun, 1 Feb 2015 10:32:06 -0800 Subject: [AccessD] Microsoft stock price crashed today In-Reply-To: References: <6EE85296E0E742168E2302D884BF2D13@HAL9007> <326391091.111693751.1422660346543.JavaMail.root@cds018> <97044157AE6442948960BFC29F70AB1B@HAL9007> Message-ID: <00c101d03e4d$61a08ca0$24e1a5e0$@cox.net> I don't know about other locations but in San Diego you would be surprised to know how many Windows developers, mostly of the .NET persuasion, use Mac laptops running Windows in a VM to do their work. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, January 31, 2015 4:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Microsoft stock price crashed today > I sold MSFT and bought AAPL. > I use MSFT products and hate MACs. > Culturally I am probably lame-o, but financially I am wayyy ahead. Exactly...I won't be "trapped" into the Apple culture....as most corps (except ad agencies and graphics design firms), have gone "Windows". That being said...AAPL is so much better run than MSFT. Place your bets accordingly. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Sun Feb 1 12:54:39 2015 From: dbdoug at gmail.com (Doug Steele) Date: Sun, 1 Feb 2015 10:54:39 -0800 Subject: [AccessD] Microsoft stock price crashed today In-Reply-To: <00c101d03e4d$61a08ca0$24e1a5e0$@cox.net> References: <6EE85296E0E742168E2302D884BF2D13@HAL9007> <326391091.111693751.1422660346543.JavaMail.root@cds018> <97044157AE6442948960BFC29F70AB1B@HAL9007> <00c101d03e4d$61a08ca0$24e1a5e0$@cox.net> Message-ID: Yes, all my computers are Macs, and I run Windows using Parallels. Best of both worlds. Doug On Sun, Feb 1, 2015 at 10:32 AM, Doug Murphy wrote: > I don't know about other locations but in San Diego you would be surprised > to know how many Windows developers, mostly of the .NET persuasion, use Mac > laptops running Windows in a VM to do their work. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Saturday, January 31, 2015 4:47 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Microsoft stock price crashed today > > > I sold MSFT and bought AAPL. > > I use MSFT products and hate MACs. > > Culturally I am probably lame-o, but financially I am wayyy ahead. > > > Exactly...I won't be "trapped" into the Apple culture....as most corps > (except ad agencies and graphics design firms), have gone "Windows". > > That being said...AAPL is so much better run than MSFT. > Place your bets accordingly. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Sun Feb 1 13:39:16 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 1 Feb 2015 12:39:16 -0700 (MST) Subject: [AccessD] Microsoft stock price crashed today In-Reply-To: Message-ID: <1457761429.113147602.1422819556157.JavaMail.root@cds018> You have a very pragmatic approach. Jim ----- Original Message ----- From: "Bill Benson" To: "Access Developers discussion and problem solving" Sent: Saturday, 31 January, 2015 1:28:11 AM Subject: Re: [AccessD] Microsoft stock price crashed today I sold MSFT and bought AAPL. I use MSFT products and hate MACs. Culturally I am probably lame-o, but financially I am wayyy ahead. On Fri, Jan 30, 2015 at 9:49 PM, Arthur Fuller wrote: > While not exactly an MS champion, I subscribe to the maxim, "Buy low, sell > high", and this is surely such a moment. > > Arthur > > On Fri, Jan 30, 2015 at 8:20 PM, Rocky Smolin > wrote: > > > You can't time it that way. You never get the bottom or the top. Place > > your bets now ladies and gentlemen. > > > > r > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > > Sent: Friday, January 30, 2015 3:26 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Microsoft stock price crashed today > > > > Then I will wait for your go-post. > > > > Jim > > > > ----- Original Message ----- > > From: "Rocky Smolin" > > To: "Access Developers discussion and problem solving" > > > > Sent: Friday, 30 January, 2015 11:44:17 AM > > Subject: Re: [AccessD] Microsoft stock price crashed today > > > > Oops - not yet, anyway. But give it a couple weeks for the selling > pressure > > to abate as institutional investors finish reducing their positions. :) > > > > R > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > > Sent: Friday, January 30, 2015 10:08 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Microsoft stock price crashed today > > > > I would concur. > > > > Jim > > > > ----- Original Message ----- > > From: "Rocky Smolin" > > To: "Access Developers discussion and problem solving" > > > > Sent: Tuesday, 27 January, 2015 1:40:52 PM > > Subject: Re: [AccessD] Microsoft stock price crashed today > > > > If you're a player, play the bounce, which is almost certain to happen. > > Buy > > 10 options 6 months out, the 40s or 45s, for about a 1-2 week turn. The > > 43.50s of February got $3 knocked out of them today. I'll bet they're up > > $1 > > tomorrow. > > > > Earnings and revenues are beating street estimates. Nice dividend, > healthy > > balance sheet. Gotta buy your Panama hats in the winter. > > > > But I digress... :) > > > > R > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > > Sent: Tuesday, January 27, 2015 11:08 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Microsoft stock price crashed today > > > > Is anyone surprised ? I think the damage done by Balmer is going to be > felt > > for years to come. > > > > There was way too much optimism with the new CEO....everyone thought he > was > > going to work miracles. > > > > Now, the grim reality sets in. > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 > > > > > > -- > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 mcp2004 at mail.ru Sun Feb 1 15:06:22 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Mon, 02 Feb 2015 00:06:22 +0300 Subject: [AccessD] =?utf-8?q?Microsoft_stock_price_crashed_today?= In-Reply-To: References: <6EE85296E0E742168E2302D884BF2D13@HAL9007> <00c101d03e4d$61a08ca0$24e1a5e0$@cox.net> Message-ID: <1422824782.373023110@f335.i.mail.ru> Hi Doug -- Have you ever tried to connect to/control Mac computer(s) from MS Windows/PC one(s) using VNC remote access software, e.g. RealVNC ( https://www.realvnc.com/products/vnc/ )?? (RealVNC seems to be the most advanced(?) VNC from a large list published here? http://en.wikipedia.org/wiki/Comparison_of_remote_desktop_software ?) Are you subscribed to dba-Tech??I wanted to ask you for a few tech. details on Mac computers you use but I don't want to go off-topic here. Thank you. -- Shamil Sunday, February 01, 2015 10:54 AM -08:00 from Doug Steele : >Yes, all my computers are Macs, and I run Windows using Parallels. Best of >both worlds. > >Doug > >On Sun, Feb 1, 2015 at 10:32 AM, Doug Murphy < dw-murphy at cox.net > wrote: > >> I don't know about other locations but in San Diego you would be surprised >> to know how many Windows developers, mostly of the .NET persuasion, use Mac >> laptops running Windows in a VM to do their work. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms >> Sent: Saturday, January 31, 2015 4:47 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Microsoft stock price crashed today >> >> > I sold MSFT and bought AAPL. >> > I use MSFT products and hate MACs. >> > Culturally I am probably lame-o, but financially I am wayyy ahead. >> >> >> Exactly...I won't be "trapped" into the Apple culture....as most corps >> (except ad agencies and graphics design firms), have gone "Windows". >> >> That being said...AAPL is so much better run than MSFT. >> Place your bets accordingly. >> > From dbdoug at gmail.com Sun Feb 1 16:13:17 2015 From: dbdoug at gmail.com (Doug Steele) Date: Sun, 1 Feb 2015 14:13:17 -0800 Subject: [AccessD] Microsoft stock price crashed today In-Reply-To: <1422824782.373023110@f335.i.mail.ru> References: <6EE85296E0E742168E2302D884BF2D13@HAL9007> <00c101d03e4d$61a08ca0$24e1a5e0$@cox.net> <1422824782.373023110@f335.i.mail.ru> Message-ID: Hi Shamil: I've connected from Windows VMs to Windows computers using the paid version of RealVNC, but not to Macs. I'm not on dba-Tech, but feel free to email me at rescodoug at gmail if you have any questions. I currently have a Mac mini, Macbook pro and Macbook Air. Doug On Sun, Feb 1, 2015 at 1:06 PM, Salakhetdinov Shamil wrote: > Hi Doug -- > > Have you ever tried to connect to/control Mac computer(s) from MS > Windows/PC one(s) using VNC remote access software, e.g. RealVNC ( > https://www.realvnc.com/products/vnc/ )? > (RealVNC seems to be the most advanced(?) VNC from a large list published > here http://en.wikipedia.org/wiki/Comparison_of_remote_desktop_software > ) > > Are you subscribed to dba-Tech? I wanted to ask you for a few tech. > details on Mac computers you use but I don't want to go off-topic here. > > Thank you. > > -- Shamil > > Sunday, February 01, 2015 10:54 AM -08:00 from Doug Steele < > dbdoug at gmail.com>: > >Yes, all my computers are Macs, and I run Windows using Parallels. Best > of > >both worlds. > > > >Doug > > > >On Sun, Feb 1, 2015 at 10:32 AM, Doug Murphy < dw-murphy at cox.net > wrote: > > > >> I don't know about other locations but in San Diego you would be > surprised > >> to know how many Windows developers, mostly of the .NET persuasion, use > Mac > >> laptops running Windows in a VM to do their work. > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > >> Sent: Saturday, January 31, 2015 4:47 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: Re: [AccessD] Microsoft stock price crashed today > >> > >> > I sold MSFT and bought AAPL. > >> > I use MSFT products and hate MACs. > >> > Culturally I am probably lame-o, but financially I am wayyy ahead. > >> > >> > >> Exactly...I won't be "trapped" into the Apple culture....as most corps > >> (except ad agencies and graphics design firms), have gone "Windows". > >> > >> That being said...AAPL is so much better run than MSFT. > >> Place your bets accordingly. > >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Sun Feb 1 17:49:31 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 1 Feb 2015 16:49:31 -0700 (MST) Subject: [AccessD] Microsoft stock price crashed today In-Reply-To: <00c101d03e4d$61a08ca0$24e1a5e0$@cox.net> Message-ID: <1488993122.113272637.1422834571031.JavaMail.root@cds018> ...And it is not just for Windows development, it appears to be the same for Linux development as well. ;-0 Jim ----- Original Message ----- From: "Doug Murphy" To: "Access Developers discussion and problem solving" Sent: Sunday, 1 February, 2015 10:32:06 AM Subject: Re: [AccessD] Microsoft stock price crashed today I don't know about other locations but in San Diego you would be surprised to know how many Windows developers, mostly of the .NET persuasion, use Mac laptops running Windows in a VM to do their work. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, January 31, 2015 4:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Microsoft stock price crashed today > I sold MSFT and bought AAPL. > I use MSFT products and hate MACs. > Culturally I am probably lame-o, but financially I am wayyy ahead. Exactly...I won't be "trapped" into the Apple culture....as most corps (except ad agencies and graphics design firms), have gone "Windows". That being said...AAPL is so much better run than MSFT. Place your bets accordingly. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Sun Feb 1 18:14:17 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 1 Feb 2015 17:14:17 -0700 (MST) Subject: [AccessD] Microsoft stock price crashed today In-Reply-To: Message-ID: <1772799853.113284200.1422836057665.JavaMail.root@cds018> Hi Guys: Added comments: If you have a domain name and a properly setup web server like IIS or Apache or remoting in within a network, Microsoft's remote take-over product is just fine. When on Linux, I use a product called Remmina (links to Windows and Linux OSs easily). But there are so many products that work, depending on circumstances and operating systems. It is too long of a list for now. Jim ----- Original Message ----- From: "Doug Steele" To: "Access Developers discussion and problem solving" Sent: Sunday, 1 February, 2015 2:13:17 PM Subject: Re: [AccessD] Microsoft stock price crashed today Hi Shamil: I've connected from Windows VMs to Windows computers using the paid version of RealVNC, but not to Macs. I'm not on dba-Tech, but feel free to email me at rescodoug at gmail if you have any questions. I currently have a Mac mini, Macbook pro and Macbook Air. Doug On Sun, Feb 1, 2015 at 1:06 PM, Salakhetdinov Shamil wrote: > Hi Doug -- > > Have you ever tried to connect to/control Mac computer(s) from MS > Windows/PC one(s) using VNC remote access software, e.g. RealVNC ( > https://www.realvnc.com/products/vnc/ )? > (RealVNC seems to be the most advanced(?) VNC from a large list published > here http://en.wikipedia.org/wiki/Comparison_of_remote_desktop_software > ) > > Are you subscribed to dba-Tech? I wanted to ask you for a few tech. > details on Mac computers you use but I don't want to go off-topic here. > > Thank you. > > -- Shamil > > Sunday, February 01, 2015 10:54 AM -08:00 from Doug Steele < > dbdoug at gmail.com>: > >Yes, all my computers are Macs, and I run Windows using Parallels. Best > of > >both worlds. > > > >Doug > > > >On Sun, Feb 1, 2015 at 10:32 AM, Doug Murphy < dw-murphy at cox.net > wrote: > > > >> I don't know about other locations but in San Diego you would be > surprised > >> to know how many Windows developers, mostly of the .NET persuasion, use > Mac > >> laptops running Windows in a VM to do their work. > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > >> Sent: Saturday, January 31, 2015 4:47 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: Re: [AccessD] Microsoft stock price crashed today > >> > >> > I sold MSFT and bought AAPL. > >> > I use MSFT products and hate MACs. > >> > Culturally I am probably lame-o, but financially I am wayyy ahead. > >> > >> > >> Exactly...I won't be "trapped" into the Apple culture....as most corps > >> (except ad agencies and graphics design firms), have gone "Windows". > >> > >> That being said...AAPL is so much better run than MSFT. > >> Place your bets accordingly. > >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Feb 2 06:52:34 2015 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 02 Feb 2015 07:52:34 -0500 Subject: [AccessD] Odd Shortcut Problem In-Reply-To: <54CE58CE.4080302@torchlake.com> References: <10DFE5348EEB41F2A98EEB8E48263ECF@HAL9007><293E3218B8C04600B5A53E8E4E259528@HAL9007> <1614CA5BDA27475ABBDAA17996DFDD03@XPS><4A6D1DBBD1744B469520E6B7A5E4673D@HAL9007> <54CCEB32.2030104@torchlake.com> <32DF752B6B54476C80EF18BB7A1CF7DC@HAL9007> <54CE58CE.4080302@torchlake.com> Message-ID: It should be pointed out that Eat Bloat was developed long before any utilities appeared else where. Someone (Dan?) was going to continue it on, but I don't think he ever really got into it.. Real opportunity missed there. For those that don't know about the saveastext/loadfromtext, they are undocumented commands that dumps a form to a text file and then imports it. Basically an extension of what you can do with VBA code. You get all the form layout and properties. Often this will straighten out corruption in a form, or let you play with the resulting text file enough that you can get the majority of your work back. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Sunday, February 01, 2015 11:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Odd Shortcut Problem Wow! That is grand. Thanks. TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 1/31/2015 12:21 PM, Rocky Smolin wrote: > Tina: > > It's really simple. Check this: > > http://stackoverflow.com/questions/2088814/export-objects-in-msaccess-applic ation-to-text-objects-and-import-into-a-new-md > > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris > Fields > Sent: Saturday, January 31, 2015 6:48 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Odd Shortcut Problem > > Okay, you guys, tell me about saveastext and loadfromtext commands, and how > they straightened out the shortcut problem on Rocky's form. I never heard > of these, before. Please teach me. :-) TNF > > Tina Norris Fields > tinanfields-at-torchlake-dot-com > 231-322-2787 > > On 1/30/2015 3:21 PM, Rocky Smolin wrote: >> IT WORKED!!! Happy Friday, amigo. >> >> R >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >> Sent: Wednesday, January 28, 2015 10:14 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Odd Shortcut Problem >> >> Rocky, >> >> Decompile only invalidates compiled code...it doesn't do anything to >> fix form corruption. >> >> You might want to use the un-documented saveastext and loadfromtext >> commands to see if that straightens the form out. >> >> You might also be able to modify the file before you load it if >> there any issues there. >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> Smolin >> Sent: Wednesday, January 28, 2015 12:39 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Odd Shortcut Problem >> >> I just did a decompile - no cigar. Imported all into a new mdb. Same >> problem. :( >> >> R >> >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Mon Feb 2 13:53:27 2015 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 03 Feb 2015 05:53:27 +1000 Subject: [AccessD] Odd Shortcut Problem In-Reply-To: References: , <54CE58CE.4080302@torchlake.com>, Message-ID: <54CFD5B7.4559.2B512281@stuart.lexacorp.com.pg> I've still got a copy of Max Sherman (Max Wannadoo) 's EatBloat v4.1 for A2003 (Access 11) floating around. (dated Mar 2009). Let me know if anyone wants a copy. -- Stuart On 2 Feb 2015 at 7:52, Jim Dettman wrote: > > It should be pointed out that Eat Bloat was developed long before > any > utilities appeared else where. Someone (Dan?) was going to continue > it on, but I don't think he ever really got into it.. > > Real opportunity missed there. > > For those that don't know about the saveastext/loadfromtext, they are > undocumented commands that dumps a form to a text file and then > imports it. Basically an extension of what you can do with VBA code. > You get all the form layout and properties. > > Often this will straighten out corruption in a form, or let you play > with > the resulting text file enough that you can get the majority of your > work back. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris > Fields Sent: Sunday, February 01, 2015 11:48 AM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Odd Shortcut > Problem > > Wow! That is grand. Thanks. > TNF > > Tina Norris Fields > tinanfields-at-torchlake-dot-com > 231-322-2787 > > On 1/31/2015 12:21 PM, Rocky Smolin wrote: > > Tina: > > > > It's really simple. Check this: > > > > > http://stackoverflow.com/questions/2088814/export-objects-in-msaccess- > applic ation-to-text-objects-and-import-into-a-new-md > > > R > > > -----Original Message----- > From: > accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris > > Fields > Sent: Saturday, January 31, 2015 6:48 AM > To: Access > Developers discussion and problem solving > Subject: Re: [AccessD] Odd > Shortcut Problem > > Okay, you guys, tell me about saveastext and > loadfromtext commands, and how > they straightened out the shortcut > problem on Rocky's form. I never heard > of these, before. Please > teach me. :-) TNF > > Tina Norris Fields > > tinanfields-at-torchlake-dot-com > 231-322-2787 > > On 1/30/2015 3:21 > PM, Rocky Smolin wrote: >> IT WORKED!!! Happy Friday, amigo. >> >> R > >> >> >> -----Original Message----- >> From: > accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > >> Sent: Wednesday, January 28, 2015 10:14 AM >> To: 'Access > Developers discussion and problem solving' >> Subject: Re: [AccessD] > Odd Shortcut Problem >> >> Rocky, >> >> Decompile only invalidates > compiled code...it doesn't do anything to >> fix form corruption. >> > >> You might want to use the un-documented saveastext and > loadfromtext >> commands to see if that straightens the form out. >> > >> You might also be able to modify the file before you load it if > >> there any issues there. >> >> Jim. >> >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> > Smolin >> Sent: Wednesday, January 28, 2015 12:39 PM >> To: 'Access > Developers discussion and problem solving' >> Subject: Re: [AccessD] > Odd Shortcut Problem >> >> I just did a decompile - no cigar. > Imported all into a new mdb. Same >> problem. :( >> >> R >> >> >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 mcp2004 at mail.ru Mon Feb 2 14:43:18 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Mon, 02 Feb 2015 23:43:18 +0300 Subject: [AccessD] =?utf-8?q?OT=3A_Working_with_Mac_Mini_from_MS_Windows_v?= =?utf-8?q?ia_RealVNC=2E_Was=3A_Re=5B2=5D=3A__Microsoft_stock_price_crashe?= =?utf-8?q?d_today?= In-Reply-To: References: <6EE85296E0E742168E2302D884BF2D13@HAL9007> <1422824782.373023110@f335.i.mail.ru> Message-ID: <1422909798.140566194@f221.i.mail.ru> Hi Doug -- Thank you, as you're not on dba-Tech, I will try to ask you my questions on Mac Mini usage here as I suppose your answers would be interesting for this group members: Main questions: - What (wireless) keyboard and mouse do you use with your Mac Mini? - Would it be a viable option to use a RealVNC Viewer (free version as paid one doesn't exists) running on an MS Windows system?to control a Mac Mini (with RealVNC Server paid version)? Secondary questions, ?just reply if you have any experience and/or wish to share your opinion: - What Mac Mini configuration would be good enough for ?iPhone/iPad development with iOS 8 SDK and XCode? - Have you ever tried to connect a Mac Mini via HDMI to a Smart TV as e.g.?Samsung UN40H6350 40-Inch 1080p 120Hz Smart LED TV ( http://tinyurl.com/lvgmw9j) ?to use it as a display? Thank you. -- Shamil Sunday, February 01, 2015 2:13 PM -08:00 from Doug Steele : >Hi Shamil: > >I've connected from Windows VMs to Windows computers using the paid version >of RealVNC, but not to Macs. > >I'm not on dba-Tech, but feel free to email me at rescodoug at gmail if you >have any questions. I currently have a Mac mini, Macbook pro and Macbook >Air. > >Doug > >On Sun, Feb 1, 2015 at 1:06 PM, Salakhetdinov Shamil < mcp2004 at mail.ru > >wrote: > >> Hi Doug -- >> >> Have you ever tried to connect to/control Mac computer(s) from MS >> Windows/PC one(s) using VNC remote access software, e.g. RealVNC ( >> https://www.realvnc.com/products/vnc/ )? >> (RealVNC seems to be the most advanced(?) VNC from a large list published >> here http://en.wikipedia.org/wiki/Comparison_of_remote_desktop_software >> ) >> >> Are you subscribed to dba-Tech? I wanted to ask you for a few tech. >> details on Mac computers you use but I don't want to go off-topic here. >> >> Thank you. >> >> -- Shamil >> >> Sunday, February 01, 2015 10:54 AM -08:00 from Doug Steele < >> dbdoug at gmail.com >: >> >Yes, all my computers are Macs, and I run Windows using Parallels. Best >> of >> >both worlds. >> > >> >Doug >> > >> >On Sun, Feb 1, 2015 at 10:32 AM, Doug Murphy < dw-murphy at cox.net > wrote: >> > >> >> I don't know about other locations but in San Diego you would be >> surprised >> >> to know how many Windows developers, mostly of the .NET persuasion, use >> Mac >> >> laptops running Windows in a VM to do their work. >> >> >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms >> >> Sent: Saturday, January 31, 2015 4:47 PM >> >> To: 'Access Developers discussion and problem solving' >> >> Subject: Re: [AccessD] Microsoft stock price crashed today >> >> >> >> > I sold MSFT and bought AAPL. >> >> > I use MSFT products and hate MACs. >> >> > Culturally I am probably lame-o, but financially I am wayyy ahead. >> >> >> >> >> >> Exactly...I won't be "trapped" into the Apple culture....as most corps >> >> (except ad agencies and graphics design firms), have gone "Windows". >> >> >> >> That being said...AAPL is so much better run than MSFT. >> >> Place your bets accordingly. >> >> >> > >> From dbdoug at gmail.com Mon Feb 2 16:34:43 2015 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 2 Feb 2015 14:34:43 -0800 Subject: [AccessD] Locked down database Message-ID: I've just been asked by an old client to 'rescue' a database so it can be developed again. This db was left in a locked down state of some kind by an ex-employee of theirs. It wasn't an amicable parting :) The database is in Access 2007 format. It's not password protected, and it is in .accdb format, not accde. The 'hold down the shift key to open' option has been bypassed. There is no 'design view' option when you right click on a form, and of course all menus have been hidden. I tried creating an blank db and importing, but the forms list in the import window is greyed out. Does anyone have any suggestions? Thanks, Doug From df.waters at outlook.com Mon Feb 2 19:53:10 2015 From: df.waters at outlook.com (Dan Waters) Date: Mon, 2 Feb 2015 19:53:10 -0600 Subject: [AccessD] Locked down database In-Reply-To: References: Message-ID: Hi Doug, A few years ago I wrote an Access mdb as a tool to clear the Shift Bypass lockout. Create a new ACCDB file, and put this code into a module. Add a new macro named AutoExec to run the function UnlockAccessFile(). You will need to hold down the shift key to get into the code in this file. I wrote this to work with the MDB files I work with, but it might also work on an ACCDB. Save the Access file and name it Allow Bypass (works for me). If you get an error send it to me and let me know what you were trying to do. Now open the Allow Bypass access file, locate the Access file you want to get opened, and see if it works. Also - it might be that the Allow Bypass tool is actually working, but something else in your file is still locking you out - but I don't know what would do that. Good Luck! Dan ----------------------------------- Option Compare Database Option Explicit Private MappSource As Access.Application Public Function UnlockAccessFile() 1 On Error GoTo EH '-- Note: Run this application from this procedure. Dim stgSourceFilePath As String Dim stgPrompt As String '-- Select Access File 2 stgSourceFilePath = SelectFile 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = "" Then 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" 5 Exit Function 6 End If 7 DoEvents '-- Set Source MDB or ACCDB as the CurrentDatabase 8 Set MappSource = New Access.Application 9 MappSource.Visible = False 10 MappSource.OpenCurrentDatabase stgSourceFilePath 11 DoEvents 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift key bypass 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 key 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True 15 ChangeProperty "AllowFullMenus", dbBoolean, True 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True 17 MappSource.CloseCurrentDatabase 18 Set MappSource = Nothing 19 MsgBox "Your file at " & stgSourceFilePath & " is now available!", vbInformation + vbOKOnly, "File Now Available" 20 Exit Function EH: 21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ & "Line: " & Erl & vbNewLine _ & "Number: " & Err.Number & vbNewLine _ & "Description: " & Err.Description 22 MsgBox stgPrompt, vbExclamation + vbOKOnly 23 Stop End Function Private Function SelectFile() As String 1 On Error GoTo EH Dim fDialog As Office.FileDialog Dim stgPrompt As String Dim varFile As Variant 2 Set fDialog = FileDialog(msoFileDialogFilePicker) 3 With fDialog 4 .AllowMultiSelect = False 5 .InitialView = msoFileDialogViewList 6 .InitialFileName = CurrentProject.Path 7 .Title = "Select the Access file." 8 .Filters.Clear 9 .Filters.Add "Access Databases", "*.MDB" 10 .Filters.Add "Access Databases", "*.ACCDB" '.Filters.Add "Access Projects", "*.ADP" '-- Show the dialog box. If the .Show method returns True, the _ user picked at least one file. If the .Show method returns _ False, the user clicked Cancel. 11 If .Show = True Then 12 For Each varFile In .SelectedItems 13 SelectFile = varFile 14 Next varFile 15 Else 16 SelectFile = "File Not Selected" 17 End If 18 End With 19 Exit Function EH: 20 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ & "Line: " & Erl & vbNewLine _ & "Number: " & Err.Number & vbNewLine _ & "Description: " & Err.Description 21 MsgBox stgPrompt, vbExclamation + vbOKOnly 22 Stop End Function Public Function ChangeProperty(stgPropName As String, varPropType As Variant, varPropValue As Variant) As Boolean 1 On Error GoTo EH Dim prp As DAO.Property Dim stgPrompt As String Dim dbs As DAO.Database 2 Set dbs = MappSource.DBEngine(0)(0) 3 dbs.Properties(stgPropName) = varPropValue 4 ChangeProperty = True XH: 5 Exit Function EH: 6 Select Case Err.Number Case 3270 '-- Add property if not already created 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, varPropType, varPropValue) 8 DBEngine(0)(0).Properties.Append prp 9 Set prp = Nothing 10 Resume Next 11 Case Else 12 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ & "Line: " & Erl & vbNewLine _ & "Number: " & Err.Number & vbNewLine _ & "Description: " & Err.Description 13 MsgBox stgPrompt, vbExclamation + vbOKOnly 14 Stop 15 End Select End Function --------------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Monday, February 02, 2015 16:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Locked down database I've just been asked by an old client to 'rescue' a database so it can be developed again. This db was left in a locked down state of some kind by an ex-employee of theirs. It wasn't an amicable parting :) The database is in Access 2007 format. It's not password protected, and it is in .accdb format, not accde. The 'hold down the shift key to open' option has been bypassed. There is no 'design view' option when you right click on a form, and of course all menus have been hidden. I tried creating an blank db and importing, but the forms list in the import window is greyed out. Does anyone have any suggestions? Thanks, Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Mon Feb 2 20:01:20 2015 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 2 Feb 2015 18:01:20 -0800 Subject: [AccessD] Locked down database In-Reply-To: References: Message-ID: Thanks, Dan. I was actually given code privately (by John Colby, no less!) that does a similar thing. Having unlocked the mystery db, I've discovered that it isn't an .accdb file, but a renamed .accde file. So unless my client can find the original uncompiled file, he's going to be out of luck. On Mon, Feb 2, 2015 at 5:53 PM, Dan Waters wrote: > Hi Doug, > > A few years ago I wrote an Access mdb as a tool to clear the Shift Bypass > lockout. > > Create a new ACCDB file, and put this code into a module. Add a new macro > named AutoExec to run the function UnlockAccessFile(). You will need to > hold down the shift key to get into the code in this file. I wrote this to > work with the MDB files I work with, but it might also work on an ACCDB. > > Save the Access file and name it Allow Bypass (works for me). > > If you get an error send it to me and let me know what you were trying to > do. > > Now open the Allow Bypass access file, locate the Access file you want to > get opened, and see if it works. Also - it might be that the Allow Bypass > tool is actually working, but something else in your file is still locking > you out - but I don't know what would do that. > > Good Luck! > Dan > > ----------------------------------- > Option Compare Database > Option Explicit > > Private MappSource As Access.Application > > Public Function UnlockAccessFile() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No > File" > 5 Exit Function > 6 End If > 7 DoEvents > > '-- Set Source MDB or ACCDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at " & stgSourceFilePath & " is now > available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Function > > EH: > 21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Function > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > 10 .Filters.Add "Access Databases", "*.ACCDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, > the > _ > user picked at least one file. If the .Show method returns _ > False, the user clicked Cancel. > 11 If .Show = True Then > 12 For Each varFile In .SelectedItems > 13 SelectFile = varFile > 14 Next varFile > 15 Else > 16 SelectFile = "File Not Selected" > 17 End If > > 18 End With > > 19 Exit Function > > EH: > 20 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 21 MsgBox stgPrompt, vbExclamation + vbOKOnly > 22 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > --------------------------------- > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Monday, February 02, 2015 16:35 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Locked down database > > I've just been asked by an old client to 'rescue' a database so it can be > developed again. This db was left in a locked down state of some kind by > an > ex-employee of theirs. It wasn't an amicable parting :) > > The database is in Access 2007 format. It's not password protected, and it > is in .accdb format, not accde. The 'hold down the shift key to open' > option has been bypassed. There is no 'design view' option when you right > click on a form, and of course all menus have been hidden. I tried > creating > an blank db and importing, but the forms list in the import window is > greyed > out. > > Does anyone have any suggestions? > > Thanks, > Doug > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 gmail.com Mon Feb 2 20:06:53 2015 From: jwcolby at gmail.com (John W. Colby) Date: Mon, 02 Feb 2015 21:06:53 -0500 Subject: [AccessD] I'm baaaack! Message-ID: <54D02D3D.7040400@gmail.com> ;) -- John W. Colby From jwcolby at gmail.com Mon Feb 2 20:08:55 2015 From: jwcolby at gmail.com (John W. Colby) Date: Mon, 02 Feb 2015 21:08:55 -0500 Subject: [AccessD] I couldn't post Message-ID: <54D02DB7.1060008@gmail.com> I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. I finally decided to just uninstall and reinstall (and lose all my stuff - it's a long story). -- John W. Colby From darryl at whittleconsulting.com.au Mon Feb 2 20:16:05 2015 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Tue, 3 Feb 2015 02:16:05 +0000 Subject: [AccessD] I couldn't post In-Reply-To: <54D02DB7.1060008@gmail.com> References: <54D02DB7.1060008@gmail.com> Message-ID: Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? Anyway, welcome Back John. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 3 February 2015 1:09 PM To: accessd at databaseadvisors.com Subject: [AccessD] I couldn't post I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. I finally decided to just uninstall and reinstall (and lose all my stuff - it's a long story). -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jackandpat.d at gmail.com Mon Feb 2 20:26:41 2015 From: jackandpat.d at gmail.com (jack drawbridge) Date: Mon, 2 Feb 2015 21:26:41 -0500 Subject: [AccessD] I couldn't post In-Reply-To: References: <54D02DB7.1060008@gmail.com> Message-ID: Hey John, good to hear from you. It's been a while. Jack On Mon, Feb 2, 2015 at 9:16 PM, Darryl Collins < darryl at whittleconsulting.com.au> wrote: > Isn't Thunderbird unsupported by Mozilla these days? I thought they > stopped working on it a while back now - maybe 18 months or more? > > Anyway, welcome Back John. > > Cheers > Darryl > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, 3 February 2015 1:09 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] I couldn't post > > I've been here forever, I just couldn't post because my Thunderbird > install on my laptop insisted on using the wrong output email address and > so AccessD servers kicked my replies back. > > I finally decided to just uninstall and reinstall (and lose all my stuff > - it's a long story). > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 df.waters at outlook.com Mon Feb 2 21:20:00 2015 From: df.waters at outlook.com (Dan Waters) Date: Mon, 2 Feb 2015 21:20:00 -0600 Subject: [AccessD] Locked down database Message-ID: That John guy - he's my biggest competition! ;-) Good to hear from you John! Dan Doug Steele wrote: Thanks, Dan. I was actually given code privately (by John Colby, no less!) that does a similar thing. Having unlocked the mystery db, I've discovered that it isn't an .accdb file, but a renamed .accde file. So unless my client can find the original uncompiled file, he's going to be out of luck. On Mon, Feb 2, 2015 at 5:53 PM, Dan Waters wrote: > Hi Doug, > > A few years ago I wrote an Access mdb as a tool to clear the Shift Bypass > lockout. > > Create a new ACCDB file, and put this code into a module. Add a new macro > named AutoExec to run the function UnlockAccessFile(). You will need to > hold down the shift key to get into the code in this file. I wrote this to > work with the MDB files I work with, but it might also work on an ACCDB. > > Save the Access file and name it Allow Bypass (works for me). > > If you get an error send it to me and let me know what you were trying to > do. > > Now open the Allow Bypass access file, locate the Access file you want to > get opened, and see if it works. Also - it might be that the Allow Bypass > tool is actually working, but something else in your file is still locking > you out - but I don't know what would do that. > > Good Luck! > Dan > > ----------------------------------- > Option Compare Database > Option Explicit > > Private MappSource As Access.Application > > Public Function UnlockAccessFile() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No > File" > 5 Exit Function > 6 End If > 7 DoEvents > > '-- Set Source MDB or ACCDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at " & stgSourceFilePath & " is now > available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Function > > EH: > 21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Function > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > 10 .Filters.Add "Access Databases", "*.ACCDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, > the > _ > user picked at least one file. If the .Show method returns _ > False, the user clicked Cancel. > 11 If .Show = True Then > 12 For Each varFile In .SelectedItems > 13 SelectFile = varFile > 14 Next varFile > 15 Else > 16 SelectFile = "File Not Selected" > 17 End If > > 18 End With > > 19 Exit Function > > EH: > 20 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 21 MsgBox stgPrompt, vbExclamation + vbOKOnly > 22 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > --------------------------------- > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Monday, February 02, 2015 16:35 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Locked down database > > I've just been asked by an old client to 'rescue' a database so it can be > developed again. This db was left in a locked down state of some kind by > an > ex-employee of theirs. It wasn't an amicable parting :) > > The database is in Access 2007 format. It's not password protected, and it > is in .accdb format, not accde. The 'hold down the shift key to open' > option has been bypassed. There is no 'design view' option when you right > click on a form, and of course all menus have been hidden. I tried > creating > an blank db and importing, but the forms list in the import window is > greyed > out. > > Does anyone have any suggestions? > > Thanks, > Doug > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 bensonforums at gmail.com Mon Feb 2 21:24:02 2015 From: bensonforums at gmail.com (Bill Benson) Date: Mon, 2 Feb 2015 22:24:02 -0500 Subject: [AccessD] I'm baaaack! In-Reply-To: <54D02D3D.7040400@gmail.com> References: <54D02D3D.7040400@gmail.com> Message-ID: Good! Welcome back sir Colby! On Feb 2, 2015 9:08 PM, "John W. Colby" wrote: > ;) > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at gmail.com Mon Feb 2 22:12:45 2015 From: jwcolby at gmail.com (John W. Colby) Date: Mon, 02 Feb 2015 23:12:45 -0500 Subject: [AccessD] Locked down database In-Reply-To: References: Message-ID: <54D04ABD.1010308@gmail.com> LOL, well... I had this thing called C2DbProperties, written somewhere before the turn of the century. Of course it doesn't work with 2007 so Doug had to fiddle with it a bit. But I still like the thing, it can be plopped down and run to address just this issue. -- John W. Colby On 2/2/2015 10:20 PM, Dan Waters wrote: > That John guy - he's my biggest competition! ;-) > > Good to hear from you John! > > Dan > > > > Doug Steele wrote: > > Thanks, Dan. I was actually given code privately (by John Colby, no less!) > that does a similar thing. Having unlocked the mystery db, I've discovered > that it isn't an .accdb file, but a renamed .accde file. So unless my > client can find the original uncompiled file, he's going to be out of luck. > > On Mon, Feb 2, 2015 at 5:53 PM, Dan Waters wrote: > >> Hi Doug, >> >> A few years ago I wrote an Access mdb as a tool to clear the Shift Bypass >> lockout. >> >> Create a new ACCDB file, and put this code into a module. Add a new macro >> named AutoExec to run the function UnlockAccessFile(). You will need to >> hold down the shift key to get into the code in this file. I wrote this to >> work with the MDB files I work with, but it might also work on an ACCDB. >> >> Save the Access file and name it Allow Bypass (works for me). >> >> If you get an error send it to me and let me know what you were trying to >> do. >> >> Now open the Allow Bypass access file, locate the Access file you want to >> get opened, and see if it works. Also - it might be that the Allow Bypass >> tool is actually working, but something else in your file is still locking >> you out - but I don't know what would do that. >> >> Good Luck! >> Dan >> >> ----------------------------------- >> Option Compare Database >> Option Explicit >> >> Private MappSource As Access.Application >> >> Public Function UnlockAccessFile() >> 1 On Error GoTo EH >> >> '-- Note: Run this application from this procedure. >> >> Dim stgSourceFilePath As String >> Dim stgPrompt As String >> >> '-- Select Access File >> 2 stgSourceFilePath = SelectFile >> 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = >> "" Then >> 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No >> File" >> 5 Exit Function >> 6 End If >> 7 DoEvents >> >> '-- Set Source MDB or ACCDB as the CurrentDatabase >> 8 Set MappSource = New Access.Application >> 9 MappSource.Visible = False >> 10 MappSource.OpenCurrentDatabase stgSourceFilePath >> 11 DoEvents >> >> 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift >> key bypass >> 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 >> key >> 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True >> 15 ChangeProperty "AllowFullMenus", dbBoolean, True >> 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True >> >> 17 MappSource.CloseCurrentDatabase >> 18 Set MappSource = Nothing >> >> 19 MsgBox "Your file at " & stgSourceFilePath & " is now >> available!", >> vbInformation + vbOKOnly, "File Now Available" >> >> 20 Exit Function >> >> EH: >> 21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ >> & "Line: " & Erl & vbNewLine _ >> & "Number: " & Err.Number & vbNewLine _ >> & "Description: " & Err.Description >> 22 MsgBox stgPrompt, vbExclamation + vbOKOnly >> 23 Stop >> >> End Function >> >> Private Function SelectFile() As String >> 1 On Error GoTo EH >> >> Dim fDialog As Office.FileDialog >> Dim stgPrompt As String >> Dim varFile As Variant >> >> 2 Set fDialog = FileDialog(msoFileDialogFilePicker) >> >> 3 With fDialog >> >> 4 .AllowMultiSelect = False >> 5 .InitialView = msoFileDialogViewList >> 6 .InitialFileName = CurrentProject.Path >> 7 .Title = "Select the Access file." >> >> 8 .Filters.Clear >> 9 .Filters.Add "Access Databases", "*.MDB" >> 10 .Filters.Add "Access Databases", "*.ACCDB" >> '.Filters.Add "Access Projects", "*.ADP" >> >> '-- Show the dialog box. If the .Show method returns True, >> the >> _ >> user picked at least one file. If the .Show method returns _ >> False, the user clicked Cancel. >> 11 If .Show = True Then >> 12 For Each varFile In .SelectedItems >> 13 SelectFile = varFile >> 14 Next varFile >> 15 Else >> 16 SelectFile = "File Not Selected" >> 17 End If >> >> 18 End With >> >> 19 Exit Function >> >> EH: >> 20 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ >> & "Line: " & Erl & vbNewLine _ >> & "Number: " & Err.Number & vbNewLine _ >> & "Description: " & Err.Description >> 21 MsgBox stgPrompt, vbExclamation + vbOKOnly >> 22 Stop >> >> End Function >> >> Public Function ChangeProperty(stgPropName As String, varPropType As >> Variant, varPropValue As Variant) As Boolean >> 1 On Error GoTo EH >> >> Dim prp As DAO.Property >> Dim stgPrompt As String >> Dim dbs As DAO.Database >> >> 2 Set dbs = MappSource.DBEngine(0)(0) >> >> 3 dbs.Properties(stgPropName) = varPropValue >> >> 4 ChangeProperty = True >> >> XH: >> 5 Exit Function >> >> EH: >> 6 Select Case Err.Number >> >> Case 3270 >> '-- Add property if not already created >> 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, >> varPropType, varPropValue) >> 8 DBEngine(0)(0).Properties.Append prp >> 9 Set prp = Nothing >> 10 Resume Next >> >> 11 Case Else >> 12 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ >> & "Line: " & Erl & vbNewLine _ >> & "Number: " & Err.Number & vbNewLine _ >> & "Description: " & Err.Description >> 13 MsgBox stgPrompt, vbExclamation + vbOKOnly >> 14 Stop >> >> 15 End Select >> >> End Function >> >> --------------------------------- >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele >> Sent: Monday, February 02, 2015 16:35 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Locked down database >> >> I've just been asked by an old client to 'rescue' a database so it can be >> developed again. This db was left in a locked down state of some kind by >> an >> ex-employee of theirs. It wasn't an amicable parting :) >> >> The database is in Access 2007 format. It's not password protected, and it >> is in .accdb format, not accde. The 'hold down the shift key to open' >> option has been bypassed. There is no 'design view' option when you right >> click on a form, and of course all menus have been hidden. I tried >> creating >> an blank db and importing, but the forms list in the import window is >> greyed >> out. >> >> Does anyone have any suggestions? >> >> Thanks, >> Doug >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 jwcolby at gmail.com Mon Feb 2 22:35:49 2015 From: jwcolby at gmail.com (John W. Colby) Date: Mon, 02 Feb 2015 23:35:49 -0500 Subject: [AccessD] I couldn't post In-Reply-To: References: <54D02DB7.1060008@gmail.com> Message-ID: <54D05025.5000307@gmail.com> I don't think so. I am also running it on a Linux Mint machine which I am playing with. Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a quad core v7 core and a gig of Ram, otherwise identical. I am seriously considering building out a parallel processor using a bunch of these. Lots of press on a bunch of guys doing this, using the old Pi. With a faster processor, quad cores and twice the memory, the overall horsepower just went up radically. I'm thinking of maybe starting with 8 of them. (32) one ghz cores and 8 gigs of ram anyone? I ordered a BeagleBone black last week (before this announcement) because I love ucontroller / electronics stuff. I got my start in electronics back in the late 60s, pre ucontroller. A few years back I started playing with the Atmel uc series, with many different pin packages. It was a bit of a pita to set up but was a ton-o-fun. I actually designed a pulse width modulation motor driver, driving a cmos high power driver, driving a very powerful motor from a ride on toy. The BeagleBone has most of that stuff built right in, in a package size the same as the Pi. Well, not the high power cmos amp... But it has a couple of dedicated 200 mhz controllers right on die for the real time stuff to dr. Of course you have to program them in assembler... And just a slew of i/o. Cool stuff. John W. Colby On 2/2/2015 9:16 PM, Darryl Collins wrote: > Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? > > Anyway, welcome Back John. > > Cheers > Darryl > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, 3 February 2015 1:09 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] I couldn't post > > I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. > > I finally decided to just uninstall and reinstall (and lose all my stuff > - it's a long story). > > -- > John W. Colby > > -- > 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 Feb 3 00:30:02 2015 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 03 Feb 2015 16:30:02 +1000 Subject: [AccessD] I'm baaaack! In-Reply-To: <54D02D3D.7040400@gmail.com> References: <54D02D3D.7040400@gmail.com> Message-ID: <54D06AEA.26643.2D97EE53@stuart.lexacorp.com.pg> Yeah!!!! We missed ya. -- Stuart On 2 Feb 2015 at 21:06, John W. Colby wrote: > ;) > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From garykjos at gmail.com Tue Feb 3 08:31:36 2015 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 3 Feb 2015 08:31:36 -0600 Subject: [AccessD] I couldn't post In-Reply-To: <54D02DB7.1060008@gmail.com> References: <54D02DB7.1060008@gmail.com> Message-ID: Glad you are able to post again John. You certainly could have subscribed under your other email address in addition to the old one and then disabled the old one from the list. To subscribe with another address..... http://databaseadvisors.com/mailman/listinfo/accessd To change options for a subscription http://databaseadvisors.com/mailman/options/accessd GK On Mon, Feb 2, 2015 at 8:08 PM, John W. Colby wrote: > I've been here forever, I just couldn't post because my Thunderbird install > on my laptop insisted on using the wrong output email address and so AccessD > servers kicked my replies back. > > I finally decided to just uninstall and reinstall (and lose all my stuff - > it's a long story). > > -- > John W. Colby > > -- > 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 andy at minstersystems.co.uk Tue Feb 3 09:05:55 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 3 Feb 2015 15:05:55 +0000 (GMT) Subject: [AccessD] API calls crashing In-Reply-To: References: <54D02DB7.1060008@gmail.com> Message-ID: <1732839845.6072.1422975955447.JavaMail.open-xchange@oxbaltgw10.schlund.de> I am totally at a loss on this. My big Access 97 app (I know, I know, but it works) is crashing on one machine, a machine it has run on for years. I've tracked it down to API calls. Any time it calls a Kernel32 API it just exits - no message, no nothing, just closes. Now it's perfectly possible that central ICT here have installed or updated something overnight which has interfered, in fact I can only think that must have happened. Question is, what can I do about it? This is a typical api call which crashes out: Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long I know I could use Environ to get the computer name but that's not the point. There are lots of similar calls and they're all failing. Help please. Andy From gustav at cactus.dk Tue Feb 3 09:30:53 2015 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 3 Feb 2015 15:30:53 +0000 Subject: [AccessD] API calls crashing Message-ID: Hi Andy If the application runs on other (similar) machines, the error should be found in the OS install. If you can't find out what - I guess you can't - request a reinstall of that machine. /gustav -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey Sendt: 3. februar 2015 16:06 Til: Access Developers discussion and problem solving Emne: [AccessD] API calls crashing I am totally at a loss on this. My big Access 97 app (I know, I know, but it works) is crashing on one machine, a machine it has run on for years. I've tracked it down to API calls. Any time it calls a Kernel32 API it just exits - no message, no nothing, just closes. Now it's perfectly possible that central ICT here have installed or updated something overnight which has interfered, in fact I can only think that must have happened. Question is, what can I do about it? This is a typical api call which crashes out: Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long I know I could use Environ to get the computer name but that's not the point. There are lots of similar calls and they're all failing. Help please. Andy From andy at minstersystems.co.uk Tue Feb 3 09:52:29 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 3 Feb 2015 15:52:29 +0000 (GMT) Subject: [AccessD] API calls crashing In-Reply-To: References: Message-ID: <1624312999.9447.1422978750006.JavaMail.open-xchange@oxbaltgw10.schlund.de> Thanks Gustav. Was rather hoping to avoid that. If possible I'd like to understand why, what might cause the problem, in case this happens again. > On 03 February 2015 at 15:30 Gustav Brock wrote: > > > Hi Andy > > If the application runs on other (similar) machines, the error should be found > in the OS install. > > If you can't find out what - I guess you can't - request a reinstall of that > machine. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 3. februar 2015 16:06 > Til: Access Developers discussion and problem solving > Emne: [AccessD] API calls crashing > > I am totally at a loss on this. > > My big Access 97 app (I know, I know, but it works) is crashing on one > machine, a machine it has run on for years. I've tracked it down to API calls. > Any time it calls a Kernel32 API it just exits - no message, no nothing, just > closes. Now it's perfectly possible that central ICT here have installed or > updated something overnight which has interfered, in fact I can only think > that must have happened. Question is, what can I do about it? > > This is a typical api call which crashes out: > > Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ > "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long > > I know I could use Environ to get the computer name but that's not the point. > There are lots of similar calls and they're all failing. > > Help please. > > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Tue Feb 3 09:57:33 2015 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Tue, 3 Feb 2015 15:57:33 +0000 Subject: [AccessD] API calls crashing In-Reply-To: <1624312999.9447.1422978750006.JavaMail.open-xchange@oxbaltgw10.schlund.de> References: <1624312999.9447.1422978750006.JavaMail.open-xchange@oxbaltgw10.schlund.de> Message-ID: Andy, Could have been a corrupt/bad M$ update, all things being equal.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, February 03, 2015 10:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] API calls crashing Thanks Gustav. Was rather hoping to avoid that. If possible I'd like to understand why, what might cause the problem, in case this happens again. > On 03 February 2015 at 15:30 Gustav Brock wrote: > > > Hi Andy > > If the application runs on other (similar) machines, the error should > be found in the OS install. > > If you can't find out what - I guess you can't - request a reinstall > of that machine. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 3. februar 2015 16:06 > Til: Access Developers discussion and problem solving > Emne: [AccessD] API calls crashing > > I am totally at a loss on this. > > My big Access 97 app (I know, I know, but it works) is crashing on one > machine, a machine it has run on for years. I've tracked it down to API calls. > Any time it calls a Kernel32 API it just exits - no message, no > nothing, just closes. Now it's perfectly possible that central ICT > here have installed or updated something overnight which has > interfered, in fact I can only think that must have happened. Question is, what can I do about it? > > This is a typical api call which crashes out: > > Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ > "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long > > I know I could use Environ to get the computer name but that's not the point. > There are lots of similar calls and they're all failing. > > Help please. > > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Feb 3 09:58:37 2015 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 3 Feb 2015 15:58:37 +0000 Subject: [AccessD] API calls crashing Message-ID: Hi Andy You may of course try other things first. Clean the machine (Crap Cleaner is my favourite), reinstall Access and the application, but often you just end up wasting a couple of hours on nothing. /gustav -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey Sendt: 3. februar 2015 16:52 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] API calls crashing Thanks Gustav. Was rather hoping to avoid that. If possible I'd like to understand why, what might cause the problem, in case this happens again. > On 03 February 2015 at 15:30 Gustav Brock wrote: > > > Hi Andy > > If the application runs on other (similar) machines, the error should > be found in the OS install. > > If you can't find out what - I guess you can't - request a reinstall > of that machine. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 3. februar 2015 16:06 > Til: Access Developers discussion and problem solving > Emne: [AccessD] API calls crashing > > I am totally at a loss on this. > > My big Access 97 app (I know, I know, but it works) is crashing on one > machine, a machine it has run on for years. I've tracked it down to API calls. > Any time it calls a Kernel32 API it just exits - no message, no > nothing, just closes. Now it's perfectly possible that central ICT > here have installed or updated something overnight which has > interfered, in fact I can only think that must have happened. Question is, what can I do about it? > > This is a typical api call which crashes out: > > Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ > "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long > > I know I could use Environ to get the computer name but that's not the point. > There are lots of similar calls and they're all failing. > > Help please. > > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Tue Feb 3 10:27:15 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 3 Feb 2015 16:27:15 +0000 (GMT) Subject: [AccessD] API calls crashing In-Reply-To: References: Message-ID: <1706087784.12161.1422980835435.JavaMail.open-xchange@oxbaltgw10.schlund.de> You're no doubt right. Already done Access repair but I might totally uninstall it and reinstall. > On 03 February 2015 at 15:58 Gustav Brock wrote: > > > Hi Andy > > You may of course try other things first. Clean the machine (Crap Cleaner is > my favourite), reinstall Access and the application, but often you just end up > wasting a couple of hours on nothing. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 3. februar 2015 16:52 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] API calls crashing > > Thanks Gustav. Was rather hoping to avoid that. If possible I'd like to > understand why, what might cause the problem, in case this happens again. > > > > On 03 February 2015 at 15:30 Gustav Brock wrote: > > > > > > Hi Andy > > > > If the application runs on other (similar) machines, the error should > > be found in the OS install. > > > > If you can't find out what - I guess you can't - request a reinstall > > of that machine. > > > > /gustav > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > Sendt: 3. februar 2015 16:06 > > Til: Access Developers discussion and problem solving > > Emne: [AccessD] API calls crashing > > > > I am totally at a loss on this. > > > > My big Access 97 app (I know, I know, but it works) is crashing on one > > machine, a machine it has run on for years. I've tracked it down to API > > calls. > > Any time it calls a Kernel32 API it just exits - no message, no > > nothing, just closes. Now it's perfectly possible that central ICT > > here have installed or updated something overnight which has > > interfered, in fact I can only think that must have happened. Question is, > > what can I do about it? > > > > This is a typical api call which crashes out: > > > > Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ > > "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long > > > > I know I could use Environ to get the computer name but that's not the > > point. > > There are lots of similar calls and they're all failing. > > > > Help please. > > > > Andy > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 Tue Feb 3 10:28:01 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 3 Feb 2015 16:28:01 +0000 (GMT) Subject: [AccessD] API calls crashing In-Reply-To: References: <1624312999.9447.1422978750006.JavaMail.open-xchange@oxbaltgw10.schlund.de> Message-ID: <363425753.12210.1422980881886.JavaMail.open-xchange@oxbaltgw10.schlund.de> There's a thought :-( > On 03 February 2015 at 15:57 RANDALL R ANTHONY wrote: > > > Andy, > Could have been a corrupt/bad M$ update, all things being equal.... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Tuesday, February 03, 2015 10:52 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] API calls crashing > > Thanks Gustav. Was rather hoping to avoid that. If possible I'd like to > understand why, what might cause the problem, in case this happens again. > > > > On 03 February 2015 at 15:30 Gustav Brock wrote: > > > > > > Hi Andy > > > > If the application runs on other (similar) machines, the error should > > be found in the OS install. > > > > If you can't find out what - I guess you can't - request a reinstall > > of that machine. > > > > /gustav > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > Sendt: 3. februar 2015 16:06 > > Til: Access Developers discussion and problem solving > > Emne: [AccessD] API calls crashing > > > > I am totally at a loss on this. > > > > My big Access 97 app (I know, I know, but it works) is crashing on one > > machine, a machine it has run on for years. I've tracked it down to API > > calls. > > Any time it calls a Kernel32 API it just exits - no message, no > > nothing, just closes. Now it's perfectly possible that central ICT > > here have installed or updated something overnight which has > > interfered, in fact I can only think that must have happened. Question is, > > what can I do about it? > > > > This is a typical api call which crashes out: > > > > Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ > > "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long > > > > I know I could use Environ to get the computer name but that's not the > > point. > > There are lots of similar calls and they're all failing. > > > > Help please. > > > > Andy > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 tinanfields at torchlake.com Tue Feb 3 11:01:49 2015 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Tue, 03 Feb 2015 12:01:49 -0500 Subject: [AccessD] Locked down database In-Reply-To: References: Message-ID: <54D0FEFD.7070404@torchlake.com> Hi Dan, Access 2013 is not liking the ChangeProperty line (first appears on line 12). What is equivalent command? TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/2/2015 8:53 PM, Dan Waters wrote: > Hi Doug, > > A few years ago I wrote an Access mdb as a tool to clear the Shift Bypass > lockout. > > Create a new ACCDB file, and put this code into a module. Add a new macro > named AutoExec to run the function UnlockAccessFile(). You will need to > hold down the shift key to get into the code in this file. I wrote this to > work with the MDB files I work with, but it might also work on an ACCDB. > > Save the Access file and name it Allow Bypass (works for me). > > If you get an error send it to me and let me know what you were trying to > do. > > Now open the Allow Bypass access file, locate the Access file you want to > get opened, and see if it works. Also - it might be that the Allow Bypass > tool is actually working, but something else in your file is still locking > you out - but I don't know what would do that. > > Good Luck! > Dan > > ----------------------------------- > Option Compare Database > Option Explicit > > Private MappSource As Access.Application > > Public Function UnlockAccessFile() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" > 5 Exit Function > 6 End If > 7 DoEvents > > '-- Set Source MDB or ACCDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at " & stgSourceFilePath & " is now available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Function > > EH: > 21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Function > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > 10 .Filters.Add "Access Databases", "*.ACCDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, the > _ > user picked at least one file. If the .Show method returns _ > False, the user clicked Cancel. > 11 If .Show = True Then > 12 For Each varFile In .SelectedItems > 13 SelectFile = varFile > 14 Next varFile > 15 Else > 16 SelectFile = "File Not Selected" > 17 End If > > 18 End With > > 19 Exit Function > > EH: > 20 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 21 MsgBox stgPrompt, vbExclamation + vbOKOnly > 22 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > --------------------------------- > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Monday, February 02, 2015 16:35 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Locked down database > > I've just been asked by an old client to 'rescue' a database so it can be > developed again. This db was left in a locked down state of some kind by an > ex-employee of theirs. It wasn't an amicable parting :) > > The database is in Access 2007 format. It's not password protected, and it > is in .accdb format, not accde. The 'hold down the shift key to open' > option has been bypassed. There is no 'design view' option when you right > click on a form, and of course all menus have been hidden. I tried creating > an blank db and importing, but the forms list in the import window is greyed > out. > > Does anyone have any suggestions? > > Thanks, > Doug > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tinanfields at torchlake.com Tue Feb 3 11:12:15 2015 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Tue, 03 Feb 2015 12:12:15 -0500 Subject: [AccessD] Locked down database In-Reply-To: <54D0FEFD.7070404@torchlake.com> References: <54D0FEFD.7070404@torchlake.com> Message-ID: <54D1016F.7020207@torchlake.com> Never mind - it was a line-ending at the function creation causing the problem. Fixed. TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/3/2015 12:01 PM, Tina Norris Fields wrote: > Hi Dan, > > Access 2013 is not liking the ChangeProperty line (first appears on > line 12). What is equivalent command? > > TNF > > Tina Norris Fields > tinanfields-at-torchlake-dot-com > 231-322-2787 > > On 2/2/2015 8:53 PM, Dan Waters wrote: >> Hi Doug, >> >> A few years ago I wrote an Access mdb as a tool to clear the Shift >> Bypass >> lockout. >> >> Create a new ACCDB file, and put this code into a module. Add a new >> macro >> named AutoExec to run the function UnlockAccessFile(). You will need to >> hold down the shift key to get into the code in this file. I wrote >> this to >> work with the MDB files I work with, but it might also work on an ACCDB. >> >> Save the Access file and name it Allow Bypass (works for me). >> >> If you get an error send it to me and let me know what you were >> trying to >> do. >> >> Now open the Allow Bypass access file, locate the Access file you >> want to >> get opened, and see if it works. Also - it might be that the Allow >> Bypass >> tool is actually working, but something else in your file is still >> locking >> you out - but I don't know what would do that. >> >> Good Luck! >> Dan >> >> ----------------------------------- >> Option Compare Database >> Option Explicit >> >> Private MappSource As Access.Application >> >> Public Function UnlockAccessFile() >> 1 On Error GoTo EH >> >> '-- Note: Run this application from this procedure. >> >> Dim stgSourceFilePath As String >> Dim stgPrompt As String >> '-- Select Access File >> 2 stgSourceFilePath = SelectFile >> 3 If stgSourceFilePath = "File Not Selected" Or >> stgSourceFilePath = >> "" Then >> 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, >> "No File" >> 5 Exit Function >> 6 End If >> 7 DoEvents >> '-- Set Source MDB or ACCDB as the CurrentDatabase >> 8 Set MappSource = New Access.Application >> 9 MappSource.Visible = False >> 10 MappSource.OpenCurrentDatabase stgSourceFilePath >> 11 DoEvents >> 12 ChangeProperty "AllowBypassKey", dbBoolean, >> True '-- Allow shift >> key bypass >> 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- >> Allow F11 >> key >> 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True >> 15 ChangeProperty "AllowFullMenus", dbBoolean, True >> 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True >> 17 MappSource.CloseCurrentDatabase >> 18 Set MappSource = Nothing >> 19 MsgBox "Your file at " & stgSourceFilePath & " >> is now available!", >> vbInformation + vbOKOnly, "File Now Available" >> 20 Exit Function >> EH: >> 21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ >> & "Line: " & Erl & vbNewLine _ >> & "Number: " & Err.Number & vbNewLine _ >> & "Description: " & Err.Description >> 22 MsgBox stgPrompt, vbExclamation + vbOKOnly >> 23 Stop >> End Function >> >> Private Function SelectFile() As String >> 1 On Error GoTo EH >> >> Dim fDialog As Office.FileDialog >> Dim stgPrompt As String >> Dim varFile As Variant >> >> 2 Set fDialog = FileDialog(msoFileDialogFilePicker) >> >> 3 With fDialog >> >> 4 .AllowMultiSelect = False >> 5 .InitialView = msoFileDialogViewList >> 6 .InitialFileName = CurrentProject.Path >> 7 .Title = "Select the Access file." >> >> 8 .Filters.Clear >> 9 .Filters.Add "Access Databases", "*.MDB" >> 10 .Filters.Add "Access Databases", "*.ACCDB" >> '.Filters.Add "Access Projects", "*.ADP" >> >> '-- Show the dialog box. If the .Show method returns >> True, the >> _ >> user picked at least one file. If the .Show method >> returns _ >> False, the user clicked Cancel. >> 11 If .Show = True Then >> 12 For Each varFile In .SelectedItems >> 13 SelectFile = varFile >> 14 Next varFile >> 15 Else >> 16 SelectFile = "File Not Selected" >> 17 End If >> >> 18 End With >> >> 19 Exit Function >> >> EH: >> 20 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ >> & "Line: " & Erl & vbNewLine _ >> & "Number: " & Err.Number & vbNewLine _ >> & "Description: " & Err.Description >> 21 MsgBox stgPrompt, vbExclamation + vbOKOnly >> 22 Stop >> >> End Function >> >> Public Function ChangeProperty(stgPropName As String, varPropType As >> Variant, varPropValue As Variant) As Boolean >> 1 On Error GoTo EH >> >> Dim prp As DAO.Property >> Dim stgPrompt As String >> Dim dbs As DAO.Database >> 2 Set dbs = MappSource.DBEngine(0)(0) >> >> 3 dbs.Properties(stgPropName) = varPropValue >> >> 4 ChangeProperty = True >> >> XH: >> 5 Exit Function >> >> EH: >> 6 Select Case Err.Number >> >> Case 3270 >> '-- Add property if not already created >> 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, >> varPropType, varPropValue) >> 8 DBEngine(0)(0).Properties.Append prp >> 9 Set prp = Nothing >> 10 Resume Next >> >> 11 Case Else >> 12 stgPrompt = "ERROR: SelectFile" & vbNewLine & >> vbNewLine _ >> & "Line: " & Erl & vbNewLine _ >> & "Number: " & Err.Number & vbNewLine _ >> & "Description: " & Err.Description >> 13 MsgBox stgPrompt, vbExclamation + vbOKOnly >> 14 Stop >> >> 15 End Select >> >> End Function >> >> --------------------------------- >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele >> Sent: Monday, February 02, 2015 16:35 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Locked down database >> >> I've just been asked by an old client to 'rescue' a database so it >> can be >> developed again. This db was left in a locked down state of some >> kind by an >> ex-employee of theirs. It wasn't an amicable parting :) >> >> The database is in Access 2007 format. It's not password protected, >> and it >> is in .accdb format, not accde. The 'hold down the shift key to open' >> option has been bypassed. There is no 'design view' option when you >> right >> click on a form, and of course all menus have been hidden. I tried >> creating >> an blank db and importing, but the forms list in the import window is >> greyed >> out. >> >> Does anyone have any suggestions? >> >> Thanks, >> Doug >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From df.waters at outlook.com Tue Feb 3 11:14:38 2015 From: df.waters at outlook.com (Dan Waters) Date: Tue, 3 Feb 2015 11:14:38 -0600 Subject: [AccessD] Locked down database In-Reply-To: <54D0FEFD.7070404@torchlake.com> References: <54D0FEFD.7070404@torchlake.com> Message-ID: Hi Tina, As I have never used Access 2013, I am not the person to ask. Can anyone else answer Tina's question? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Tuesday, February 03, 2015 11:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Locked down database Hi Dan, Access 2013 is not liking the ChangeProperty line (first appears on line 12). What is equivalent command? TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/2/2015 8:53 PM, Dan Waters wrote: > Hi Doug, > > A few years ago I wrote an Access mdb as a tool to clear the Shift > Bypass lockout. > > Create a new ACCDB file, and put this code into a module. Add a new > macro named AutoExec to run the function UnlockAccessFile(). You will > need to hold down the shift key to get into the code in this file. I > wrote this to work with the MDB files I work with, but it might also work on an ACCDB. > > Save the Access file and name it Allow Bypass (works for me). > > If you get an error send it to me and let me know what you were trying > to do. > > Now open the Allow Bypass access file, locate the Access file you want > to get opened, and see if it works. Also - it might be that the Allow > Bypass tool is actually working, but something else in your file is > still locking you out - but I don't know what would do that. > > Good Luck! > Dan > > ----------------------------------- > Option Compare Database > Option Explicit > > Private MappSource As Access.Application > > Public Function UnlockAccessFile() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" > 5 Exit Function > 6 End If > 7 DoEvents > > '-- Set Source MDB or ACCDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at " & stgSourceFilePath & " is now available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Function > > EH: > 21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Function > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > 10 .Filters.Add "Access Databases", "*.ACCDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns > True, the _ > user picked at least one file. If the .Show method returns _ > False, the user clicked Cancel. > 11 If .Show = True Then > 12 For Each varFile In .SelectedItems > 13 SelectFile = varFile > 14 Next varFile > 15 Else > 16 SelectFile = "File Not Selected" > 17 End If > > 18 End With > > 19 Exit Function > > EH: > 20 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 21 MsgBox stgPrompt, vbExclamation + vbOKOnly > 22 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > --------------------------------- > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Monday, February 02, 2015 16:35 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Locked down database > > I've just been asked by an old client to 'rescue' a database so it can > be developed again. This db was left in a locked down state of some > kind by an ex-employee of theirs. It wasn't an amicable parting :) > > The database is in Access 2007 format. It's not password protected, > and it is in .accdb format, not accde. The 'hold down the shift key to open' > option has been bypassed. There is no 'design view' option when you > right click on a form, and of course all menus have been hidden. I > tried creating an blank db and importing, but the forms list in the > import window is greyed out. > > Does anyone have any suggestions? > > Thanks, > Doug > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 df.waters at outlook.com Tue Feb 3 11:24:21 2015 From: df.waters at outlook.com (Dan Waters) Date: Tue, 3 Feb 2015 11:24:21 -0600 Subject: [AccessD] Locked down database In-Reply-To: <54D1016F.7020207@torchlake.com> References: <54D0FEFD.7070404@torchlake.com> <54D1016F.7020207@torchlake.com> Message-ID: Do I need to change something? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Tuesday, February 03, 2015 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Locked down database Never mind - it was a line-ending at the function creation causing the problem. Fixed. TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/3/2015 12:01 PM, Tina Norris Fields wrote: > Hi Dan, > > Access 2013 is not liking the ChangeProperty line (first appears on > line 12). What is equivalent command? > > TNF > > Tina Norris Fields > tinanfields-at-torchlake-dot-com > 231-322-2787 > > On 2/2/2015 8:53 PM, Dan Waters wrote: >> Hi Doug, >> >> A few years ago I wrote an Access mdb as a tool to clear the Shift >> Bypass lockout. >> >> Create a new ACCDB file, and put this code into a module. Add a new >> macro named AutoExec to run the function UnlockAccessFile(). You >> will need to hold down the shift key to get into the code in this >> file. I wrote this to work with the MDB files I work with, but it >> might also work on an ACCDB. >> >> Save the Access file and name it Allow Bypass (works for me). >> >> If you get an error send it to me and let me know what you were >> trying to do. >> >> Now open the Allow Bypass access file, locate the Access file you >> want to get opened, and see if it works. Also - it might be that the >> Allow Bypass tool is actually working, but something else in your >> file is still locking you out - but I don't know what would do that. >> >> Good Luck! >> Dan >> >> ----------------------------------- >> Option Compare Database >> Option Explicit >> >> Private MappSource As Access.Application >> >> Public Function UnlockAccessFile() >> 1 On Error GoTo EH >> >> '-- Note: Run this application from this procedure. >> >> Dim stgSourceFilePath As String >> Dim stgPrompt As String >> '-- Select Access File >> 2 stgSourceFilePath = SelectFile >> 3 If stgSourceFilePath = "File Not Selected" Or >> stgSourceFilePath = >> "" Then >> 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, >> "No File" >> 5 Exit Function >> 6 End If >> 7 DoEvents >> '-- Set Source MDB or ACCDB as the CurrentDatabase >> 8 Set MappSource = New Access.Application >> 9 MappSource.Visible = False >> 10 MappSource.OpenCurrentDatabase stgSourceFilePath >> 11 DoEvents >> 12 ChangeProperty "AllowBypassKey", dbBoolean, >> True '-- Allow shift >> key bypass >> 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- >> Allow F11 >> key >> 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True >> 15 ChangeProperty "AllowFullMenus", dbBoolean, True >> 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True >> 17 MappSource.CloseCurrentDatabase >> 18 Set MappSource = Nothing >> 19 MsgBox "Your file at " & stgSourceFilePath & " >> is now available!", >> vbInformation + vbOKOnly, "File Now Available" >> 20 Exit Function >> EH: >> 21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ >> & "Line: " & Erl & vbNewLine _ >> & "Number: " & Err.Number & vbNewLine _ >> & "Description: " & Err.Description >> 22 MsgBox stgPrompt, vbExclamation + vbOKOnly >> 23 Stop >> End Function >> >> Private Function SelectFile() As String >> 1 On Error GoTo EH >> >> Dim fDialog As Office.FileDialog >> Dim stgPrompt As String >> Dim varFile As Variant >> >> 2 Set fDialog = FileDialog(msoFileDialogFilePicker) >> >> 3 With fDialog >> >> 4 .AllowMultiSelect = False >> 5 .InitialView = msoFileDialogViewList >> 6 .InitialFileName = CurrentProject.Path >> 7 .Title = "Select the Access file." >> >> 8 .Filters.Clear >> 9 .Filters.Add "Access Databases", "*.MDB" >> 10 .Filters.Add "Access Databases", "*.ACCDB" >> '.Filters.Add "Access Projects", "*.ADP" >> >> '-- Show the dialog box. If the .Show method returns >> True, the _ >> user picked at least one file. If the .Show method >> returns _ >> False, the user clicked Cancel. >> 11 If .Show = True Then >> 12 For Each varFile In .SelectedItems >> 13 SelectFile = varFile >> 14 Next varFile >> 15 Else >> 16 SelectFile = "File Not Selected" >> 17 End If >> >> 18 End With >> >> 19 Exit Function >> >> EH: >> 20 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ >> & "Line: " & Erl & vbNewLine _ >> & "Number: " & Err.Number & vbNewLine _ >> & "Description: " & Err.Description >> 21 MsgBox stgPrompt, vbExclamation + vbOKOnly >> 22 Stop >> >> End Function >> >> Public Function ChangeProperty(stgPropName As String, varPropType As >> Variant, varPropValue As Variant) As Boolean >> 1 On Error GoTo EH >> >> Dim prp As DAO.Property >> Dim stgPrompt As String >> Dim dbs As DAO.Database >> 2 Set dbs = MappSource.DBEngine(0)(0) >> >> 3 dbs.Properties(stgPropName) = varPropValue >> >> 4 ChangeProperty = True >> >> XH: >> 5 Exit Function >> >> EH: >> 6 Select Case Err.Number >> >> Case 3270 >> '-- Add property if not already created >> 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, >> varPropType, varPropValue) >> 8 DBEngine(0)(0).Properties.Append prp >> 9 Set prp = Nothing >> 10 Resume Next >> >> 11 Case Else >> 12 stgPrompt = "ERROR: SelectFile" & vbNewLine & >> vbNewLine _ >> & "Line: " & Erl & vbNewLine _ >> & "Number: " & Err.Number & vbNewLine _ >> & "Description: " & Err.Description >> 13 MsgBox stgPrompt, vbExclamation + vbOKOnly >> 14 Stop >> >> 15 End Select >> >> End Function >> >> --------------------------------- >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug >> Steele >> Sent: Monday, February 02, 2015 16:35 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Locked down database >> >> I've just been asked by an old client to 'rescue' a database so it >> can be developed again. This db was left in a locked down state of >> some kind by an ex-employee of theirs. It wasn't an amicable parting >> :) >> >> The database is in Access 2007 format. It's not password protected, >> and it is in .accdb format, not accde. The 'hold down the shift key >> to open' >> option has been bypassed. There is no 'design view' option when you >> right click on a form, and of course all menus have been hidden. I >> tried creating an blank db and importing, but the forms list in the >> import window is greyed out. >> >> Does anyone have any suggestions? >> >> Thanks, >> Doug >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 tinanfields at torchlake.com Tue Feb 3 11:33:40 2015 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Tue, 03 Feb 2015 12:33:40 -0500 Subject: [AccessD] I'm baaaack! In-Reply-To: <54D02D3D.7040400@gmail.com> References: <54D02D3D.7040400@gmail.com> Message-ID: <54D10674.7050905@torchlake.com> Glad I am. TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/2/2015 9:06 PM, John W. Colby wrote: > ;) > From jbartow at winhaven.net Tue Feb 3 13:59:56 2015 From: jbartow at winhaven.net (John R Bartow) Date: Tue, 3 Feb 2015 13:59:56 -0600 Subject: [AccessD] API calls crashing In-Reply-To: <1732839845.6072.1422975955447.JavaMail.open-xchange@oxbaltgw10.schlund.de> References: <54D02DB7.1060008@gmail.com> <1732839845.6072.1422975955447.JavaMail.open-xchange@oxbaltgw10.schlund.de> Message-ID: <05d301d03feb$fbf1d9e0$f3d58da0$@winhaven.net> Hi Andy, If you do a system restore to a day when the app worked it should restore any system files that were changed. Worth a try and if it doesn't work you can undo it. HTH John B -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, February 03, 2015 9:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] API calls crashing I am totally at a loss on this. My big Access 97 app (I know, I know, but it works) is crashing on one machine, a machine it has run on for years. I've tracked it down to API calls. Any time it calls a Kernel32 API it just exits - no message, no nothing, just closes. Now it's perfectly possible that central ICT here have installed or updated something overnight which has interfered, in fact I can only think that must have happened. Question is, what can I do about it? This is a typical api call which crashes out: Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long I know I could use Environ to get the computer name but that's not the point. There are lots of similar calls and they're all failing. Help please. Andy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Feb 3 14:39:58 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 3 Feb 2015 13:39:58 -0700 (MST) Subject: [AccessD] I'm baaaack! In-Reply-To: <54D02D3D.7040400@gmail.com> Message-ID: <1680120533.115091382.1422995998704.JavaMail.root@cds018> Good to read ya. :-) Jim ----- Original Message ----- From: "John W. Colby" To: accessd at databaseadvisors.com Sent: Monday, 2 February, 2015 6:06:53 PM Subject: [AccessD] I'm baaaack! ;) -- John W. Colby -- 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 Feb 3 14:46:37 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 3 Feb 2015 20:46:37 -0000 Subject: [AccessD] API calls crashing In-Reply-To: <05d301d03feb$fbf1d9e0$f3d58da0$@winhaven.net> Message-ID: <2C053C5B2E3E49CAAC7267654F993366@MINSTER> Thanks for the thought John. Will see what restore points there are. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John R Bartow Sent: 03 February 2015 20:00 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] API calls crashing Importance: High Hi Andy, If you do a system restore to a day when the app worked it should restore any system files that were changed. Worth a try and if it doesn't work you can undo it. HTH John B -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, February 03, 2015 9:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] API calls crashing I am totally at a loss on this. My big Access 97 app (I know, I know, but it works) is crashing on one machine, a machine it has run on for years. I've tracked it down to API calls. Any time it calls a Kernel32 API it just exits - no message, no nothing, just closes. Now it's perfectly possible that central ICT here have installed or updated something overnight which has interfered, in fact I can only think that must have happened. Question is, what can I do about it? This is a typical api call which crashes out: Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long I know I could use Environ to get the computer name but that's not the point. There are lots of similar calls and they're all failing. Help please. Andy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Feb 3 14:45:48 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 3 Feb 2015 13:45:48 -0700 (MST) Subject: [AccessD] I couldn't post In-Reply-To: Message-ID: <895439223.115096471.1422996348512.JavaMail.root@cds018> An aside: With so much moving to the Cloud, running on the internet and being the major source all hacks and malware, mail clients, at least on the desktop, are slowing disappearing. I use a Zimbra web client myself. Jim ----- Original Message ----- From: "Darryl Collins" To: "Access Developers discussion and problem solving" Sent: Monday, 2 February, 2015 6:16:05 PM Subject: Re: [AccessD] I couldn't post Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? Anyway, welcome Back John. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, 3 February 2015 1:09 PM To: accessd at databaseadvisors.com Subject: [AccessD] I couldn't post I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. I finally decided to just uninstall and reinstall (and lose all my stuff - it's a long story). -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 gmail.com Tue Feb 3 14:51:10 2015 From: jwcolby at gmail.com (John W. Colby) Date: Tue, 03 Feb 2015 15:51:10 -0500 Subject: [AccessD] I couldn't post In-Reply-To: <895439223.115096471.1422996348512.JavaMail.root@cds018> References: <895439223.115096471.1422996348512.JavaMail.root@cds018> Message-ID: <54D134BE.1040108@gmail.com> Yea yea. I hate web applications as they tend to be web clunky. Gmail's web app sucks so bad it is almost unusable. Not to mention, no web no mail. Glad you like it though. John W. Colby On 2/3/2015 3:45 PM, Jim Lawrence wrote: > An aside: With so much moving to the Cloud, running on the internet and being the major source all hacks and malware, mail clients, at least on the desktop, are slowing disappearing. I use a Zimbra web client myself. > > Jim > > ----- Original Message ----- > From: "Darryl Collins" > To: "Access Developers discussion and problem solving" > Sent: Monday, 2 February, 2015 6:16:05 PM > Subject: Re: [AccessD] I couldn't post > > Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? > > Anyway, welcome Back John. > > Cheers > Darryl > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, 3 February 2015 1:09 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] I couldn't post > > I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. > > I finally decided to just uninstall and reinstall (and lose all my stuff > - it's a long story). > > -- > John W. Colby > > -- > 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 Feb 3 14:53:45 2015 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 3 Feb 2015 20:53:45 +0000 Subject: [AccessD] I'm baaaack! In-Reply-To: <1680120533.115091382.1422995998704.JavaMail.root@cds018> References: <54D02D3D.7040400@gmail.com>, <1680120533.115091382.1422995998704.JavaMail.root@cds018> Message-ID: <976E500DD0AF35409874A413967BFAEC017DAC2A@EX2K10-MBX6.ads.qub.ac.uk> John Great to ?see? you back martin Sent from Surface Pro From: Jim Lawrence Sent: ?Tuesday?, ?3? ?February? ?2015 ?20?:?41 To: Access Developers discussion and problem solving Good to read ya. :-) Jim ----- Original Message ----- From: "John W. Colby" To: accessd at databaseadvisors.com Sent: Monday, 2 February, 2015 6:06:53 PM Subject: [AccessD] I'm baaaack! ;) -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Feb 3 14:55:40 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 3 Feb 2015 13:55:40 -0700 (MST) Subject: [AccessD] I couldn't post In-Reply-To: <54D05025.5000307@gmail.com> Message-ID: <632907702.115104621.1422996940600.JavaMail.root@cds018> Just posted the following on Facebook this morning: "Some people reading that both Windows 10 or Ubuntu can be installed, on the new PIs...but the software that can load is a specialize version of both. IoT (program) for Windows and Snappy for Ubuntu...both designed specifically for use in embedded devices. OTOH, Ubuntu has a server/terminal product which allows PIs to run as thin clients: https://help.ubuntu.com/community/UbuntuLTSP." There is a lot of interesting products out there. The Ubuntu stuff should run on Mint without issues. (Now that I have retired I prefer Linux distros over Windows ones and just use Windows products so to keep my hands in. Jim ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, 2 February, 2015 8:35:49 PM Subject: Re: [AccessD] I couldn't post I don't think so. I am also running it on a Linux Mint machine which I am playing with. Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a quad core v7 core and a gig of Ram, otherwise identical. I am seriously considering building out a parallel processor using a bunch of these. Lots of press on a bunch of guys doing this, using the old Pi. With a faster processor, quad cores and twice the memory, the overall horsepower just went up radically. I'm thinking of maybe starting with 8 of them. (32) one ghz cores and 8 gigs of ram anyone? I ordered a BeagleBone black last week (before this announcement) because I love ucontroller / electronics stuff. I got my start in electronics back in the late 60s, pre ucontroller. A few years back I started playing with the Atmel uc series, with many different pin packages. It was a bit of a pita to set up but was a ton-o-fun. I actually designed a pulse width modulation motor driver, driving a cmos high power driver, driving a very powerful motor from a ride on toy. The BeagleBone has most of that stuff built right in, in a package size the same as the Pi. Well, not the high power cmos amp... But it has a couple of dedicated 200 mhz controllers right on die for the real time stuff to dr. Of course you have to program them in assembler... And just a slew of i/o. Cool stuff. John W. Colby On 2/2/2015 9:16 PM, Darryl Collins wrote: > Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? > > Anyway, welcome Back John. > > Cheers > Darryl > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, 3 February 2015 1:09 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] I couldn't post > > I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. > > I finally decided to just uninstall and reinstall (and lose all my stuff > - it's a long story). > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 bradm at blackforestltd.com Tue Feb 3 15:14:00 2015 From: bradm at blackforestltd.com (Brad Marks) Date: Tue, 3 Feb 2015 21:14:00 +0000 Subject: [AccessD] Access Controlling Excel Via Windows Automation In-Reply-To: <632907702.115104621.1422996940600.JavaMail.root@cds018> References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> Message-ID: All, I don't have a lot of experience with this realm but I have had some success using Access VBA to control Excel via Automation. I have one Access 2007 application that creates a number of reports. Recently I have added new VBA code to also create an Excel file. This works nicely on my development PC that has Access 2007 and Excel 2007. However, I have run into some problems when trying to deploy this application on a machine that has Access 2010 Runtime and Excel 2013. All of the reports work properly via Access 2010 Runtime. However, when I try to run the VBA code that generates the Excel file, the application hangs up. There are no error messages. I am using "Late Binding". I am not sure where to start looking. Should Access 2010 Runtime work properly in conjunction with Excel 2013? (both are 32 bit) Is anyone else using this combination? I have thought about upgrading Access Runtime from 2010 to 2013, but I would prefer to not do this if I can resolve the current problems. Thanks, Brad From jwcolby at gmail.com Tue Feb 3 15:38:00 2015 From: jwcolby at gmail.com (John W. Colby) Date: Tue, 03 Feb 2015 16:38:00 -0500 Subject: [AccessD] I couldn't post In-Reply-To: <632907702.115104621.1422996940600.JavaMail.root@cds018> References: <632907702.115104621.1422996940600.JavaMail.root@cds018> Message-ID: <54D13FB8.4070204@gmail.com> I was reading about snappy just the other day. A few months back I built a midrange AMD 6 core with 24 gigs RAM. I installed Windows 7 on it, but I ended up saving that into a VM image (I hope) and installing Linux Mint on that machine. I did so to allow me to get into Linux. So far it has been a PITA. I read an interesting article called something like "Linux is not Windows" about why Linux and Windows are so different and how best to approach Linux. All I can say is "yea yea, it still sux". In the first week of trying to do anything with it (even though this is Mint mind you) I typed more crap into the command line than I had in the entire last 20 years using Windows. In one stinking week. So Linux is DOS on steroids with a Gui that is barely used laid over the top. Or so it seems. I'm actually OK with that I guess, I was a DRDOS wizard back in the day, I can deal with the command line. I must say I find it amusing to listen to the Linux Gurus... "Yea, I use XYZ today but last month I was heavy into KJKL, but I didn't like the installer. Before that I was using..." And then there is the whole "what desktop are you using" issue. As if that makes any damned difference ANYWAY since you are constantly typing into a command window. It's like a mark of manhood to be able to say that you have used 47 different forks of Linux in the last two years, and 19 different desktop variants ON EACH ONE... Down here in the south we just carry a big gun to mark our manhood. Well... not me but those "manhood deficient" types. To be honest, I don't give a rat's patuty what Linux variant I use. I would prefer that the OS fade into the background and let me get some actual WORK DONE, hello come in. Instead of spending hours trying to figure out how to the the app installed. To say that this has been ... interesting... would be... well... a lie. I REALLY don't want to learn how to type crap into the command line, I want to get MariaDB installed and start using it. I want to get VMs up and running and start using them. I want to get Wine installed and start using it. Notice that in all cases I REALLY want to GET USING THEM. But to do that you gonna be a typin' in the command window! Say what you want about Windows but you click Install and wait. When it is done, you open the app you just installed and start using it. Windows (until Windows 8.x) was just a platform which hosted apps. You never actually DO (did) anything in Windows itself, you use apps ON Windows. Not so with Linux. Climbs down off the soap box. And so I have a honkin machine that runs Linux Mint. It does NOT run MariaDB (yet), not does it run VMs (yet). I think it runs Wine, but without much more command window typin I can't be sure. I can run Firefox and FreeOffice etc. Through the GUI no less. Yeaaaa. John W. Colby On 2/3/2015 3:55 PM, Jim Lawrence wrote: > Just posted the following on Facebook this morning: > > "Some people reading that both Windows 10 or Ubuntu can be installed, on the new PIs...but the software that can load is a specialize version of both. IoT (program) for Windows and Snappy for Ubuntu...both designed specifically for use in embedded devices. OTOH, Ubuntu has a server/terminal product which allows PIs to run as thin clients: https://help.ubuntu.com/community/UbuntuLTSP." > > There is a lot of interesting products out there. The Ubuntu stuff should run on Mint without issues. (Now that I have retired I prefer Linux distros over Windows ones and just use Windows products so to keep my hands in. > > Jim > > ----- Original Message ----- > From: "John W. Colby" > To: "Access Developers discussion and problem solving" > Sent: Monday, 2 February, 2015 8:35:49 PM > Subject: Re: [AccessD] I couldn't post > > I don't think so. I am also running it on a Linux Mint machine which I > am playing with. > > Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a > quad core v7 core and a gig of Ram, otherwise identical. > > I am seriously considering building out a parallel processor using a > bunch of these. Lots of press on a bunch of guys doing this, using the > old Pi. > > With a faster processor, quad cores and twice the memory, the overall > horsepower just went up radically. I'm thinking of maybe starting with > 8 of them. (32) one ghz cores and 8 gigs of ram anyone? > > I ordered a BeagleBone black last week (before this announcement) > because I love ucontroller / electronics stuff. I got my start in > electronics back in the late 60s, pre ucontroller. A few years back I > started playing with the Atmel uc series, with many different pin > packages. It was a bit of a pita to set up but was a ton-o-fun. I > actually designed a pulse width modulation motor driver, driving a cmos > high power driver, driving a very powerful motor from a ride on toy. > > The BeagleBone has most of that stuff built right in, in a package size > the same as the Pi. Well, not the high power cmos amp... But it has a > couple of dedicated 200 mhz controllers right on die for the real time > stuff to dr. > > Of course you have to program them in assembler... > > And just a slew of i/o. Cool stuff. > > > John W. Colby > > On 2/2/2015 9:16 PM, Darryl Collins wrote: >> Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? >> >> Anyway, welcome Back John. >> >> Cheers >> Darryl >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >> Sent: Tuesday, 3 February 2015 1:09 PM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] I couldn't post >> >> I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. >> >> I finally decided to just uninstall and reinstall (and lose all my stuff >> - it's a long story). >> >> -- >> John W. Colby >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From bensonforums at gmail.com Tue Feb 3 16:01:37 2015 From: bensonforums at gmail.com (Bill Benson) Date: Tue, 3 Feb 2015 17:01:37 -0500 Subject: [AccessD] Access Controlling Excel Via Windows Automation In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> Message-ID: Did you (1) use late binding but nonetheless (2) left a reference to Excel? That would do it if the Excel you are using is not in the same location as the next user's. And it has happened to me. On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks wrote: > All, > > I don't have a lot of experience with this realm but I have had some > success using Access VBA to control Excel via Automation. > > I have one Access 2007 application that creates a number of reports. > Recently I have added new VBA code to also create an Excel file. This > works nicely on my development PC that has Access 2007 and Excel 2007. > > However, I have run into some problems when trying to deploy this > application on a machine that has Access 2010 Runtime and Excel 2013. > > All of the reports work properly via Access 2010 Runtime. > > However, when I try to run the VBA code that generates the Excel file, the > application hangs up. There are no error messages. > > I am using "Late Binding". > > I am not sure where to start looking. > > Should Access 2010 Runtime work properly in conjunction with Excel 2013? > (both are 32 bit) > > Is anyone else using this combination? > > I have thought about upgrading Access Runtime from 2010 to 2013, but I > would prefer to not do this if I can resolve the current problems. > > Thanks, > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bensonforums at gmail.com Tue Feb 3 16:22:20 2015 From: bensonforums at gmail.com (Bill Benson) Date: Tue, 3 Feb 2015 17:22:20 -0500 Subject: [AccessD] I couldn't post In-Reply-To: <54D02DB7.1060008@gmail.com> References: <54D02DB7.1060008@gmail.com> Message-ID: On a happier side, Raspberry Pi 2 is out with a lot more bang for the same buck. http://www.raspberrypi.org/raspberry-pi-2-on-sale/ On Mon, Feb 2, 2015 at 9:08 PM, John W. Colby wrote: > I've been here forever, I just couldn't post because my Thunderbird > install on my laptop insisted on using the wrong output email address and > so AccessD servers kicked my replies back. > > I finally decided to just uninstall and reinstall (and lose all my stuff - > it's a long story). > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bensonforums at gmail.com Tue Feb 3 16:22:46 2015 From: bensonforums at gmail.com (Bill Benson) Date: Tue, 3 Feb 2015 17:22:46 -0500 Subject: [AccessD] I couldn't post In-Reply-To: <54D05025.5000307@gmail.com> References: <54D02DB7.1060008@gmail.com> <54D05025.5000307@gmail.com> Message-ID: oops ... "BIBD" for my last post. On Mon, Feb 2, 2015 at 11:35 PM, John W. Colby wrote: > I don't think so. I am also running it on a Linux Mint machine which I am > playing with. > > Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a quad > core v7 core and a gig of Ram, otherwise identical. > > I am seriously considering building out a parallel processor using a bunch > of these. Lots of press on a bunch of guys doing this, using the old Pi. > > With a faster processor, quad cores and twice the memory, the overall > horsepower just went up radically. I'm thinking of maybe starting with 8 > of them. (32) one ghz cores and 8 gigs of ram anyone? > > I ordered a BeagleBone black last week (before this announcement) because > I love ucontroller / electronics stuff. I got my start in electronics back > in the late 60s, pre ucontroller. A few years back I started playing with > the Atmel uc series, with many different pin packages. It was a bit of a > pita to set up but was a ton-o-fun. I actually designed a pulse width > modulation motor driver, driving a cmos high power driver, driving a very > powerful motor from a ride on toy. > > The BeagleBone has most of that stuff built right in, in a package size > the same as the Pi. Well, not the high power cmos amp... But it has a > couple of dedicated 200 mhz controllers right on die for the real time > stuff to dr. > > Of course you have to program them in assembler... > > And just a slew of i/o. Cool stuff. > > > John W. Colby > > > On 2/2/2015 9:16 PM, Darryl Collins wrote: > >> Isn't Thunderbird unsupported by Mozilla these days? I thought they >> stopped working on it a while back now - maybe 18 months or more? >> >> Anyway, welcome Back John. >> >> Cheers >> Darryl >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces@ >> databaseadvisors.com] On Behalf Of John W. Colby >> Sent: Tuesday, 3 February 2015 1:09 PM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] I couldn't post >> >> I've been here forever, I just couldn't post because my Thunderbird >> install on my laptop insisted on using the wrong output email address and >> so AccessD servers kicked my replies back. >> >> I finally decided to just uninstall and reinstall (and lose all my stuff >> - it's a long story). >> >> -- >> John W. Colby >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 bensonforums at gmail.com Tue Feb 3 16:23:14 2015 From: bensonforums at gmail.com (Bill Benson) Date: Tue, 3 Feb 2015 17:23:14 -0500 Subject: [AccessD] I couldn't post In-Reply-To: References: <54D02DB7.1060008@gmail.com> <54D05025.5000307@gmail.com> Message-ID: That was meant to be IBID On Tue, Feb 3, 2015 at 5:22 PM, Bill Benson wrote: > oops ... "BIBD" for my last post. > > > On Mon, Feb 2, 2015 at 11:35 PM, John W. Colby wrote: > >> I don't think so. I am also running it on a Linux Mint machine which I >> am playing with. >> >> Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a >> quad core v7 core and a gig of Ram, otherwise identical. >> >> I am seriously considering building out a parallel processor using a >> bunch of these. Lots of press on a bunch of guys doing this, using the old >> Pi. >> >> With a faster processor, quad cores and twice the memory, the overall >> horsepower just went up radically. I'm thinking of maybe starting with 8 >> of them. (32) one ghz cores and 8 gigs of ram anyone? >> >> I ordered a BeagleBone black last week (before this announcement) because >> I love ucontroller / electronics stuff. I got my start in electronics back >> in the late 60s, pre ucontroller. A few years back I started playing with >> the Atmel uc series, with many different pin packages. It was a bit of a >> pita to set up but was a ton-o-fun. I actually designed a pulse width >> modulation motor driver, driving a cmos high power driver, driving a very >> powerful motor from a ride on toy. >> >> The BeagleBone has most of that stuff built right in, in a package size >> the same as the Pi. Well, not the high power cmos amp... But it has a >> couple of dedicated 200 mhz controllers right on die for the real time >> stuff to dr. >> >> Of course you have to program them in assembler... >> >> And just a slew of i/o. Cool stuff. >> >> >> John W. Colby >> >> >> On 2/2/2015 9:16 PM, Darryl Collins wrote: >> >>> Isn't Thunderbird unsupported by Mozilla these days? I thought they >>> stopped working on it a while back now - maybe 18 months or more? >>> >>> Anyway, welcome Back John. >>> >>> Cheers >>> Darryl >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces@ >>> databaseadvisors.com] On Behalf Of John W. Colby >>> Sent: Tuesday, 3 February 2015 1:09 PM >>> To: accessd at databaseadvisors.com >>> Subject: [AccessD] I couldn't post >>> >>> I've been here forever, I just couldn't post because my Thunderbird >>> install on my laptop insisted on using the wrong output email address and >>> so AccessD servers kicked my replies back. >>> >>> I finally decided to just uninstall and reinstall (and lose all my stuff >>> - it's a long story). >>> >>> -- >>> John W. Colby >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/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 Feb 3 16:32:31 2015 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 3 Feb 2015 22:32:31 +0000 Subject: [AccessD] I couldn't post In-Reply-To: <54D13FB8.4070204@gmail.com> References: <632907702.115104621.1422996940600.JavaMail.root@cds018>, <54D13FB8.4070204@gmail.com> Message-ID: <976E500DD0AF35409874A413967BFAEC017DADA5@EX2K10-MBX6.ads.qub.ac.uk> Great to see how you have mellowed over the years John (<: Martin Sent from Surface Pro From: John W. Colby Sent: ?Tuesday?, ?3? ?February? ?2015 ?21?:?39 To: Access Developers discussion and problem solving I was reading about snappy just the other day. A few months back I built a midrange AMD 6 core with 24 gigs RAM. I installed Windows 7 on it, but I ended up saving that into a VM image (I hope) and installing Linux Mint on that machine. I did so to allow me to get into Linux. So far it has been a PITA. I read an interesting article called something like "Linux is not Windows" about why Linux and Windows are so different and how best to approach Linux. All I can say is "yea yea, it still sux". In the first week of trying to do anything with it (even though this is Mint mind you) I typed more crap into the command line than I had in the entire last 20 years using Windows. In one stinking week. So Linux is DOS on steroids with a Gui that is barely used laid over the top. Or so it seems. I'm actually OK with that I guess, I was a DRDOS wizard back in the day, I can deal with the command line. I must say I find it amusing to listen to the Linux Gurus... "Yea, I use XYZ today but last month I was heavy into KJKL, but I didn't like the installer. Before that I was using..." And then there is the whole "what desktop are you using" issue. As if that makes any damned difference ANYWAY since you are constantly typing into a command window. It's like a mark of manhood to be able to say that you have used 47 different forks of Linux in the last two years, and 19 different desktop variants ON EACH ONE... Down here in the south we just carry a big gun to mark our manhood. Well... not me but those "manhood deficient" types. To be honest, I don't give a rat's patuty what Linux variant I use. I would prefer that the OS fade into the background and let me get some actual WORK DONE, hello come in. Instead of spending hours trying to figure out how to the the app installed. To say that this has been ... interesting... would be... well... a lie. I REALLY don't want to learn how to type crap into the command line, I want to get MariaDB installed and start using it. I want to get VMs up and running and start using them. I want to get Wine installed and start using it. Notice that in all cases I REALLY want to GET USING THEM. But to do that you gonna be a typin' in the command window! Say what you want about Windows but you click Install and wait. When it is done, you open the app you just installed and start using it. Windows (until Windows 8.x) was just a platform which hosted apps. You never actually DO (did) anything in Windows itself, you use apps ON Windows. Not so with Linux. Climbs down off the soap box. And so I have a honkin machine that runs Linux Mint. It does NOT run MariaDB (yet), not does it run VMs (yet). I think it runs Wine, but without much more command window typin I can't be sure. I can run Firefox and FreeOffice etc. Through the GUI no less. Yeaaaa. John W. Colby On 2/3/2015 3:55 PM, Jim Lawrence wrote: > Just posted the following on Facebook this morning: > > "Some people reading that both Windows 10 or Ubuntu can be installed, on the new PIs...but the software that can load is a specialize version of both. IoT (program) for Windows and Snappy for Ubuntu...both designed specifically for use in embedded devices. OTOH, Ubuntu has a server/terminal product which allows PIs to run as thin clients: https://help.ubuntu.com/community/UbuntuLTSP." > > There is a lot of interesting products out there. The Ubuntu stuff should run on Mint without issues. (Now that I have retired I prefer Linux distros over Windows ones and just use Windows products so to keep my hands in. > > Jim > > ----- Original Message ----- > From: "John W. Colby" > To: "Access Developers discussion and problem solving" > Sent: Monday, 2 February, 2015 8:35:49 PM > Subject: Re: [AccessD] I couldn't post > > I don't think so. I am also running it on a Linux Mint machine which I > am playing with. > > Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a > quad core v7 core and a gig of Ram, otherwise identical. > > I am seriously considering building out a parallel processor using a > bunch of these. Lots of press on a bunch of guys doing this, using the > old Pi. > > With a faster processor, quad cores and twice the memory, the overall > horsepower just went up radically. I'm thinking of maybe starting with > 8 of them. (32) one ghz cores and 8 gigs of ram anyone? > > I ordered a BeagleBone black last week (before this announcement) > because I love ucontroller / electronics stuff. I got my start in > electronics back in the late 60s, pre ucontroller. A few years back I > started playing with the Atmel uc series, with many different pin > packages. It was a bit of a pita to set up but was a ton-o-fun. I > actually designed a pulse width modulation motor driver, driving a cmos > high power driver, driving a very powerful motor from a ride on toy. > > The BeagleBone has most of that stuff built right in, in a package size > the same as the Pi. Well, not the high power cmos amp... But it has a > couple of dedicated 200 mhz controllers right on die for the real time > stuff to dr. > > Of course you have to program them in assembler... > > And just a slew of i/o. Cool stuff. > > > John W. Colby > > On 2/2/2015 9:16 PM, Darryl Collins wrote: >> Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? >> >> Anyway, welcome Back John. >> >> Cheers >> Darryl >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >> Sent: Tuesday, 3 February 2015 1:09 PM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] I couldn't post >> >> I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. >> >> I finally decided to just uninstall and reinstall (and lose all my stuff >> - it's a long story). >> >> -- >> John W. Colby >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 bradm at blackforestltd.com Tue Feb 3 16:43:31 2015 From: bradm at blackforestltd.com (Brad Marks) Date: Tue, 3 Feb 2015 22:43:31 +0000 Subject: [AccessD] Access Controlling Excel Via Windows Automation In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> Message-ID: Bill, Thanks for the tip. I checked for this and did not find it. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Tuesday, February 03, 2015 4:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation Did you (1) use late binding but nonetheless (2) left a reference to Excel? That would do it if the Excel you are using is not in the same location as the next user's. And it has happened to me. On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks wrote: > All, > > I don't have a lot of experience with this realm but I have had some > success using Access VBA to control Excel via Automation. > > I have one Access 2007 application that creates a number of reports. > Recently I have added new VBA code to also create an Excel file. This > works nicely on my development PC that has Access 2007 and Excel 2007. > > However, I have run into some problems when trying to deploy this > application on a machine that has Access 2010 Runtime and Excel 2013. > > All of the reports work properly via Access 2010 Runtime. > > However, when I try to run the VBA code that generates the Excel file, > the application hangs up. There are no error messages. > > I am using "Late Binding". > > I am not sure where to start looking. > > Should Access 2010 Runtime work properly in conjunction with Excel 2013? > (both are 32 bit) > > Is anyone else using this combination? > > I have thought about upgrading Access Runtime from 2010 to 2013, but I > would prefer to not do this if I can resolve the current problems. > > Thanks, > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 gmail.com Tue Feb 3 17:02:36 2015 From: jwcolby at gmail.com (John W. Colby) Date: Tue, 03 Feb 2015 18:02:36 -0500 Subject: [AccessD] I couldn't post In-Reply-To: <976E500DD0AF35409874A413967BFAEC017DADA5@EX2K10-MBX6.ads.qub.ac.uk> References: <632907702.115104621.1422996940600.JavaMail.root@cds018>, <54D13FB8.4070204@gmail.com> <976E500DD0AF35409874A413967BFAEC017DADA5@EX2K10-MBX6.ads.qub.ac.uk> Message-ID: <54D1538C.1030307@gmail.com> rotfl. I have! But am I wrong on any of that? ;) John W. Colby On 2/3/2015 5:32 PM, Martin Reid wrote: > Great to see how you have mellowed over the years John (<: > > Martin > > Sent from Surface Pro > > From: John W. Colby > Sent: ?Tuesday?, ?3? ?February? ?2015 ?21?:?39 > To: Access Developers discussion and problem solving > > I was reading about snappy just the other day. > > A few months back I built a midrange AMD 6 core with 24 gigs RAM. I > installed Windows 7 on it, but I ended up saving that into a VM image (I > hope) and installing Linux Mint on that machine. I did so to allow me > to get into Linux. So far it has been a PITA. I read an interesting > article called something like "Linux is not Windows" about why Linux and > Windows are so different and how best to approach Linux. All I can say > is "yea yea, it still sux". In the first week of trying to do anything > with it (even though this is Mint mind you) I typed more crap into the > command line than I had in the entire last 20 years using Windows. In > one stinking week. > > So Linux is DOS on steroids with a Gui that is barely used laid over the > top. Or so it seems. > > I'm actually OK with that I guess, I was a DRDOS wizard back in the day, > I can deal with the command line. > > I must say I find it amusing to listen to the Linux Gurus... "Yea, I use > XYZ today but last month I was heavy into KJKL, but I didn't like the > installer. Before that I was using..." And then there is the whole > "what desktop are you using" issue. As if that makes any damned > difference ANYWAY since you are constantly typing into a command window. > > It's like a mark of manhood to be able to say that you have used 47 > different forks of Linux in the last two years, and 19 different desktop > variants ON EACH ONE... Down here in the south we just carry a big gun > to mark our manhood. Well... not me but those "manhood deficient" types. > > To be honest, I don't give a rat's patuty what Linux variant I use. I > would prefer that the OS fade into the background and let me get some > actual WORK DONE, hello come in. Instead of spending hours trying to > figure out how to the the app installed. > > To say that this has been ... interesting... would be... well... a lie. > I REALLY don't want to learn how to type crap into the command line, I > want to get MariaDB installed and start using it. I want to get VMs up > and running and start using them. I want to get Wine installed and > start using it. Notice that in all cases I REALLY want to GET USING > THEM. But to do that you gonna be a typin' in the command window! > > Say what you want about Windows but you click Install and wait. When it > is done, you open the app you just installed and start using it. > Windows (until Windows 8.x) was just a platform which hosted apps. You > never actually DO (did) anything in Windows itself, you use apps ON Windows. > > Not so with Linux. > > Climbs down off the soap box. > > And so I have a honkin machine that runs Linux Mint. It does NOT run > MariaDB (yet), not does it run VMs (yet). I think it runs Wine, but > without much more command window typin I can't be sure. I can run > Firefox and FreeOffice etc. Through the GUI no less. Yeaaaa. > > John W. Colby > > On 2/3/2015 3:55 PM, Jim Lawrence wrote: >> Just posted the following on Facebook this morning: >> >> "Some people reading that both Windows 10 or Ubuntu can be installed, on the new PIs...but the software that can load is a specialize version of both. IoT (program) for Windows and Snappy for Ubuntu...both designed specifically for use in embedded devices. OTOH, Ubuntu has a server/terminal product which allows PIs to run as thin clients: https://help.ubuntu.com/community/UbuntuLTSP." >> >> There is a lot of interesting products out there. The Ubuntu stuff should run on Mint without issues. (Now that I have retired I prefer Linux distros over Windows ones and just use Windows products so to keep my hands in. >> >> Jim >> >> ----- Original Message ----- >> From: "John W. Colby" >> To: "Access Developers discussion and problem solving" >> Sent: Monday, 2 February, 2015 8:35:49 PM >> Subject: Re: [AccessD] I couldn't post >> >> I don't think so. I am also running it on a Linux Mint machine which I >> am playing with. >> >> Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a >> quad core v7 core and a gig of Ram, otherwise identical. >> >> I am seriously considering building out a parallel processor using a >> bunch of these. Lots of press on a bunch of guys doing this, using the >> old Pi. >> >> With a faster processor, quad cores and twice the memory, the overall >> horsepower just went up radically. I'm thinking of maybe starting with >> 8 of them. (32) one ghz cores and 8 gigs of ram anyone? >> >> I ordered a BeagleBone black last week (before this announcement) >> because I love ucontroller / electronics stuff. I got my start in >> electronics back in the late 60s, pre ucontroller. A few years back I >> started playing with the Atmel uc series, with many different pin >> packages. It was a bit of a pita to set up but was a ton-o-fun. I >> actually designed a pulse width modulation motor driver, driving a cmos >> high power driver, driving a very powerful motor from a ride on toy. >> >> The BeagleBone has most of that stuff built right in, in a package size >> the same as the Pi. Well, not the high power cmos amp... But it has a >> couple of dedicated 200 mhz controllers right on die for the real time >> stuff to dr. >> >> Of course you have to program them in assembler... >> >> And just a slew of i/o. Cool stuff. >> >> >> John W. Colby >> >> On 2/2/2015 9:16 PM, Darryl Collins wrote: >>> Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? >>> >>> Anyway, welcome Back John. >>> >>> Cheers >>> Darryl >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >>> Sent: Tuesday, 3 February 2015 1:09 PM >>> To: accessd at databaseadvisors.com >>> Subject: [AccessD] I couldn't post >>> >>> I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. >>> >>> I finally decided to just uninstall and reinstall (and lose all my stuff >>> - it's a long story). >>> >>> -- >>> John W. Colby >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/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 Feb 3 17:10:14 2015 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 3 Feb 2015 23:10:14 +0000 Subject: [AccessD] I couldn't post In-Reply-To: <54D1538C.1030307@gmail.com> References: <632907702.115104621.1422996940600.JavaMail.root@cds018>, <54D13FB8.4070204@gmail.com> <976E500DD0AF35409874A413967BFAEC017DADA5@EX2K10-MBX6.ads.qub.ac.uk>, <54D1538C.1030307@gmail.com> Message-ID: <976E500DD0AF35409874A413967BFAEC017DAEA5@EX2K10-MBX6.ads.qub.ac.uk> Must admit reminded me of some of the Unix/Linux people in work Martin Sent from Surface Pro From: John W. Colby Sent: ?Tuesday?, ?3? ?February? ?2015 ?23?:?05 To: Access Developers discussion and problem solving rotfl. I have! But am I wrong on any of that? ;) John W. Colby On 2/3/2015 5:32 PM, Martin Reid wrote: > Great to see how you have mellowed over the years John (<: > > Martin > > Sent from Surface Pro > > From: John W. Colby > Sent: ?Tuesday?, ?3? ?February? ?2015 ?21?:?39 > To: Access Developers discussion and problem solving > > I was reading about snappy just the other day. > > A few months back I built a midrange AMD 6 core with 24 gigs RAM. I > installed Windows 7 on it, but I ended up saving that into a VM image (I > hope) and installing Linux Mint on that machine. I did so to allow me > to get into Linux. So far it has been a PITA. I read an interesting > article called something like "Linux is not Windows" about why Linux and > Windows are so different and how best to approach Linux. All I can say > is "yea yea, it still sux". In the first week of trying to do anything > with it (even though this is Mint mind you) I typed more crap into the > command line than I had in the entire last 20 years using Windows. In > one stinking week. > > So Linux is DOS on steroids with a Gui that is barely used laid over the > top. Or so it seems. > > I'm actually OK with that I guess, I was a DRDOS wizard back in the day, > I can deal with the command line. > > I must say I find it amusing to listen to the Linux Gurus... "Yea, I use > XYZ today but last month I was heavy into KJKL, but I didn't like the > installer. Before that I was using..." And then there is the whole > "what desktop are you using" issue. As if that makes any damned > difference ANYWAY since you are constantly typing into a command window. > > It's like a mark of manhood to be able to say that you have used 47 > different forks of Linux in the last two years, and 19 different desktop > variants ON EACH ONE... Down here in the south we just carry a big gun > to mark our manhood. Well... not me but those "manhood deficient" types. > > To be honest, I don't give a rat's patuty what Linux variant I use. I > would prefer that the OS fade into the background and let me get some > actual WORK DONE, hello come in. Instead of spending hours trying to > figure out how to the the app installed. > > To say that this has been ... interesting... would be... well... a lie. > I REALLY don't want to learn how to type crap into the command line, I > want to get MariaDB installed and start using it. I want to get VMs up > and running and start using them. I want to get Wine installed and > start using it. Notice that in all cases I REALLY want to GET USING > THEM. But to do that you gonna be a typin' in the command window! > > Say what you want about Windows but you click Install and wait. When it > is done, you open the app you just installed and start using it. > Windows (until Windows 8.x) was just a platform which hosted apps. You > never actually DO (did) anything in Windows itself, you use apps ON Windows. > > Not so with Linux. > > Climbs down off the soap box. > > And so I have a honkin machine that runs Linux Mint. It does NOT run > MariaDB (yet), not does it run VMs (yet). I think it runs Wine, but > without much more command window typin I can't be sure. I can run > Firefox and FreeOffice etc. Through the GUI no less. Yeaaaa. > > John W. Colby > > On 2/3/2015 3:55 PM, Jim Lawrence wrote: >> Just posted the following on Facebook this morning: >> >> "Some people reading that both Windows 10 or Ubuntu can be installed, on the new PIs...but the software that can load is a specialize version of both. IoT (program) for Windows and Snappy for Ubuntu...both designed specifically for use in embedded devices. OTOH, Ubuntu has a server/terminal product which allows PIs to run as thin clients: https://help.ubuntu.com/community/UbuntuLTSP." >> >> There is a lot of interesting products out there. The Ubuntu stuff should run on Mint without issues. (Now that I have retired I prefer Linux distros over Windows ones and just use Windows products so to keep my hands in. >> >> Jim >> >> ----- Original Message ----- >> From: "John W. Colby" >> To: "Access Developers discussion and problem solving" >> Sent: Monday, 2 February, 2015 8:35:49 PM >> Subject: Re: [AccessD] I couldn't post >> >> I don't think so. I am also running it on a Linux Mint machine which I >> am playing with. >> >> Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a >> quad core v7 core and a gig of Ram, otherwise identical. >> >> I am seriously considering building out a parallel processor using a >> bunch of these. Lots of press on a bunch of guys doing this, using the >> old Pi. >> >> With a faster processor, quad cores and twice the memory, the overall >> horsepower just went up radically. I'm thinking of maybe starting with >> 8 of them. (32) one ghz cores and 8 gigs of ram anyone? >> >> I ordered a BeagleBone black last week (before this announcement) >> because I love ucontroller / electronics stuff. I got my start in >> electronics back in the late 60s, pre ucontroller. A few years back I >> started playing with the Atmel uc series, with many different pin >> packages. It was a bit of a pita to set up but was a ton-o-fun. I >> actually designed a pulse width modulation motor driver, driving a cmos >> high power driver, driving a very powerful motor from a ride on toy. >> >> The BeagleBone has most of that stuff built right in, in a package size >> the same as the Pi. Well, not the high power cmos amp... But it has a >> couple of dedicated 200 mhz controllers right on die for the real time >> stuff to dr. >> >> Of course you have to program them in assembler... >> >> And just a slew of i/o. Cool stuff. >> >> >> John W. Colby >> >> On 2/2/2015 9:16 PM, Darryl Collins wrote: >>> Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? >>> >>> Anyway, welcome Back John. >>> >>> Cheers >>> Darryl >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >>> Sent: Tuesday, 3 February 2015 1:09 PM >>> To: accessd at databaseadvisors.com >>> Subject: [AccessD] I couldn't post >>> >>> I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. >>> >>> I finally decided to just uninstall and reinstall (and lose all my stuff >>> - it's a long story). >>> >>> -- >>> John W. Colby >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/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 jwcolby at gmail.com Tue Feb 3 17:18:06 2015 From: jwcolby at gmail.com (John W. Colby) Date: Tue, 03 Feb 2015 18:18:06 -0500 Subject: [AccessD] I couldn't post In-Reply-To: <976E500DD0AF35409874A413967BFAEC017DADA5@EX2K10-MBX6.ads.qub.ac.uk> References: <632907702.115104621.1422996940600.JavaMail.root@cds018>, <54D13FB8.4070204@gmail.com> <976E500DD0AF35409874A413967BFAEC017DADA5@EX2K10-MBX6.ads.qub.ac.uk> Message-ID: <54D1572E.1030005@gmail.com> In the end I will be a linux guru. No choice if I want to do ucontrollers which are all (mostly) driven by linux. Command window here I come! I was rolling on the floor last night. I'm watching a youtube about setting up a tool chain for a gui C++ compiler environment. An HOUR into the thing he had never left the command window. An hour into the thing he JUST got the whole thing installed and running, and finally got a graphics "hello world" to run on the BeagleBone, but he was STILL typing into the command window on a VM (running Linux on a Windows machine). So an hour of typing crap into a command window to get a (GUI) programming environment installed on Linux, running in a VM on Windows, and he hadn't even yet fired up the C++ Gui environment. LOTS of conversations to the camera about "well because we are running this here linux variant we have to go do this ... clickety clack command window typing..." "And we LIKE it that way!!!" Men from the boys kinda stuff... I just can't wait until I too can stick my chest out (or pull my gut in) and rattle off the 47 different variants of Linux I'VE used in the last two years. ;) John W. Colby On 2/3/2015 5:32 PM, Martin Reid wrote: > Great to see how you have mellowed over the years John (<: > > Martin > > Sent from Surface Pro > > From: John W. Colby > Sent: ?Tuesday?, ?3? ?February? ?2015 ?21?:?39 > To: Access Developers discussion and problem solving > > I was reading about snappy just the other day. > > A few months back I built a midrange AMD 6 core with 24 gigs RAM. I > installed Windows 7 on it, but I ended up saving that into a VM image (I > hope) and installing Linux Mint on that machine. I did so to allow me > to get into Linux. So far it has been a PITA. I read an interesting > article called something like "Linux is not Windows" about why Linux and > Windows are so different and how best to approach Linux. All I can say > is "yea yea, it still sux". In the first week of trying to do anything > with it (even though this is Mint mind you) I typed more crap into the > command line than I had in the entire last 20 years using Windows. In > one stinking week. > > So Linux is DOS on steroids with a Gui that is barely used laid over the > top. Or so it seems. > > I'm actually OK with that I guess, I was a DRDOS wizard back in the day, > I can deal with the command line. > > I must say I find it amusing to listen to the Linux Gurus... "Yea, I use > XYZ today but last month I was heavy into KJKL, but I didn't like the > installer. Before that I was using..." And then there is the whole > "what desktop are you using" issue. As if that makes any damned > difference ANYWAY since you are constantly typing into a command window. > > It's like a mark of manhood to be able to say that you have used 47 > different forks of Linux in the last two years, and 19 different desktop > variants ON EACH ONE... Down here in the south we just carry a big gun > to mark our manhood. Well... not me but those "manhood deficient" types. > > To be honest, I don't give a rat's patuty what Linux variant I use. I > would prefer that the OS fade into the background and let me get some > actual WORK DONE, hello come in. Instead of spending hours trying to > figure out how to the the app installed. > > To say that this has been ... interesting... would be... well... a lie. > I REALLY don't want to learn how to type crap into the command line, I > want to get MariaDB installed and start using it. I want to get VMs up > and running and start using them. I want to get Wine installed and > start using it. Notice that in all cases I REALLY want to GET USING > THEM. But to do that you gonna be a typin' in the command window! > > Say what you want about Windows but you click Install and wait. When it > is done, you open the app you just installed and start using it. > Windows (until Windows 8.x) was just a platform which hosted apps. You > never actually DO (did) anything in Windows itself, you use apps ON Windows. > > Not so with Linux. > > Climbs down off the soap box. > > And so I have a honkin machine that runs Linux Mint. It does NOT run > MariaDB (yet), not does it run VMs (yet). I think it runs Wine, but > without much more command window typin I can't be sure. I can run > Firefox and FreeOffice etc. Through the GUI no less. Yeaaaa. > > John W. Colby > > On 2/3/2015 3:55 PM, Jim Lawrence wrote: >> Just posted the following on Facebook this morning: >> >> "Some people reading that both Windows 10 or Ubuntu can be installed, on the new PIs...but the software that can load is a specialize version of both. IoT (program) for Windows and Snappy for Ubuntu...both designed specifically for use in embedded devices. OTOH, Ubuntu has a server/terminal product which allows PIs to run as thin clients: https://help.ubuntu.com/community/UbuntuLTSP." >> >> There is a lot of interesting products out there. The Ubuntu stuff should run on Mint without issues. (Now that I have retired I prefer Linux distros over Windows ones and just use Windows products so to keep my hands in. >> >> Jim >> >> ----- Original Message ----- >> From: "John W. Colby" >> To: "Access Developers discussion and problem solving" >> Sent: Monday, 2 February, 2015 8:35:49 PM >> Subject: Re: [AccessD] I couldn't post >> >> I don't think so. I am also running it on a Linux Mint machine which I >> am playing with. >> >> Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a >> quad core v7 core and a gig of Ram, otherwise identical. >> >> I am seriously considering building out a parallel processor using a >> bunch of these. Lots of press on a bunch of guys doing this, using the >> old Pi. >> >> With a faster processor, quad cores and twice the memory, the overall >> horsepower just went up radically. I'm thinking of maybe starting with >> 8 of them. (32) one ghz cores and 8 gigs of ram anyone? >> >> I ordered a BeagleBone black last week (before this announcement) >> because I love ucontroller / electronics stuff. I got my start in >> electronics back in the late 60s, pre ucontroller. A few years back I >> started playing with the Atmel uc series, with many different pin >> packages. It was a bit of a pita to set up but was a ton-o-fun. I >> actually designed a pulse width modulation motor driver, driving a cmos >> high power driver, driving a very powerful motor from a ride on toy. >> >> The BeagleBone has most of that stuff built right in, in a package size >> the same as the Pi. Well, not the high power cmos amp... But it has a >> couple of dedicated 200 mhz controllers right on die for the real time >> stuff to dr. >> >> Of course you have to program them in assembler... >> >> And just a slew of i/o. Cool stuff. >> >> >> John W. Colby >> >> On 2/2/2015 9:16 PM, Darryl Collins wrote: >>> Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? >>> >>> Anyway, welcome Back John. >>> >>> Cheers >>> Darryl >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >>> Sent: Tuesday, 3 February 2015 1:09 PM >>> To: accessd at databaseadvisors.com >>> Subject: [AccessD] I couldn't post >>> >>> I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. >>> >>> I finally decided to just uninstall and reinstall (and lose all my stuff >>> - it's a long story). >>> >>> -- >>> John W. Colby >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/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 Tue Feb 3 17:48:55 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 3 Feb 2015 16:48:55 -0700 (MST) Subject: [AccessD] API calls crashing In-Reply-To: <1732839845.6072.1422975955447.JavaMail.open-xchange@oxbaltgw10.schlund.de> Message-ID: <2026562756.115249199.1423007335122.JavaMail.root@cds018> I have heard of a few such issues in a while. It appears that various updataes have broken older code... Right now I have a copy of Access97 and even a copy of Informix running on one of my computers via Wine (MSAccess) and DosBox (Informix). Though neither package is currently running a operational application, I have not experienced any errors. Option? Jim ----- Original Message ----- From: "Andy Lacey" To: "Access Developers discussion and problem solving" Sent: Tuesday, 3 February, 2015 7:05:55 AM Subject: [AccessD] API calls crashing I am totally at a loss on this. My big Access 97 app (I know, I know, but it works) is crashing on one machine, a machine it has run on for years. I've tracked it down to API calls. Any time it calls a Kernel32 API it just exits - no message, no nothing, just closes. Now it's perfectly possible that central ICT here have installed or updated something overnight which has interfered, in fact I can only think that must have happened. Question is, what can I do about it? This is a typical api call which crashes out: Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long I know I could use Environ to get the computer name but that's not the point. There are lots of similar calls and they're all failing. Help please. Andy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Tue Feb 3 17:52:35 2015 From: dbdoug at gmail.com (Doug Steele) Date: Tue, 3 Feb 2015 15:52:35 -0800 Subject: [AccessD] OT: Working with Mac Mini from MS Windows via RealVNC. Was: Re[2]: Microsoft stock price crashed today In-Reply-To: <1422909798.140566194@f221.i.mail.ru> References: <6EE85296E0E742168E2302D884BF2D13@HAL9007> <1422824782.373023110@f335.i.mail.ru> <1422909798.140566194@f221.i.mail.ru> Message-ID: Hi Shamil: Replies are embedded in questions On Mon, Feb 2, 2015 at 12:43 PM, Salakhetdinov Shamil wrote: > Hi Doug -- > > Thank you, as you're not on dba-Tech, I will try to ask you my questions > on Mac Mini usage here as I suppose your answers would be interesting for > this group members: > > Main questions: > > - What (wireless) keyboard and mouse do you use with your Mac Mini? > I normally use a wired USB large Apple keyboard and an Apple Bluetooth trackpad; I just tried it successfully with an Apple Bluetooth keyboard and a Logitech mk360 USB dongle wireless keyboard and mouse. They worked as soon as they were plugged in. > > - Would it be a viable option to use a RealVNC Viewer (free version as > paid one doesn't exists) running on an MS Windows system to control a Mac > Mini (with RealVNC Server paid version)? > I've got no experience with this, but I imagine it would be fine. From what I've read, OSX works well with the VNC standard. > > Secondary questions, just reply if you have any experience and/or wish to > share your opinion: > > - What Mac Mini configuration would be good enough for iPhone/iPad > development with iOS 8 SDK and XCode? > I've done some XCode work. My Mini is a 2.3Ghz I7 (late 2012) with 16gb ram, and it runs very well. I can have two Windows Parallels virtual machines running and MS Access is just fine. My Macbook Pro is a 2.3Ghz I5 (early 2011) with 8gb ram. It's perfectly adequate for XCode development, but I can't run more than one Windows VM without bogging down. Both machines are running Yosemite. Based on my experience with my Macbook Air, which has an SSD instead of a HD, I think that a Mini with an SSD drive would be a rocket. > > - Have you ever tried to connect a Mac Mini via HDMI to a Smart TV as > e.g. Samsung UN40H6350 40-Inch 1080p 120Hz Smart LED TV ( > http://tinyurl.com/lvgmw9j) to use it as a display? Thank you. > No, I haven't. > > -- Shamil > > From TSeptav at Uniserve.com Tue Feb 3 16:09:23 2015 From: TSeptav at Uniserve.com (Tony Septav) Date: Tue, 3 Feb 2015 16:09:23 -0600 Subject: [AccessD] I'm baaaack! In-Reply-To: <54D02D3D.7040400@gmail.com> Message-ID: <201502032353.t13NrwYk003740@databaseadvisors.com> Hey John I never realized you were gone. Just kidding. But it was so pleasant without that old bumptious fellow and his EMails. Tony Septav Nanaimo, BC Canada -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: February-02-15 8:07 PM To: accessd at databaseadvisors.com Subject: [AccessD] I'm baaaack! ;) -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.5645 / Virus Database: 4273/9047 - Release Date: 02/02/15 From TSeptav at Uniserve.com Tue Feb 3 17:17:02 2015 From: TSeptav at Uniserve.com (Tony Septav) Date: Tue, 3 Feb 2015 17:17:02 -0600 Subject: [AccessD] API calls crashing In-Reply-To: <1732839845.6072.1422975955447.JavaMail.open-xchange@oxbaltgw10.schlund.de> Message-ID: <201502040101.t1411WXC003898@databaseadvisors.com> Hey Andy Did they update the version of Windows on that machine? Tony Septav Nanaimo, BC Canada -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: February-03-15 9:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] API calls crashing I am totally at a loss on this. My big Access 97 app (I know, I know, but it works) is crashing on one machine, a machine it has run on for years. I've tracked it down to API calls. Any time it calls a Kernel32 API it just exits - no message, no nothing, just closes. Now it's perfectly possible that central ICT here have installed or updated something overnight which has interfered, in fact I can only think that must have happened. Question is, what can I do about it? This is a typical api call which crashes out: Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long I know I could use Environ to get the computer name but that's not the point. There are lots of similar calls and they're all failing. Help please. Andy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.5645 / Virus Database: 4273/9047 - Release Date: 02/02/15 From jwcolby at gmail.com Tue Feb 3 20:37:44 2015 From: jwcolby at gmail.com (John W. Colby) Date: Tue, 03 Feb 2015 21:37:44 -0500 Subject: [AccessD] I'm baaaack! In-Reply-To: <201502032353.t13NrwYk003740@databaseadvisors.com> References: <201502032353.t13NrwYk003740@databaseadvisors.com> Message-ID: <54D185F8.4080707@gmail.com> >But it was so pleasant without that old bumptious fellow and his EMails. I know huh! Septavsaurus. ;) John W. Colby On 2/3/2015 5:09 PM, Tony Septav wrote: > Hey John > I never realized you were gone. > Just kidding. > But it was so pleasant without that old bumptious fellow and his EMails. > > Tony Septav > Nanaimo, BC > Canada > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: February-02-15 8:07 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] I'm baaaack! > > ;) > From accessd at shaw.ca Tue Feb 3 20:59:20 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 3 Feb 2015 19:59:20 -0700 (MST) Subject: [AccessD] I couldn't post In-Reply-To: <54D134BE.1040108@gmail.com> Message-ID: <1581762281.115415199.1423018760503.JavaMail.root@cds018> :-) Jim ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Tuesday, 3 February, 2015 12:51:10 PM Subject: Re: [AccessD] I couldn't post Yea yea. I hate web applications as they tend to be web clunky. Gmail's web app sucks so bad it is almost unusable. Not to mention, no web no mail. Glad you like it though. John W. Colby On 2/3/2015 3:45 PM, Jim Lawrence wrote: > An aside: With so much moving to the Cloud, running on the internet and being the major source all hacks and malware, mail clients, at least on the desktop, are slowing disappearing. I use a Zimbra web client myself. > > Jim > > ----- Original Message ----- > From: "Darryl Collins" > To: "Access Developers discussion and problem solving" > Sent: Monday, 2 February, 2015 6:16:05 PM > Subject: Re: [AccessD] I couldn't post > > Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? > > Anyway, welcome Back John. > > Cheers > Darryl > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, 3 February 2015 1:09 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] I couldn't post > > I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. > > I finally decided to just uninstall and reinstall (and lose all my stuff > - it's a long story). > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Tue Feb 3 21:31:09 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 3 Feb 2015 20:31:09 -0700 (MST) Subject: [AccessD] I couldn't post In-Reply-To: <54D13FB8.4070204@gmail.com> Message-ID: <297872711.115432313.1423020669501.JavaMail.root@cds018> You are obviously having the worse experiences with it. I tend to be lazy and use the terminal only when all else fails and mostly for speed. I tend to find Windows too dumbed down and unless your willing to go down to the command prompt network issues can be impossible to fix. I must relate a story of a client that I helped a couple (three) of years ago. They had all Windows XP boxes but decided to experiment by setting a dozen by upgrading to Linux (in this case Ubuntu), to save money. It took only four hours, on a Saturday afternoon, to install a dozen new system, connect to all the printer, the network, the internet and install all the office software. A young lady there (24-25), who knew basically nothing about computers, helped me with the install. I thought that I might be supporting them for years, one way of another, but it was not so. She just picked the ball up and ran with it. I understand the whole office (50 desktops) and all the servers are now running Linux and everything runs flawlessly. So with no computer system training or experience (thank God for Google), this young person did all this without any help from me and she just loves it. The truth is that she was young and didn't have to unlearn any bad habits. I have had no problem with Linux but back in the day, I was a certified SCO Unix installer, so it was just like being back home again. This does not mean that I do not like Windows; it is just that the moment we step away from the desktop and move into the world of the internet, its a Linux universe out there. Don't give up on Linux...it is hardly smarter than you are and I have found it to be great fun as it has all the latest and greatest technologies, first. As Satya Nadella, CEO of Microsoft say, "We love Linux." Jim ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Tuesday, 3 February, 2015 1:38:00 PM Subject: Re: [AccessD] I couldn't post I was reading about snappy just the other day. A few months back I built a midrange AMD 6 core with 24 gigs RAM. I installed Windows 7 on it, but I ended up saving that into a VM image (I hope) and installing Linux Mint on that machine. I did so to allow me to get into Linux. So far it has been a PITA. I read an interesting article called something like "Linux is not Windows" about why Linux and Windows are so different and how best to approach Linux. All I can say is "yea yea, it still sux". In the first week of trying to do anything with it (even though this is Mint mind you) I typed more crap into the command line than I had in the entire last 20 years using Windows. In one stinking week. So Linux is DOS on steroids with a Gui that is barely used laid over the top. Or so it seems. I'm actually OK with that I guess, I was a DRDOS wizard back in the day, I can deal with the command line. I must say I find it amusing to listen to the Linux Gurus... "Yea, I use XYZ today but last month I was heavy into KJKL, but I didn't like the installer. Before that I was using..." And then there is the whole "what desktop are you using" issue. As if that makes any damned difference ANYWAY since you are constantly typing into a command window. It's like a mark of manhood to be able to say that you have used 47 different forks of Linux in the last two years, and 19 different desktop variants ON EACH ONE... Down here in the south we just carry a big gun to mark our manhood. Well... not me but those "manhood deficient" types. To be honest, I don't give a rat's patuty what Linux variant I use. I would prefer that the OS fade into the background and let me get some actual WORK DONE, hello come in. Instead of spending hours trying to figure out how to the the app installed. To say that this has been ... interesting... would be... well... a lie. I REALLY don't want to learn how to type crap into the command line, I want to get MariaDB installed and start using it. I want to get VMs up and running and start using them. I want to get Wine installed and start using it. Notice that in all cases I REALLY want to GET USING THEM. But to do that you gonna be a typin' in the command window! Say what you want about Windows but you click Install and wait. When it is done, you open the app you just installed and start using it. Windows (until Windows 8.x) was just a platform which hosted apps. You never actually DO (did) anything in Windows itself, you use apps ON Windows. Not so with Linux. Climbs down off the soap box. And so I have a honkin machine that runs Linux Mint. It does NOT run MariaDB (yet), not does it run VMs (yet). I think it runs Wine, but without much more command window typin I can't be sure. I can run Firefox and FreeOffice etc. Through the GUI no less. Yeaaaa. John W. Colby On 2/3/2015 3:55 PM, Jim Lawrence wrote: > Just posted the following on Facebook this morning: > > "Some people reading that both Windows 10 or Ubuntu can be installed, on the new PIs...but the software that can load is a specialize version of both. IoT (program) for Windows and Snappy for Ubuntu...both designed specifically for use in embedded devices. OTOH, Ubuntu has a server/terminal product which allows PIs to run as thin clients: https://help.ubuntu.com/community/UbuntuLTSP." > > There is a lot of interesting products out there. The Ubuntu stuff should run on Mint without issues. (Now that I have retired I prefer Linux distros over Windows ones and just use Windows products so to keep my hands in. > > Jim > > ----- Original Message ----- > From: "John W. Colby" > To: "Access Developers discussion and problem solving" > Sent: Monday, 2 February, 2015 8:35:49 PM > Subject: Re: [AccessD] I couldn't post > > I don't think so. I am also running it on a Linux Mint machine which I > am playing with. > > Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a > quad core v7 core and a gig of Ram, otherwise identical. > > I am seriously considering building out a parallel processor using a > bunch of these. Lots of press on a bunch of guys doing this, using the > old Pi. > > With a faster processor, quad cores and twice the memory, the overall > horsepower just went up radically. I'm thinking of maybe starting with > 8 of them. (32) one ghz cores and 8 gigs of ram anyone? > > I ordered a BeagleBone black last week (before this announcement) > because I love ucontroller / electronics stuff. I got my start in > electronics back in the late 60s, pre ucontroller. A few years back I > started playing with the Atmel uc series, with many different pin > packages. It was a bit of a pita to set up but was a ton-o-fun. I > actually designed a pulse width modulation motor driver, driving a cmos > high power driver, driving a very powerful motor from a ride on toy. > > The BeagleBone has most of that stuff built right in, in a package size > the same as the Pi. Well, not the high power cmos amp... But it has a > couple of dedicated 200 mhz controllers right on die for the real time > stuff to dr. > > Of course you have to program them in assembler... > > And just a slew of i/o. Cool stuff. > > > John W. Colby > > On 2/2/2015 9:16 PM, Darryl Collins wrote: >> Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? >> >> Anyway, welcome Back John. >> >> Cheers >> Darryl >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >> Sent: Tuesday, 3 February 2015 1:09 PM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] I couldn't post >> >> I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. >> >> I finally decided to just uninstall and reinstall (and lose all my stuff >> - it's a long story). >> >> -- >> John W. Colby >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 Tue Feb 3 21:37:47 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 3 Feb 2015 20:37:47 -0700 (MST) Subject: [AccessD] I couldn't post In-Reply-To: Message-ID: <1716108438.115437430.1423021067804.JavaMail.root@cds018> ? Jim ----- Original Message ----- From: "Bill Benson" To: "Access Developers discussion and problem solving" Sent: Tuesday, 3 February, 2015 2:23:14 PM Subject: Re: [AccessD] I couldn't post That was meant to be IBID On Tue, Feb 3, 2015 at 5:22 PM, Bill Benson wrote: > oops ... "BIBD" for my last post. > > > On Mon, Feb 2, 2015 at 11:35 PM, John W. Colby wrote: > >> I don't think so. I am also running it on a Linux Mint machine which I >> am playing with. >> >> Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a >> quad core v7 core and a gig of Ram, otherwise identical. >> >> I am seriously considering building out a parallel processor using a >> bunch of these. Lots of press on a bunch of guys doing this, using the old >> Pi. >> >> With a faster processor, quad cores and twice the memory, the overall >> horsepower just went up radically. I'm thinking of maybe starting with 8 >> of them. (32) one ghz cores and 8 gigs of ram anyone? >> >> I ordered a BeagleBone black last week (before this announcement) because >> I love ucontroller / electronics stuff. I got my start in electronics back >> in the late 60s, pre ucontroller. A few years back I started playing with >> the Atmel uc series, with many different pin packages. It was a bit of a >> pita to set up but was a ton-o-fun. I actually designed a pulse width >> modulation motor driver, driving a cmos high power driver, driving a very >> powerful motor from a ride on toy. >> >> The BeagleBone has most of that stuff built right in, in a package size >> the same as the Pi. Well, not the high power cmos amp... But it has a >> couple of dedicated 200 mhz controllers right on die for the real time >> stuff to dr. >> >> Of course you have to program them in assembler... >> >> And just a slew of i/o. Cool stuff. >> >> >> John W. Colby >> >> >> On 2/2/2015 9:16 PM, Darryl Collins wrote: >> >>> Isn't Thunderbird unsupported by Mozilla these days? I thought they >>> stopped working on it a while back now - maybe 18 months or more? >>> >>> Anyway, welcome Back John. >>> >>> Cheers >>> Darryl >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces@ >>> databaseadvisors.com] On Behalf Of John W. Colby >>> Sent: Tuesday, 3 February 2015 1:09 PM >>> To: accessd at databaseadvisors.com >>> Subject: [AccessD] I couldn't post >>> >>> I've been here forever, I just couldn't post because my Thunderbird >>> install on my laptop insisted on using the wrong output email address and >>> so AccessD servers kicked my replies back. >>> >>> I finally decided to just uninstall and reinstall (and lose all my stuff >>> - it's a long story). >>> >>> -- >>> John W. Colby >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/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 accessd at shaw.ca Tue Feb 3 21:45:56 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 3 Feb 2015 20:45:56 -0700 (MST) Subject: [AccessD] I couldn't post In-Reply-To: <976E500DD0AF35409874A413967BFAEC017DAEA5@EX2K10-MBX6.ads.qub.ac.uk> Message-ID: <624271731.115441409.1423021556455.JavaMail.root@cds018> Do they have long white beards and talk to you as if you're little more than a ignorant child? If not then you haven't met any real Unix/Linux guru yet. ;-) Jim ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Tuesday, 3 February, 2015 3:10:14 PM Subject: Re: [AccessD] I couldn't post Must admit reminded me of some of the Unix/Linux people in work Martin Sent from Surface Pro From: John W. Colby Sent: ?Tuesday?, ?3? ?February? ?2015 ?23?:?05 To: Access Developers discussion and problem solving rotfl. I have! But am I wrong on any of that? ;) John W. Colby On 2/3/2015 5:32 PM, Martin Reid wrote: > Great to see how you have mellowed over the years John (<: > > Martin > > Sent from Surface Pro > > From: John W. Colby > Sent: ?Tuesday?, ?3? ?February? ?2015 ?21?:?39 > To: Access Developers discussion and problem solving > > I was reading about snappy just the other day. > > A few months back I built a midrange AMD 6 core with 24 gigs RAM. I > installed Windows 7 on it, but I ended up saving that into a VM image (I > hope) and installing Linux Mint on that machine. I did so to allow me > to get into Linux. So far it has been a PITA. I read an interesting > article called something like "Linux is not Windows" about why Linux and > Windows are so different and how best to approach Linux. All I can say > is "yea yea, it still sux". In the first week of trying to do anything > with it (even though this is Mint mind you) I typed more crap into the > command line than I had in the entire last 20 years using Windows. In > one stinking week. > > So Linux is DOS on steroids with a Gui that is barely used laid over the > top. Or so it seems. > > I'm actually OK with that I guess, I was a DRDOS wizard back in the day, > I can deal with the command line. > > I must say I find it amusing to listen to the Linux Gurus... "Yea, I use > XYZ today but last month I was heavy into KJKL, but I didn't like the > installer. Before that I was using..." And then there is the whole > "what desktop are you using" issue. As if that makes any damned > difference ANYWAY since you are constantly typing into a command window. > > It's like a mark of manhood to be able to say that you have used 47 > different forks of Linux in the last two years, and 19 different desktop > variants ON EACH ONE... Down here in the south we just carry a big gun > to mark our manhood. Well... not me but those "manhood deficient" types. > > To be honest, I don't give a rat's patuty what Linux variant I use. I > would prefer that the OS fade into the background and let me get some > actual WORK DONE, hello come in. Instead of spending hours trying to > figure out how to the the app installed. > > To say that this has been ... interesting... would be... well... a lie. > I REALLY don't want to learn how to type crap into the command line, I > want to get MariaDB installed and start using it. I want to get VMs up > and running and start using them. I want to get Wine installed and > start using it. Notice that in all cases I REALLY want to GET USING > THEM. But to do that you gonna be a typin' in the command window! > > Say what you want about Windows but you click Install and wait. When it > is done, you open the app you just installed and start using it. > Windows (until Windows 8.x) was just a platform which hosted apps. You > never actually DO (did) anything in Windows itself, you use apps ON Windows. > > Not so with Linux. > > Climbs down off the soap box. > > And so I have a honkin machine that runs Linux Mint. It does NOT run > MariaDB (yet), not does it run VMs (yet). I think it runs Wine, but > without much more command window typin I can't be sure. I can run > Firefox and FreeOffice etc. Through the GUI no less. Yeaaaa. > > John W. Colby > > On 2/3/2015 3:55 PM, Jim Lawrence wrote: >> Just posted the following on Facebook this morning: >> >> "Some people reading that both Windows 10 or Ubuntu can be installed, on the new PIs...but the software that can load is a specialize version of both. IoT (program) for Windows and Snappy for Ubuntu...both designed specifically for use in embedded devices. OTOH, Ubuntu has a server/terminal product which allows PIs to run as thin clients: https://help.ubuntu.com/community/UbuntuLTSP." >> >> There is a lot of interesting products out there. The Ubuntu stuff should run on Mint without issues. (Now that I have retired I prefer Linux distros over Windows ones and just use Windows products so to keep my hands in. >> >> Jim >> >> ----- Original Message ----- >> From: "John W. Colby" >> To: "Access Developers discussion and problem solving" >> Sent: Monday, 2 February, 2015 8:35:49 PM >> Subject: Re: [AccessD] I couldn't post >> >> I don't think so. I am also running it on a Linux Mint machine which I >> am playing with. >> >> Speaking of Linux, the Raspberry Pi B 2 just hit the internet. With a >> quad core v7 core and a gig of Ram, otherwise identical. >> >> I am seriously considering building out a parallel processor using a >> bunch of these. Lots of press on a bunch of guys doing this, using the >> old Pi. >> >> With a faster processor, quad cores and twice the memory, the overall >> horsepower just went up radically. I'm thinking of maybe starting with >> 8 of them. (32) one ghz cores and 8 gigs of ram anyone? >> >> I ordered a BeagleBone black last week (before this announcement) >> because I love ucontroller / electronics stuff. I got my start in >> electronics back in the late 60s, pre ucontroller. A few years back I >> started playing with the Atmel uc series, with many different pin >> packages. It was a bit of a pita to set up but was a ton-o-fun. I >> actually designed a pulse width modulation motor driver, driving a cmos >> high power driver, driving a very powerful motor from a ride on toy. >> >> The BeagleBone has most of that stuff built right in, in a package size >> the same as the Pi. Well, not the high power cmos amp... But it has a >> couple of dedicated 200 mhz controllers right on die for the real time >> stuff to dr. >> >> Of course you have to program them in assembler... >> >> And just a slew of i/o. Cool stuff. >> >> >> John W. Colby >> >> On 2/2/2015 9:16 PM, Darryl Collins wrote: >>> Isn't Thunderbird unsupported by Mozilla these days? I thought they stopped working on it a while back now - maybe 18 months or more? >>> >>> Anyway, welcome Back John. >>> >>> Cheers >>> Darryl >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >>> Sent: Tuesday, 3 February 2015 1:09 PM >>> To: accessd at databaseadvisors.com >>> Subject: [AccessD] I couldn't post >>> >>> I've been here forever, I just couldn't post because my Thunderbird install on my laptop insisted on using the wrong output email address and so AccessD servers kicked my replies back. >>> >>> I finally decided to just uninstall and reinstall (and lose all my stuff >>> - it's a long story). >>> >>> -- >>> John W. Colby >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/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 accessd at shaw.ca Tue Feb 3 21:52:17 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 3 Feb 2015 20:52:17 -0700 (MST) Subject: [AccessD] OT: Working with Mac Mini from MS Windows via RealVNC. Was: Re[2]: Microsoft stock price crashed today In-Reply-To: Message-ID: <655024582.115444259.1423021937405.JavaMail.root@cds018> What's xcode? What's a Mac? Isn't that just a distro running on top of version a freeBSD Unix? ;-) Jim ----- Original Message ----- From: "Doug Steele" To: "Access Developers discussion and problem solving" Sent: Tuesday, 3 February, 2015 3:52:35 PM Subject: Re: [AccessD] OT: Working with Mac Mini from MS Windows via RealVNC. Was: Re[2]: Microsoft stock price crashed today Hi Shamil: Replies are embedded in questions On Mon, Feb 2, 2015 at 12:43 PM, Salakhetdinov Shamil wrote: > Hi Doug -- > > Thank you, as you're not on dba-Tech, I will try to ask you my questions > on Mac Mini usage here as I suppose your answers would be interesting for > this group members: > > Main questions: > > - What (wireless) keyboard and mouse do you use with your Mac Mini? > I normally use a wired USB large Apple keyboard and an Apple Bluetooth trackpad; I just tried it successfully with an Apple Bluetooth keyboard and a Logitech mk360 USB dongle wireless keyboard and mouse. They worked as soon as they were plugged in. > > - Would it be a viable option to use a RealVNC Viewer (free version as > paid one doesn't exists) running on an MS Windows system to control a Mac > Mini (with RealVNC Server paid version)? > I've got no experience with this, but I imagine it would be fine. From what I've read, OSX works well with the VNC standard. > > Secondary questions, just reply if you have any experience and/or wish to > share your opinion: > > - What Mac Mini configuration would be good enough for iPhone/iPad > development with iOS 8 SDK and XCode? > I've done some XCode work. My Mini is a 2.3Ghz I7 (late 2012) with 16gb ram, and it runs very well. I can have two Windows Parallels virtual machines running and MS Access is just fine. My Macbook Pro is a 2.3Ghz I5 (early 2011) with 8gb ram. It's perfectly adequate for XCode development, but I can't run more than one Windows VM without bogging down. Both machines are running Yosemite. Based on my experience with my Macbook Air, which has an SSD instead of a HD, I think that a Mini with an SSD drive would be a rocket. > > - Have you ever tried to connect a Mac Mini via HDMI to a Smart TV as > e.g. Samsung UN40H6350 40-Inch 1080p 120Hz Smart LED TV ( > http://tinyurl.com/lvgmw9j) to use it as a display? Thank you. > No, I haven't. > > -- Shamil > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Tue Feb 3 22:26:00 2015 From: dbdoug at gmail.com (Doug Steele) Date: Tue, 3 Feb 2015 20:26:00 -0800 Subject: [AccessD] OT: Working with Mac Mini from MS Windows via RealVNC. Was: Re[2]: Microsoft stock price crashed today In-Reply-To: <655024582.115444259.1423021937405.JavaMail.root@cds018> References: <655024582.115444259.1423021937405.JavaMail.root@cds018> Message-ID: On Tue, Feb 3, 2015 at 7:52 PM, Jim Lawrence wrote: > What's xcode? > The beginner level of programming for OSX. Once you've mastered it and the next level above that, you can graduate to XXXCode - that's the fun part. > > What's a Mac? Isn't that just a distro running on top of version a freeBSD > Unix? ;-) > You're probably right. Does that mean I'm an inadvertent Unix guru? Doug From jwcolby at gmail.com Tue Feb 3 22:29:49 2015 From: jwcolby at gmail.com (John W. Colby) Date: Tue, 03 Feb 2015 23:29:49 -0500 Subject: [AccessD] OT: Working with Mac Mini from MS Windows via RealVNC. Was: Re[2]: Microsoft stock price crashed today In-Reply-To: <655024582.115444259.1423021937405.JavaMail.root@cds018> References: <655024582.115444259.1423021937405.JavaMail.root@cds018> Message-ID: <54D1A03D.7010606@gmail.com> LOL. Yep, and ya wanna talk "dummed down"! John W. Colby On 2/3/2015 10:52 PM, Jim Lawrence wrote: > What's xcode? > > What's a Mac? Isn't that just a distro running on top of version a freeBSD Unix? ;-) > > Jim > > ----- Original Message ----- > From: "Doug Steele" > To: "Access Developers discussion and problem solving" > Sent: Tuesday, 3 February, 2015 3:52:35 PM > Subject: Re: [AccessD] OT: Working with Mac Mini from MS Windows via RealVNC. Was: Re[2]: Microsoft stock price crashed today > > Hi Shamil: > Replies are embedded in questions > > On Mon, Feb 2, 2015 at 12:43 PM, Salakhetdinov Shamil > wrote: > >> Hi Doug -- >> >> Thank you, as you're not on dba-Tech, I will try to ask you my questions >> on Mac Mini usage here as I suppose your answers would be interesting for >> this group members: >> >> Main questions: >> >> - What (wireless) keyboard and mouse do you use with your Mac Mini? >> > I normally use a wired USB large Apple keyboard and an Apple Bluetooth > trackpad; I just tried it successfully with an Apple Bluetooth keyboard and > a Logitech mk360 USB dongle wireless keyboard and mouse. They worked as > soon as they were plugged in. > > >> - Would it be a viable option to use a RealVNC Viewer (free version as >> paid one doesn't exists) running on an MS Windows system to control a Mac >> Mini (with RealVNC Server paid version)? >> > I've got no experience with this, but I imagine it would be fine. From > what I've read, OSX works well with the VNC standard. > >> Secondary questions, just reply if you have any experience and/or wish to >> share your opinion: >> >> - What Mac Mini configuration would be good enough for iPhone/iPad >> development with iOS 8 SDK and XCode? >> > I've done some XCode work. My Mini is a 2.3Ghz I7 (late 2012) with 16gb > ram, and it runs very well. I can have two Windows Parallels virtual > machines running and MS Access is just fine. My Macbook Pro is a 2.3Ghz I5 > (early 2011) with 8gb ram. It's perfectly adequate for XCode development, > but I can't run more than one Windows VM without bogging down. Both > machines are running Yosemite. Based on my experience with my Macbook Air, > which has an SSD instead of a HD, I think that a Mini with an SSD drive > would be a rocket. > >> - Have you ever tried to connect a Mac Mini via HDMI to a Smart TV as >> e.g. Samsung UN40H6350 40-Inch 1080p 120Hz Smart LED TV ( >> http://tinyurl.com/lvgmw9j) to use it as a display? Thank you. >> > No, I haven't. > >> -- Shamil >> >> From jwcolby at gmail.com Tue Feb 3 22:34:46 2015 From: jwcolby at gmail.com (John W. Colby) Date: Tue, 03 Feb 2015 23:34:46 -0500 Subject: [AccessD] I couldn't post In-Reply-To: <297872711.115432313.1423020669501.JavaMail.root@cds018> References: <297872711.115432313.1423020669501.JavaMail.root@cds018> Message-ID: <54D1A166.1010903@gmail.com> Jim, >unless your willing to go down to the command prompt network issues can be impossible to fix. I get that, and I understand dropping to the command window for that kind of thing. But that is NOT a simple install or uninstall! That is once in a blue moon gotta go to the command window. Go out to watch YouTube videos of ANYTHING linux and observe what percentage of time the person is clacking away in the command window. It is like I am back in 1982. I'm not giving up! I expect that if you are just doing office stuff then yea, install it and go. The mint installation itself went flawlessly. Actually USING a browser or the office apps works just as you would expect (and as in Windows) in the Gui. And at lleast in Mint, anything already in the distro can just be installed through the gui. But holy crap, come time to actually install anything else... Take MariaDB for example. I want to use that specifically, rather than get started with MySQL and switch later. Unfortunately (for me) it seems that MySQL is native to Ubuntu and Mint is a fork of Ubuntu. So I immediately have to uninstall MySQL. Well... there is no (gui) uninstaller. And the uninstall itself (the actual text that you type in) is specific to the linux distro. And... of course... it is typing in the command console. So it is off to Google to try to discover how to uninstall something. Then... it is the same to install MariaDB. "What version of linux are you using?" If this version then you have to do this, but if that version you have to do that... and of course... typing into the command console. Likewise with getting a VM running. Likewise with getting Wine. If you happen to be lucky and it is already in the distro then it gets easier (to install). Maybe / mostly. Get this, I was in a chat room asking questions about how to do this stuff. The guy actually recommended that I get rid of mint and go to... Now what kind of stupid response is that. Trash my perfectly running install of a version of linux to move to some other (equally frustrating) version of linux in the vain hope that one specific application will be easier to install? And we all know why it is like this. Because Linux is so fragmented that even though it is supposed to "all be the same", it isn't. Nothing is the same, everything is slightly (or not so slightly) different. I was watching a YouTube video the other day where the speaker was showing a graph of the number of users of various versions. There were perhaps 15 or 20 different lines in this graph. And those are just the MAJOR distros. It's a cluster...friggen mess. To be honest it reminds me of school children trading baseball cards. "Ooooh have you seen..."? "No but I'm gonna run right home and grab my usb stick and get that up and play with it..." So I can see how you could get an entire office up in Linux, I got my machine up in Mint in just an hour or so. And spent many MANY subsequent hours trying (unsuccessfully so far) getting MariaDB and VM hosting up and working. Once they are up and working, I fully expect to have a gui that allows me to do my work in those programs. Furthermore I AM going to work in ucontrollers and they are all Linux so I just have no choice but to move through this cluster...friggen mess and learn enough to get a dev environment and cross compiler up. You better believe however that there is a very narrow objective, which is to get specific applications up in SOME (don't give a damn which) version of Linux so I can actually get some work done. If anyone wants to join me in the nightmare, (misery LOVES company) I joined the tech group and am trying to get some response over there for playing with Raspberry Pi or BeagleBone Black. Go get one if you haven't already and let's play. The BeagleBone Black in particular is a way cool widget for automation stuff. I did Atmel controllers a few years ago (no linux fortunately) and it was a ton-o-fun. By the way, I designed and built a debit card vending machine in 96 when I lived in Mexico. It used a Z-80 single board computer and ran a custom real time system with a C compiler to program it. It used a bill acceptor (like in a coke machine) interfaced over RS-488 serial to the controller and we then built a vend widget with a motor, a metal ram, and a bunch of LED / detectors to allow me to control the vend cycle. It kept all of the data in RAM on the SBC and talked (via RS232) to a hand held computer that the operator would hook up to the machine to read out the data about the bills in the machine, how many cards were left etc. I did all of the electronics (really quite simple) as well as wrote the vending machine software. That was the most fun I have ever been paid to have! :) John W. Colby On 2/3/2015 10:31 PM, Jim Lawrence wrote: > You are obviously having the worse experiences with it. > > I tend to be lazy and use the terminal only when all else fails and mostly for speed. I tend to find Windows too dumbed down and unless your willing to go down to the command prompt network issues can be impossible to fix. > > I must relate a story of a client that I helped a couple (three) of years ago. They had all Windows XP boxes but decided to experiment by setting a dozen by upgrading to Linux (in this case Ubuntu), to save money. It took only four hours, on a Saturday afternoon, to install a dozen new system, connect to all the printer, the network, the internet and install all the office software. A young lady there (24-25), who knew basically nothing about computers, helped me with the install. > > I thought that I might be supporting them for years, one way of another, but it was not so. She just picked the ball up and ran with it. I understand the whole office (50 desktops) and all the servers are now running Linux and everything runs flawlessly. So with no computer system training or experience (thank God for Google), this young person did all this without any help from me and she just loves it. The truth is that she was young and didn't have to unlearn any bad habits. > > I have had no problem with Linux but back in the day, I was a certified SCO Unix installer, so it was just like being back home again. This does not mean that I do not like Windows; it is just that the moment we step away from the desktop and move into the world of the internet, its a Linux universe out there. > > Don't give up on Linux...it is hardly smarter than you are and I have found it to be great fun as it has all the latest and greatest technologies, first. As Satya Nadella, CEO of Microsoft say, "We love Linux." > > Jim > From jwcolby at gmail.com Tue Feb 3 22:36:15 2015 From: jwcolby at gmail.com (John W. Colby) Date: Tue, 03 Feb 2015 23:36:15 -0500 Subject: [AccessD] OT: Working with Mac Mini from MS Windows via RealVNC. Was: Re[2]: Microsoft stock price crashed today In-Reply-To: References: <655024582.115444259.1423021937405.JavaMail.root@cds018> Message-ID: <54D1A1BF.50806@gmail.com> >you can graduate to XXXCode - that's the fun part. Isn't that what you design porn games in? I thought they didn't allow that kinda stuff in the Apple world. :) John W. Colby On 2/3/2015 11:26 PM, Doug Steele wrote: > On Tue, Feb 3, 2015 at 7:52 PM, Jim Lawrence wrote: > >> What's xcode? >> > The beginner level of programming for OSX. Once you've mastered it and the > next level above that, you can graduate to XXXCode - that's the fun part. > > >> What's a Mac? Isn't that just a distro running on top of version a freeBSD >> Unix? ;-) >> > You're probably right. Does that mean I'm an inadvertent Unix guru? > > Doug From darren at activebilling.com.au Tue Feb 3 23:03:31 2015 From: darren at activebilling.com.au (Darren) Date: Wed, 4 Feb 2015 16:03:31 +1100 Subject: [AccessD] Q related to UNIX VM's and Task Monitoring Message-ID: <53562A251F4D4E1191313823556BCC64@DDNote> howdy y'all, I'm not a network or Unix nerd by any stretch - not even a beginner, so I'll explain my issue and see if there's an appropriate response. We have a "Unix VM" that manages "background workers" that support certain tasks in our Ruby screens (Hope I have described that right). Anyway...We have a situation that occurs once in a while, where these "background workers" halt or fail (whatever). It's a PITA as it then causes our end client screens (The Ruby ones) to crash when clients are performing certain tasks. Not a good look. I have asked if there is at least the option to set up monitoring of these 'background workers' and (Holy Grail) would be to have them re-started. but at the very least have some peeps alerted to their 'non-started' state. I have been told that this is "...not an insignificant task" and very "...tricky/difficult" thing to do. I'm OK to write some interface in VB or even access to access logs or whatever that might assist. Is it a difficult thing to set up monitoring tools on a "Unix VM"? and does the difficulty relate to the types of "background workers" etc. Can I write anything in Access that might be able to see this stuff? Has anyone done anything like that? I really do appreciate this is a "how long is a piece of string" question, but would welcome comment from my Brains Trust. (Anything in quotes is as spoken or written to me by our DEV nerds - Great peeps BTW not having a go at our nerds). Many thanks in advance. Darren From jwcolby at gmail.com Tue Feb 3 23:11:14 2015 From: jwcolby at gmail.com (John W. Colby) Date: Wed, 04 Feb 2015 00:11:14 -0500 Subject: [AccessD] Q related to UNIX VM's and Task Monitoring In-Reply-To: <53562A251F4D4E1191313823556BCC64@DDNote> References: <53562A251F4D4E1191313823556BCC64@DDNote> Message-ID: <54D1A9F2.3010803@gmail.com> I assume that the "background workers" are tasks written in some high level language, probably running in a thread? You need to determine whether they write status kinda stuff to files or a database. They should. If they do then you would need to read those files / database tables periodically to make sure that status messages are being written. If that stops then the thread / worker is stopped. If they don't, see if you can persuade someone (developer) to write status stuff out periodically. In the end however the reason for the failure needs to be investigated and fixed. Anything else is just a kluge. John W. Colby On 2/4/2015 12:03 AM, Darren wrote: > howdy y'all, > > I'm not a network or Unix nerd by any stretch - not even a beginner, so I'll > explain my issue and see if there's an appropriate response. > > We have a "Unix VM" that manages "background workers" that support certain > tasks in our Ruby screens (Hope I have described that right). > Anyway...We have a situation that occurs once in a while, where these > "background workers" halt or fail (whatever). It's a PITA as it then causes > our end client screens (The Ruby ones) to crash when clients are performing > certain tasks. Not a good look. > > I have asked if there is at least the option to set up monitoring of these > 'background workers' and (Holy Grail) would be to have them re-started. but > at the very least have some peeps alerted to their 'non-started' state. > > I have been told that this is "...not an insignificant task" and very > "...tricky/difficult" thing to do. > I'm OK to write some interface in VB or even access to access logs or > whatever that might assist. Is it a difficult thing to set up monitoring > tools on a "Unix VM"? and does the difficulty relate to the types of > "background workers" etc. > > Can I write anything in Access that might be able to see this stuff? Has > anyone done anything like that? > > I really do appreciate this is a "how long is a piece of string" question, > but would welcome comment from my Brains Trust. > > (Anything in quotes is as spoken or written to me by our DEV nerds - Great > peeps BTW not having a go at our nerds). > > Many thanks in advance. > > Darren From andy at minstersystems.co.uk Wed Feb 4 01:28:21 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 4 Feb 2015 07:28:21 -0000 Subject: [AccessD] API calls crashing In-Reply-To: <201502040101.t1411WXC003898@databaseadvisors.com> Message-ID: <0AB2BA5457034C1C984ADE028F753181@MINSTER> No, but I think they installed a later version of Access. I duly uninstalled that and reapired (but didn't reinstall which I plan to do today) mine. That didn't sort it. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: 03 February 2015 23:17 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] API calls crashing Hey Andy Did they update the version of Windows on that machine? Tony Septav Nanaimo, BC Canada -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: February-03-15 9:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] API calls crashing I am totally at a loss on this. My big Access 97 app (I know, I know, but it works) is crashing on one machine, a machine it has run on for years. I've tracked it down to API calls. Any time it calls a Kernel32 API it just exits - no message, no nothing, just closes. Now it's perfectly possible that central ICT here have installed or updated something overnight which has interfered, in fact I can only think that must have happened. Question is, what can I do about it? This is a typical api call which crashes out: Private Declare Function apiGetComputerName Lib "Kernel32" Alias _ "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long I know I could use Environ to get the computer name but that's not the point. There are lots of similar calls and they're all failing. Help please. Andy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.5645 / Virus Database: 4273/9047 - Release Date: 02/02/15 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mcp2004 at mail.ru Wed Feb 4 02:01:14 2015 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Wed, 04 Feb 2015 11:01:14 +0300 Subject: [AccessD] =?utf-8?q?OT=3A_Working_with_Mac_Mini_from_MS_Windows_v?= =?utf-8?q?ia_RealVNC=2E_Was=3A_Re=5B2=5D=3A_Microsoft_stock_price_crashed?= =?utf-8?q?_today?= In-Reply-To: References: <6EE85296E0E742168E2302D884BF2D13@HAL9007> <1422909798.140566194@f221.i.mail.ru> Message-ID: <1423036874.491563358@f338.i.mail.ru> Hi Doug -- Thank you for your replies. Just last question: ??What display model do you use with your Mac Mini? -- Shamil Tuesday, February 03, 2015 3:52 PM -08:00 from Doug Steele : >Hi Shamil: >Replies are embedded in questions > >On Mon, Feb 2, 2015 at 12:43 PM, Salakhetdinov Shamil < mcp2004 at mail.ru > >wrote: > >> Hi Doug -- >> >> Thank you, as you're not on dba-Tech, I will try to ask you my questions >> on Mac Mini usage here as I suppose your answers would be interesting for >> this group members: >> >> Main questions: >> >> - What (wireless) keyboard and mouse do you use with your Mac Mini? >> >I normally use a wired USB large Apple keyboard and an Apple Bluetooth >trackpad; I just tried it successfully with an Apple Bluetooth keyboard and >a Logitech mk360 USB dongle wireless keyboard and mouse. They worked as >soon as they were plugged in. > > >> >> - Would it be a viable option to use a RealVNC Viewer (free version as >> paid one doesn't exists) running on an MS Windows system to control a Mac >> Mini (with RealVNC Server paid version)? >> >I've got no experience with this, but I imagine it would be fine. From >what I've read, OSX works well with the VNC standard. > >> >> Secondary questions, just reply if you have any experience and/or wish to >> share your opinion: >> >> - What Mac Mini configuration would be good enough for iPhone/iPad >> development with iOS 8 SDK and XCode? >> > >I've done some XCode work. My Mini is a 2.3Ghz I7 (late 2012) with 16gb >ram, and it runs very well. I can have two Windows Parallels virtual >machines running and MS Access is just fine. My Macbook Pro is a 2.3Ghz I5 >(early 2011) with 8gb ram. It's perfectly adequate for XCode development, >but I can't run more than one Windows VM without bogging down. Both >machines are running Yosemite. Based on my experience with my Macbook Air, >which has an SSD instead of a HD, I think that a Mini with an SSD drive >would be a rocket. > >> >> - Have you ever tried to connect a Mac Mini via HDMI to a Smart TV as >> e.g. Samsung UN40H6350 40-Inch 1080p 120Hz Smart LED TV ( >> http://tinyurl.com/lvgmw9j ) to use it as a display? Thank you. >> > >No, I haven't. > >> >> -- Shamil >> >> >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Feb 4 04:20:42 2015 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 4 Feb 2015 10:20:42 +0000 Subject: [AccessD] I couldn't post Message-ID: Hi John We have some accounts for various purposes on Gmail. Every time I go to that web interface I'm surprised how horrible it is and wonder how people can live with it, some even pay for it. It makes no sense regarding the vast resources of Google. But it sounds as you haven't met Outlook 365. It is one or two generations ahead of Gmail. Some of my colleagues even prefer this for the normal Outlook 2013 desktop client. A year ago we switched the e-mail from our trusted but outdated Novell GroupWise 6.5. I was about setting up a local Exchange server but decided to give the "cloud Exchange" a chance - and haven't looked back. Now our mail and calendars are synced "all over" - to my Surface, our phones (Windows Phones and Android) and if out somewhere a browser will do. If you use the Outlook desktop client, you can work off-line as well, reading and writing mails. /gustav ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Tuesday, 3 February, 2015 12:51:10 PM Subject: Re: [AccessD] I couldn't post Yea yea. I hate web applications as they tend to be web clunky. Gmail's web app sucks so bad it is almost unusable. Not to mention, no web no mail. Glad you like it though. John W. Colby From bradm at blackforestltd.com Wed Feb 4 09:14:06 2015 From: bradm at blackforestltd.com (Brad Marks) Date: Wed, 4 Feb 2015 15:14:06 +0000 Subject: [AccessD] Access Controlling Excel Via Windows Automation In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> Message-ID: All, I just ran a test of the Access application that creates an Excel file on a PC that has Access 2013 and Excel 2013. It worked perfectly. However, when I run the same application on the machine that has Access 2010 Runtime and Excel 2013, the application gets hung up. There is no error message. I have rebooted this machine and this did not make any difference. I thought that Access 2010 Runtime would play nicely with Excel 2013, but for some reason this appears to not be the case. I am open to any ideas. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Tuesday, February 03, 2015 4:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation Did you (1) use late binding but nonetheless (2) left a reference to Excel? That would do it if the Excel you are using is not in the same location as the next user's. And it has happened to me. On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks wrote: > All, > > I don't have a lot of experience with this realm but I have had some > success using Access VBA to control Excel via Automation. > > I have one Access 2007 application that creates a number of reports. > Recently I have added new VBA code to also create an Excel file. This > works nicely on my development PC that has Access 2007 and Excel 2007. > > However, I have run into some problems when trying to deploy this > application on a machine that has Access 2010 Runtime and Excel 2013. > > All of the reports work properly via Access 2010 Runtime. > > However, when I try to run the VBA code that generates the Excel file, > the application hangs up. There are no error messages. > > I am using "Late Binding". > > I am not sure where to start looking. > > Should Access 2010 Runtime work properly in conjunction with Excel 2013? > (both are 32 bit) > > Is anyone else using this combination? > > I have thought about upgrading Access Runtime from 2010 to 2013, but I > would prefer to not do this if I can resolve the current problems. > > Thanks, > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 gmail.com Wed Feb 4 10:05:42 2015 From: jwcolby at gmail.com (John W. Colby) Date: Wed, 04 Feb 2015 11:05:42 -0500 Subject: [AccessD] Access Controlling Excel Via Windows Automation In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> Message-ID: <54D24356.7090203@gmail.com> You are trying to automate a later version from an earlier version. That is never a good idea, and I would not expect it to work. John W. Colby On 2/4/2015 10:14 AM, Brad Marks wrote: > All, > > I just ran a test of the Access application that creates an Excel file on a PC that has Access 2013 and Excel 2013. It worked perfectly. > > However, when I run the same application on the machine that has Access 2010 Runtime and Excel 2013, the application gets hung up. There is no error message. > > I have rebooted this machine and this did not make any difference. > > I thought that Access 2010 Runtime would play nicely with Excel 2013, but for some reason this appears to not be the case. > > I am open to any ideas. > > Thanks, > Brad > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Tuesday, February 03, 2015 4:02 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation > > Did you (1) use late binding but nonetheless (2) left a reference to Excel? > That would do it if the Excel you are using is not in the same location as the next user's. And it has happened to me. > > On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks wrote: > >> All, >> >> I don't have a lot of experience with this realm but I have had some >> success using Access VBA to control Excel via Automation. >> >> I have one Access 2007 application that creates a number of reports. >> Recently I have added new VBA code to also create an Excel file. This >> works nicely on my development PC that has Access 2007 and Excel 2007. >> >> However, I have run into some problems when trying to deploy this >> application on a machine that has Access 2010 Runtime and Excel 2013. >> >> All of the reports work properly via Access 2010 Runtime. >> >> However, when I try to run the VBA code that generates the Excel file, >> the application hangs up. There are no error messages. >> >> I am using "Late Binding". >> >> I am not sure where to start looking. >> >> Should Access 2010 Runtime work properly in conjunction with Excel 2013? >> (both are 32 bit) >> >> Is anyone else using this combination? >> >> I have thought about upgrading Access Runtime from 2010 to 2013, but I >> would prefer to not do this if I can resolve the current problems. >> >> Thanks, >> Brad >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 bensonforums at gmail.com Wed Feb 4 10:36:21 2015 From: bensonforums at gmail.com (Bill Benson) Date: Wed, 4 Feb 2015 11:36:21 -0500 Subject: [AccessD] Access Controlling Excel Via Windows Automation In-Reply-To: <54D24356.7090203@gmail.com> References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> <54D24356.7090203@gmail.com> Message-ID: It works just fine for any app I have used, so long as late binding us used. I particular I have clients who ONLY have Office 2010 - and who recently bought Access 2013 standalone: and my Access App which automates their Excel (without a ref to Excel) works just fine. I would look elsewhere. You say there is no error message Brad. Have you had them look in Task Managet, maybe the instance is opening invisibly? In which case XLApp.Visible = True would resolve. On Feb 4, 2015 11:07 AM, "John W. Colby" wrote: > You are trying to automate a later version from an earlier version. That > is never a good idea, and I would not expect it to work. > > John W. Colby > > On 2/4/2015 10:14 AM, Brad Marks wrote: > >> All, >> >> I just ran a test of the Access application that creates an Excel file on >> a PC that has Access 2013 and Excel 2013. It worked perfectly. >> >> However, when I run the same application on the machine that has Access >> 2010 Runtime and Excel 2013, the application gets hung up. There is no >> error message. >> >> I have rebooted this machine and this did not make any difference. >> >> I thought that Access 2010 Runtime would play nicely with Excel 2013, but >> for some reason this appears to not be the case. >> >> I am open to any ideas. >> >> Thanks, >> Brad >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces@ >> databaseadvisors.com] On Behalf Of Bill Benson >> Sent: Tuesday, February 03, 2015 4:02 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation >> >> Did you (1) use late binding but nonetheless (2) left a reference to >> Excel? >> That would do it if the Excel you are using is not in the same location >> as the next user's. And it has happened to me. >> >> On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks >> wrote: >> >> All, >>> >>> I don't have a lot of experience with this realm but I have had some >>> success using Access VBA to control Excel via Automation. >>> >>> I have one Access 2007 application that creates a number of reports. >>> Recently I have added new VBA code to also create an Excel file. This >>> works nicely on my development PC that has Access 2007 and Excel 2007. >>> >>> However, I have run into some problems when trying to deploy this >>> application on a machine that has Access 2010 Runtime and Excel 2013. >>> >>> All of the reports work properly via Access 2010 Runtime. >>> >>> However, when I try to run the VBA code that generates the Excel file, >>> the application hangs up. There are no error messages. >>> >>> I am using "Late Binding". >>> >>> I am not sure where to start looking. >>> >>> Should Access 2010 Runtime work properly in conjunction with Excel 2013? >>> (both are 32 bit) >>> >>> Is anyone else using this combination? >>> >>> I have thought about upgrading Access Runtime from 2010 to 2013, but I >>> would prefer to not do this if I can resolve the current problems. >>> >>> Thanks, >>> Brad >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/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 bradm at blackforestltd.com Wed Feb 4 11:57:37 2015 From: bradm at blackforestltd.com (Brad Marks) Date: Wed, 4 Feb 2015 17:57:37 +0000 Subject: [AccessD] Access Controlling Excel Via Windows Automation - More Info In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> <54D24356.7090203@gmail.com> Message-ID: All, Thanks for the help on this issue. Summary - Access application controlling Excel via Windows Automation. Late Binding is used Works properly on PC with Access 2007 and Excel 2007 Works properly on a second PC with Access 2013 (Runtime) and Excel 2013 Does not work on a machine with Access 2010 (Runtime) and Excel 2013. I actually have two small Access applications that I am using to debug this problem. One was working fine, the other was not working. The first Access application had "xlApp.Visible = False" and was working nicely. I changed this line to "xlApp.Visible = True" and now this application is also not working. I now see an error message that says "We're sorry, but Excel has run into an error that is preventing it from working correctly. Excel will need to be closed as a result." So, it appears that the command "xlApp.Visible = True" is at the crux of the problem on the machine with Access 2010 (Runtime) and Excel 2013. I feel like I am getting closer, but still no cigar. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Wednesday, February 04, 2015 10:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation It works just fine for any app I have used, so long as late binding us used. I particular I have clients who ONLY have Office 2010 - and who recently bought Access 2013 standalone: and my Access App which automates their Excel (without a ref to Excel) works just fine. I would look elsewhere. You say there is no error message Brad. Have you had them look in Task Managet, maybe the instance is opening invisibly? In which case XLApp.Visible = True would resolve. On Feb 4, 2015 11:07 AM, "John W. Colby" wrote: > You are trying to automate a later version from an earlier version. > That is never a good idea, and I would not expect it to work. > > John W. Colby > > On 2/4/2015 10:14 AM, Brad Marks wrote: > >> All, >> >> I just ran a test of the Access application that creates an Excel >> file on a PC that has Access 2013 and Excel 2013. It worked perfectly. >> >> However, when I run the same application on the machine that has >> Access >> 2010 Runtime and Excel 2013, the application gets hung up. There is >> no error message. >> >> I have rebooted this machine and this did not make any difference. >> >> I thought that Access 2010 Runtime would play nicely with Excel 2013, >> but for some reason this appears to not be the case. >> >> I am open to any ideas. >> >> Thanks, >> Brad >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces@ >> databaseadvisors.com] On Behalf Of Bill Benson >> Sent: Tuesday, February 03, 2015 4:02 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access Controlling Excel Via Windows >> Automation >> >> Did you (1) use late binding but nonetheless (2) left a reference to >> Excel? >> That would do it if the Excel you are using is not in the same >> location as the next user's. And it has happened to me. >> >> On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks >> wrote: >> >> All, >>> >>> I don't have a lot of experience with this realm but I have had some >>> success using Access VBA to control Excel via Automation. >>> >>> I have one Access 2007 application that creates a number of reports. >>> Recently I have added new VBA code to also create an Excel file. >>> This works nicely on my development PC that has Access 2007 and Excel 2007. >>> >>> However, I have run into some problems when trying to deploy this >>> application on a machine that has Access 2010 Runtime and Excel 2013. >>> >>> All of the reports work properly via Access 2010 Runtime. >>> >>> However, when I try to run the VBA code that generates the Excel >>> file, the application hangs up. There are no error messages. >>> >>> I am using "Late Binding". >>> >>> I am not sure where to start looking. >>> >>> Should Access 2010 Runtime work properly in conjunction with Excel 2013? >>> (both are 32 bit) >>> >>> Is anyone else using this combination? >>> >>> I have thought about upgrading Access Runtime from 2010 to 2013, but >>> I would prefer to not do this if I can resolve the current problems. >>> >>> Thanks, >>> Brad >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/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 jwcolby at gmail.com Wed Feb 4 12:02:23 2015 From: jwcolby at gmail.com (John W. Colby) Date: Wed, 04 Feb 2015 13:02:23 -0500 Subject: [AccessD] Access Controlling Excel Via Windows Automation - More Info In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> <54D24356.7090203@gmail.com> Message-ID: <54D25EAF.60408@gmail.com> The visible = true attempts to make the application (excel) visible. So the application will run, but only if you do not try to draw it. John W. Colby On 2/4/2015 12:57 PM, Brad Marks wrote: > All, > > Thanks for the help on this issue. > > Summary - Access application controlling Excel via Windows Automation. > > Late Binding is used > > Works properly on PC with Access 2007 and Excel 2007 > > Works properly on a second PC with Access 2013 (Runtime) and Excel 2013 > > > Does not work on a machine with Access 2010 (Runtime) and Excel 2013. > > I actually have two small Access applications that I am using to debug this problem. > > One was working fine, the other was not working. > > The first Access application had "xlApp.Visible = False" and was working nicely. > > I changed this line to "xlApp.Visible = True" and now this application is also not working. I now see an error message that says "We're sorry, but Excel has run into an error that is preventing it from working correctly. Excel will need to be closed as a result." > > So, it appears that the command "xlApp.Visible = True" is at the crux of the problem on the machine with Access 2010 (Runtime) and Excel 2013. > > I feel like I am getting closer, but still no cigar. > > Brad > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Wednesday, February 04, 2015 10:36 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation > > It works just fine for any app I have used, so long as late binding us used. > > I particular I have clients who ONLY have Office 2010 - and who recently bought Access 2013 standalone: and my Access App which automates their Excel (without a ref to Excel) works just fine. > > I would look elsewhere. > > You say there is no error message Brad. Have you had them look in Task Managet, maybe the instance is opening invisibly? In which case > > XLApp.Visible = True > > would resolve. > On Feb 4, 2015 11:07 AM, "John W. Colby" wrote: > >> You are trying to automate a later version from an earlier version. >> That is never a good idea, and I would not expect it to work. >> >> John W. Colby >> >> On 2/4/2015 10:14 AM, Brad Marks wrote: >> >>> All, >>> >>> I just ran a test of the Access application that creates an Excel >>> file on a PC that has Access 2013 and Excel 2013. It worked perfectly. >>> >>> However, when I run the same application on the machine that has >>> Access >>> 2010 Runtime and Excel 2013, the application gets hung up. There is >>> no error message. >>> >>> I have rebooted this machine and this did not make any difference. >>> >>> I thought that Access 2010 Runtime would play nicely with Excel 2013, >>> but for some reason this appears to not be the case. >>> >>> I am open to any ideas. >>> >>> Thanks, >>> Brad >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces@ >>> databaseadvisors.com] On Behalf Of Bill Benson >>> Sent: Tuesday, February 03, 2015 4:02 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Access Controlling Excel Via Windows >>> Automation >>> >>> Did you (1) use late binding but nonetheless (2) left a reference to >>> Excel? >>> That would do it if the Excel you are using is not in the same >>> location as the next user's. And it has happened to me. >>> >>> On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks >>> wrote: >>> >>> All, >>>> I don't have a lot of experience with this realm but I have had some >>>> success using Access VBA to control Excel via Automation. >>>> >>>> I have one Access 2007 application that creates a number of reports. >>>> Recently I have added new VBA code to also create an Excel file. >>>> This works nicely on my development PC that has Access 2007 and Excel 2007. >>>> >>>> However, I have run into some problems when trying to deploy this >>>> application on a machine that has Access 2010 Runtime and Excel 2013. >>>> >>>> All of the reports work properly via Access 2010 Runtime. >>>> >>>> However, when I try to run the VBA code that generates the Excel >>>> file, the application hangs up. There are no error messages. >>>> >>>> I am using "Late Binding". >>>> >>>> I am not sure where to start looking. >>>> >>>> Should Access 2010 Runtime work properly in conjunction with Excel 2013? >>>> (both are 32 bit) >>>> >>>> Is anyone else using this combination? >>>> >>>> I have thought about upgrading Access Runtime from 2010 to 2013, but >>>> I would prefer to not do this if I can resolve the current problems. >>>> >>>> Thanks, >>>> Brad >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/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 tinanfields at torchlake.com Wed Feb 4 14:44:13 2015 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Wed, 04 Feb 2015 15:44:13 -0500 Subject: [AccessD] Locked down database In-Reply-To: References: <54D0FEFD.7070404@torchlake.com> <54D1016F.7020207@torchlake.com> Message-ID: <54D2849D.8000705@torchlake.com> It was probably a word-wrap issue from being in an email. The line went onto the next line without an underscore at the end of the first line. That's all. I'll let you know what else I run into, if anything. Thanks. TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/3/2015 12:24 PM, Dan Waters wrote: > Do I need to change something? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris > Fields > Sent: Tuesday, February 03, 2015 11:12 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Locked down database > > Never mind - it was a line-ending at the function creation causing the > problem. Fixed. > TNF > > Tina Norris Fields > tinanfields-at-torchlake-dot-com > 231-322-2787 > > On 2/3/2015 12:01 PM, Tina Norris Fields wrote: >> Hi Dan, >> >> Access 2013 is not liking the ChangeProperty line (first appears on >> line 12). What is equivalent command? >> >> TNF >> >> Tina Norris Fields >> tinanfields-at-torchlake-dot-com >> 231-322-2787 >> >> On 2/2/2015 8:53 PM, Dan Waters wrote: >>> Hi Doug, >>> >>> A few years ago I wrote an Access mdb as a tool to clear the Shift >>> Bypass lockout. >>> >>> Create a new ACCDB file, and put this code into a module. Add a new >>> macro named AutoExec to run the function UnlockAccessFile(). You >>> will need to hold down the shift key to get into the code in this >>> file. I wrote this to work with the MDB files I work with, but it >>> might also work on an ACCDB. >>> >>> Save the Access file and name it Allow Bypass (works for me). >>> >>> If you get an error send it to me and let me know what you were >>> trying to do. >>> >>> Now open the Allow Bypass access file, locate the Access file you >>> want to get opened, and see if it works. Also - it might be that the >>> Allow Bypass tool is actually working, but something else in your >>> file is still locking you out - but I don't know what would do that. >>> >>> Good Luck! >>> Dan >>> >>> ----------------------------------- >>> Option Compare Database >>> Option Explicit >>> >>> Private MappSource As Access.Application >>> >>> Public Function UnlockAccessFile() >>> 1 On Error GoTo EH >>> >>> '-- Note: Run this application from this procedure. >>> >>> Dim stgSourceFilePath As String >>> Dim stgPrompt As String >>> '-- Select Access File >>> 2 stgSourceFilePath = SelectFile >>> 3 If stgSourceFilePath = "File Not Selected" Or >>> stgSourceFilePath = >>> "" Then >>> 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, >>> "No File" >>> 5 Exit Function >>> 6 End If >>> 7 DoEvents >>> '-- Set Source MDB or ACCDB as the CurrentDatabase >>> 8 Set MappSource = New Access.Application >>> 9 MappSource.Visible = False >>> 10 MappSource.OpenCurrentDatabase stgSourceFilePath >>> 11 DoEvents >>> 12 ChangeProperty "AllowBypassKey", dbBoolean, >>> True '-- Allow shift >>> key bypass >>> 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- >>> Allow F11 >>> key >>> 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True >>> 15 ChangeProperty "AllowFullMenus", dbBoolean, True >>> 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True >>> 17 MappSource.CloseCurrentDatabase >>> 18 Set MappSource = Nothing >>> 19 MsgBox "Your file at " & stgSourceFilePath & " >>> is now available!", >>> vbInformation + vbOKOnly, "File Now Available" >>> 20 Exit Function >>> EH: >>> 21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ >>> & "Line: " & Erl & vbNewLine _ >>> & "Number: " & Err.Number & vbNewLine _ >>> & "Description: " & Err.Description >>> 22 MsgBox stgPrompt, vbExclamation + vbOKOnly >>> 23 Stop >>> End Function >>> >>> Private Function SelectFile() As String >>> 1 On Error GoTo EH >>> >>> Dim fDialog As Office.FileDialog >>> Dim stgPrompt As String >>> Dim varFile As Variant >>> >>> 2 Set fDialog = FileDialog(msoFileDialogFilePicker) >>> >>> 3 With fDialog >>> >>> 4 .AllowMultiSelect = False >>> 5 .InitialView = msoFileDialogViewList >>> 6 .InitialFileName = CurrentProject.Path >>> 7 .Title = "Select the Access file." >>> >>> 8 .Filters.Clear >>> 9 .Filters.Add "Access Databases", "*.MDB" >>> 10 .Filters.Add "Access Databases", "*.ACCDB" >>> '.Filters.Add "Access Projects", "*.ADP" >>> >>> '-- Show the dialog box. If the .Show method returns >>> True, the _ >>> user picked at least one file. If the .Show method >>> returns _ >>> False, the user clicked Cancel. >>> 11 If .Show = True Then >>> 12 For Each varFile In .SelectedItems >>> 13 SelectFile = varFile >>> 14 Next varFile >>> 15 Else >>> 16 SelectFile = "File Not Selected" >>> 17 End If >>> >>> 18 End With >>> >>> 19 Exit Function >>> >>> EH: >>> 20 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ >>> & "Line: " & Erl & vbNewLine _ >>> & "Number: " & Err.Number & vbNewLine _ >>> & "Description: " & Err.Description >>> 21 MsgBox stgPrompt, vbExclamation + vbOKOnly >>> 22 Stop >>> >>> End Function >>> >>> Public Function ChangeProperty(stgPropName As String, varPropType As >>> Variant, varPropValue As Variant) As Boolean >>> 1 On Error GoTo EH >>> >>> Dim prp As DAO.Property >>> Dim stgPrompt As String >>> Dim dbs As DAO.Database >>> 2 Set dbs = MappSource.DBEngine(0)(0) >>> >>> 3 dbs.Properties(stgPropName) = varPropValue >>> >>> 4 ChangeProperty = True >>> >>> XH: >>> 5 Exit Function >>> >>> EH: >>> 6 Select Case Err.Number >>> >>> Case 3270 >>> '-- Add property if not already created >>> 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, >>> varPropType, varPropValue) >>> 8 DBEngine(0)(0).Properties.Append prp >>> 9 Set prp = Nothing >>> 10 Resume Next >>> >>> 11 Case Else >>> 12 stgPrompt = "ERROR: SelectFile" & vbNewLine & >>> vbNewLine _ >>> & "Line: " & Erl & vbNewLine _ >>> & "Number: " & Err.Number & vbNewLine _ >>> & "Description: " & Err.Description >>> 13 MsgBox stgPrompt, vbExclamation + vbOKOnly >>> 14 Stop >>> >>> 15 End Select >>> >>> End Function >>> >>> --------------------------------- >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug >>> Steele >>> Sent: Monday, February 02, 2015 16:35 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Locked down database >>> >>> I've just been asked by an old client to 'rescue' a database so it >>> can be developed again. This db was left in a locked down state of >>> some kind by an ex-employee of theirs. It wasn't an amicable parting >>> :) >>> >>> The database is in Access 2007 format. It's not password protected, >>> and it is in .accdb format, not accde. The 'hold down the shift key >>> to open' >>> option has been bypassed. There is no 'design view' option when you >>> right click on a form, and of course all menus have been hidden. I >>> tried creating an blank db and importing, but the forms list in the >>> import window is greyed out. >>> >>> Does anyone have any suggestions? >>> >>> Thanks, >>> Doug >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/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 dbdoug at gmail.com Wed Feb 4 16:30:04 2015 From: dbdoug at gmail.com (Doug Steele) Date: Wed, 4 Feb 2015 14:30:04 -0800 Subject: [AccessD] Fancy graphs from Access Message-ID: I've just had a client ask how he can print some fancy formatted pie charts and graphs from an Access database. I don't have a clue - can anyone suggest a work flow that he can use? I can always build a query to get the data out to Excel or ???, but from that point onward I have no experience. Thanks, Doug From bensonforums at gmail.com Wed Feb 4 16:37:08 2015 From: bensonforums at gmail.com (Bill Benson) Date: Wed, 4 Feb 2015 17:37:08 -0500 Subject: [AccessD] Fancy graphs from Access In-Reply-To: References: Message-ID: Perhaps a 3rd party solution? http://www.opengatesw.net/products/Dashboard%20Builder/DashboardBuilder.htm On Wed, Feb 4, 2015 at 5:30 PM, Doug Steele wrote: > I've just had a client ask how he can print some fancy formatted pie charts > and graphs from an Access database. I don't have a clue - can anyone > suggest a work flow that he can use? I can always build a query to get the > data out to Excel or ???, but from that point onward I have no experience. > > Thanks, > Doug > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dw-murphy at cox.net Wed Feb 4 16:43:58 2015 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 4 Feb 2015 14:43:58 -0800 Subject: [AccessD] Fancy graphs from Access In-Reply-To: References: Message-ID: <01b801d040cc$1047ee80$30d7cb80$@cox.net> Excel has very nice charts which can be populated and controlled from Access. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Wednesday, February 04, 2015 2:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Fancy graphs from Access I've just had a client ask how he can print some fancy formatted pie charts and graphs from an Access database. I don't have a clue - can anyone suggest a work flow that he can use? I can always build a query to get the data out to Excel or ???, but from that point onward I have no experience. Thanks, Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bensonforums at gmail.com Wed Feb 4 16:49:18 2015 From: bensonforums at gmail.com (Bill Benson) Date: Wed, 4 Feb 2015 17:49:18 -0500 Subject: [AccessD] Access Controlling Excel Via Windows Automation - More Info In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> <54D24356.7090203@gmail.com> Message-ID: I'm stumped, however I am beginning to consider the possibility of some plug-in or Addin to their Excel causing the issue. Would you feel comfortable asking them to disable any plug-ins like Adobe, etc - and temporarily uninstall any Add-ins (COM or otherwise) - and retry? On Wed, Feb 4, 2015 at 12:57 PM, Brad Marks wrote: > All, > > Thanks for the help on this issue. > > Summary - Access application controlling Excel via Windows Automation. > > Late Binding is used > > Works properly on PC with Access 2007 and Excel 2007 > > Works properly on a second PC with Access 2013 (Runtime) and Excel 2013 > > > Does not work on a machine with Access 2010 (Runtime) and Excel 2013. > > I actually have two small Access applications that I am using to debug > this problem. > > One was working fine, the other was not working. > > The first Access application had "xlApp.Visible = False" and was working > nicely. > > I changed this line to "xlApp.Visible = True" and now this application is > also not working. I now see an error message that says "We're sorry, but > Excel has run into an error that is preventing it from working correctly. > Excel will need to be closed as a result." > > So, it appears that the command "xlApp.Visible = True" is at the crux of > the problem on the machine with Access 2010 (Runtime) and Excel 2013. > > I feel like I am getting closer, but still no cigar. > > Brad > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Wednesday, February 04, 2015 10:36 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation > > It works just fine for any app I have used, so long as late binding us > used. > > I particular I have clients who ONLY have Office 2010 - and who recently > bought Access 2013 standalone: and my Access App which automates their > Excel (without a ref to Excel) works just fine. > > I would look elsewhere. > > You say there is no error message Brad. Have you had them look in Task > Managet, maybe the instance is opening invisibly? In which case > > XLApp.Visible = True > > would resolve. > On Feb 4, 2015 11:07 AM, "John W. Colby" wrote: > > > You are trying to automate a later version from an earlier version. > > That is never a good idea, and I would not expect it to work. > > > > John W. Colby > > > > On 2/4/2015 10:14 AM, Brad Marks wrote: > > > >> All, > >> > >> I just ran a test of the Access application that creates an Excel > >> file on a PC that has Access 2013 and Excel 2013. It worked perfectly. > >> > >> However, when I run the same application on the machine that has > >> Access > >> 2010 Runtime and Excel 2013, the application gets hung up. There is > >> no error message. > >> > >> I have rebooted this machine and this did not make any difference. > >> > >> I thought that Access 2010 Runtime would play nicely with Excel 2013, > >> but for some reason this appears to not be the case. > >> > >> I am open to any ideas. > >> > >> Thanks, > >> Brad > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces@ > >> databaseadvisors.com] On Behalf Of Bill Benson > >> Sent: Tuesday, February 03, 2015 4:02 PM > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Access Controlling Excel Via Windows > >> Automation > >> > >> Did you (1) use late binding but nonetheless (2) left a reference to > >> Excel? > >> That would do it if the Excel you are using is not in the same > >> location as the next user's. And it has happened to me. > >> > >> On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks > >> wrote: > >> > >> All, > >>> > >>> I don't have a lot of experience with this realm but I have had some > >>> success using Access VBA to control Excel via Automation. > >>> > >>> I have one Access 2007 application that creates a number of reports. > >>> Recently I have added new VBA code to also create an Excel file. > >>> This works nicely on my development PC that has Access 2007 and Excel > 2007. > >>> > >>> However, I have run into some problems when trying to deploy this > >>> application on a machine that has Access 2010 Runtime and Excel 2013. > >>> > >>> All of the reports work properly via Access 2010 Runtime. > >>> > >>> However, when I try to run the VBA code that generates the Excel > >>> file, the application hangs up. There are no error messages. > >>> > >>> I am using "Late Binding". > >>> > >>> I am not sure where to start looking. > >>> > >>> Should Access 2010 Runtime work properly in conjunction with Excel > 2013? > >>> (both are 32 bit) > >>> > >>> Is anyone else using this combination? > >>> > >>> I have thought about upgrading Access Runtime from 2010 to 2013, but > >>> I would prefer to not do this if I can resolve the current problems. > >>> > >>> Thanks, > >>> Brad > >>> > >>> -- > >>> AccessD mailing list > >>> AccessD at databaseadvisors.com > >>> http://databaseadvisors.com/mailman/listinfo/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 df.waters at outlook.com Wed Feb 4 16:51:04 2015 From: df.waters at outlook.com (Dan Waters) Date: Wed, 4 Feb 2015 16:51:04 -0600 Subject: [AccessD] Fancy graphs from Access In-Reply-To: References: Message-ID: Hi Doug, You can make a variety of good-looking charts in Access. This looks like a good place to start: http://www.functionx.com/access/Lesson32.htm However, you may have to give up on pie charts. The reason is that the leader lines for each section of the pie end up on top of each other, and they cannot be relocated in code (every pie chart I ever made in Excel needed to have the leader lines manually located to be viewable). I guess if you turn the leaders off (if possible), then you can just use the legend to show which pie section is for what. I've made some interesting charts in Access. It's tedious, and you sometimes have to do some magic with queries, but hopefully your customer will like them. Expect to put some hours into developing each chart, and charge accordingly. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Wednesday, February 04, 2015 16:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Fancy graphs from Access I've just had a client ask how he can print some fancy formatted pie charts and graphs from an Access database. I don't have a clue - can anyone suggest a work flow that he can use? I can always build a query to get the data out to Excel or ???, but from that point onward I have no experience. Thanks, Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Wed Feb 4 16:57:07 2015 From: dbdoug at gmail.com (Doug Steele) Date: Wed, 4 Feb 2015 14:57:07 -0800 Subject: [AccessD] OT: Working with Mac Mini from MS Windows via RealVNC. Was: Re[2]: Microsoft stock price crashed today In-Reply-To: <1423036874.491563358@f338.i.mail.ru> References: <6EE85296E0E742168E2302D884BF2D13@HAL9007> <1422909798.140566194@f221.i.mail.ru> <1423036874.491563358@f338.i.mail.ru> Message-ID: I've got a couple of Samsung 24 inch monitors; a 2443BW and a BX2450. The fact that I had a couple of decent monitors was part of the reason I bought the Mini instead of an iMac. Doug On Wed, Feb 4, 2015 at 12:01 AM, Salakhetdinov Shamil wrote: > Hi Doug -- > > Thank you for your replies. > > Just last question: What display model do you use with your Mac Mini? > > -- Shamil > > Tuesday, February 03, 2015 3:52 PM -08:00 from Doug Steele < > dbdoug at gmail.com>: > >Hi Shamil: > >Replies are embedded in questions > > > >On Mon, Feb 2, 2015 at 12:43 PM, Salakhetdinov Shamil < mcp2004 at mail.ru > > >wrote: > > > >> Hi Doug -- > >> > >> Thank you, as you're not on dba-Tech, I will try to ask you my questions > >> on Mac Mini usage here as I suppose your answers would be interesting > for > >> this group members: > >> > >> Main questions: > >> > >> - What (wireless) keyboard and mouse do you use with your Mac Mini? > >> > >I normally use a wired USB large Apple keyboard and an Apple Bluetooth > >trackpad; I just tried it successfully with an Apple Bluetooth keyboard > and > >a Logitech mk360 USB dongle wireless keyboard and mouse. They worked as > >soon as they were plugged in. > > > > > >> > >> - Would it be a viable option to use a RealVNC Viewer (free version as > >> paid one doesn't exists) running on an MS Windows system to control a > Mac > >> Mini (with RealVNC Server paid version)? > >> > >I've got no experience with this, but I imagine it would be fine. From > >what I've read, OSX works well with the VNC standard. > > > >> > >> Secondary questions, just reply if you have any experience and/or wish > to > >> share your opinion: > >> > >> - What Mac Mini configuration would be good enough for iPhone/iPad > >> development with iOS 8 SDK and XCode? > >> > > > >I've done some XCode work. My Mini is a 2.3Ghz I7 (late 2012) with 16gb > >ram, and it runs very well. I can have two Windows Parallels virtual > >machines running and MS Access is just fine. My Macbook Pro is a 2.3Ghz > I5 > >(early 2011) with 8gb ram. It's perfectly adequate for XCode development, > >but I can't run more than one Windows VM without bogging down. Both > >machines are running Yosemite. Based on my experience with my Macbook > Air, > >which has an SSD instead of a HD, I think that a Mini with an SSD drive > >would be a rocket. > > > >> > >> - Have you ever tried to connect a Mac Mini via HDMI to a Smart TV as > >> e.g. Samsung UN40H6350 40-Inch 1080p 120Hz Smart LED TV ( > >> http://tinyurl.com/lvgmw9j ) to use it as a display? Thank you. > >> > > > >No, I haven't. > > > >> > >> -- 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 df.waters at outlook.com Wed Feb 4 17:00:51 2015 From: df.waters at outlook.com (Dan Waters) Date: Wed, 4 Feb 2015 17:00:51 -0600 Subject: [AccessD] Access Controlling Excel Via Windows Automation - More Info In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> <54D24356.7090203@gmail.com> Message-ID: Hi Bill, This is what I use to open an excel file - maybe it will be helpful. Good Luck! Dan -------------------------- Public Sub OpenExcelFile(stgSpreadsheetFullPath As String) Dim objExcel As Object Dim objWorkbook As Object ' Dim objExcel As excel.Application '-- TEST ' Dim objWorkbook As excel.Workbook '-- TEST Application.Echo SV.ApplicationEcho DoEvents '-- Open the Excel application Set objExcel = CreateObject("Excel.Application") DoEvents '-- Make the application visible objExcel.Visible = True DoEvents '-- Open the workbook in the spreadsheet file Set objWorkbook = objExcel.Workbooks.Open(stgSpreadsheetFullPath) '-- Now that the file is open to the workbook close the object variables Set objWorkbook = Nothing Set objExcel = Nothing Application.Echo True End Sub ------------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Wednesday, February 04, 2015 16:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation - More Info I'm stumped, however I am beginning to consider the possibility of some plug-in or Addin to their Excel causing the issue. Would you feel comfortable asking them to disable any plug-ins like Adobe, etc - and temporarily uninstall any Add-ins (COM or otherwise) - and retry? On Wed, Feb 4, 2015 at 12:57 PM, Brad Marks wrote: > All, > > Thanks for the help on this issue. > > Summary - Access application controlling Excel via Windows Automation. > > Late Binding is used > > Works properly on PC with Access 2007 and Excel 2007 > > Works properly on a second PC with Access 2013 (Runtime) and Excel > 2013 > > > Does not work on a machine with Access 2010 (Runtime) and Excel 2013. > > I actually have two small Access applications that I am using to debug > this problem. > > One was working fine, the other was not working. > > The first Access application had "xlApp.Visible = False" and was > working nicely. > > I changed this line to "xlApp.Visible = True" and now this application > is also not working. I now see an error message that says "We're > sorry, but Excel has run into an error that is preventing it from working correctly. > Excel will need to be closed as a result." > > So, it appears that the command "xlApp.Visible = True" is at the crux > of the problem on the machine with Access 2010 (Runtime) and Excel 2013. > > I feel like I am getting closer, but still no cigar. > > Brad > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Wednesday, February 04, 2015 10:36 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation > > It works just fine for any app I have used, so long as late binding us > used. > > I particular I have clients who ONLY have Office 2010 - and who > recently bought Access 2013 standalone: and my Access App which > automates their Excel (without a ref to Excel) works just fine. > > I would look elsewhere. > > You say there is no error message Brad. Have you had them look in Task > Managet, maybe the instance is opening invisibly? In which case > > XLApp.Visible = True > > would resolve. > On Feb 4, 2015 11:07 AM, "John W. Colby" wrote: > > > You are trying to automate a later version from an earlier version. > > That is never a good idea, and I would not expect it to work. > > > > John W. Colby > > > > On 2/4/2015 10:14 AM, Brad Marks wrote: > > > >> All, > >> > >> I just ran a test of the Access application that creates an Excel > >> file on a PC that has Access 2013 and Excel 2013. It worked perfectly. > >> > >> However, when I run the same application on the machine that has > >> Access > >> 2010 Runtime and Excel 2013, the application gets hung up. There > >> is no error message. > >> > >> I have rebooted this machine and this did not make any difference. > >> > >> I thought that Access 2010 Runtime would play nicely with Excel > >> 2013, but for some reason this appears to not be the case. > >> > >> I am open to any ideas. > >> > >> Thanks, > >> Brad > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces@ > >> databaseadvisors.com] On Behalf Of Bill Benson > >> Sent: Tuesday, February 03, 2015 4:02 PM > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Access Controlling Excel Via Windows > >> Automation > >> > >> Did you (1) use late binding but nonetheless (2) left a reference > >> to Excel? > >> That would do it if the Excel you are using is not in the same > >> location as the next user's. And it has happened to me. > >> > >> On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks > >> > >> wrote: > >> > >> All, > >>> > >>> I don't have a lot of experience with this realm but I have had > >>> some success using Access VBA to control Excel via Automation. > >>> > >>> I have one Access 2007 application that creates a number of reports. > >>> Recently I have added new VBA code to also create an Excel file. > >>> This works nicely on my development PC that has Access 2007 and > >>> Excel > 2007. > >>> > >>> However, I have run into some problems when trying to deploy this > >>> application on a machine that has Access 2010 Runtime and Excel 2013. > >>> > >>> All of the reports work properly via Access 2010 Runtime. > >>> > >>> However, when I try to run the VBA code that generates the Excel > >>> file, the application hangs up. There are no error messages. > >>> > >>> I am using "Late Binding". > >>> > >>> I am not sure where to start looking. > >>> > >>> Should Access 2010 Runtime work properly in conjunction with Excel > 2013? > >>> (both are 32 bit) > >>> > >>> Is anyone else using this combination? > >>> > >>> I have thought about upgrading Access Runtime from 2010 to 2013, > >>> but I would prefer to not do this if I can resolve the current problems. > >>> > >>> Thanks, > >>> Brad > >>> > >>> -- > >>> AccessD mailing list > >>> AccessD at databaseadvisors.com > >>> http://databaseadvisors.com/mailman/listinfo/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 darryl at whittleconsulting.com.au Wed Feb 4 17:16:00 2015 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Wed, 4 Feb 2015 23:16:00 +0000 Subject: [AccessD] I couldn't post In-Reply-To: References: Message-ID: Yes... I am a big Office 365 fan as well. The original reason we used it was mostly for the Exchange server that was included. Makes Outlook very useful. But it has proven to be useful with other apps as well, in particular, One note. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, 4 February 2015 9:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] I couldn't post Hi John We have some accounts for various purposes on Gmail. Every time I go to that web interface I'm surprised how horrible it is and wonder how people can live with it, some even pay for it. It makes no sense regarding the vast resources of Google. But it sounds as you haven't met Outlook 365. It is one or two generations ahead of Gmail. Some of my colleagues even prefer this for the normal Outlook 2013 desktop client. A year ago we switched the e-mail from our trusted but outdated Novell GroupWise 6.5. I was about setting up a local Exchange server but decided to give the "cloud Exchange" a chance - and haven't looked back. Now our mail and calendars are synced "all over" - to my Surface, our phones (Windows Phones and Android) and if out somewhere a browser will do. If you use the Outlook desktop client, you can work off-line as well, reading and writing mails. /gustav ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Tuesday, 3 February, 2015 12:51:10 PM Subject: Re: [AccessD] I couldn't post Yea yea. I hate web applications as they tend to be web clunky. Gmail's web app sucks so bad it is almost unusable. Not to mention, no web no mail. Glad you like it though. John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bensonforums at gmail.com Wed Feb 4 22:09:37 2015 From: bensonforums at gmail.com (Bill Benson) Date: Wed, 4 Feb 2015 23:09:37 -0500 Subject: [AccessD] Access Controlling Excel Via Windows Automation - More Info In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> <54D24356.7090203@gmail.com> Message-ID: It's not me with the need Dan, probably Brad you are trying to help, no? I have *never* had trouble automating Excel. Then again possibly I have not tried to automate excel 2013 from Ac2010. And my client is automating from Ac2013 to Excel 2010. My code looks similar to yours though I don't use the DoEvents because sometimes they hurt me rather than help me. am sure. When I Googled the error message Brad mentioned I saw some Google posts about application level addins or plugins... so I suggested that...so maybe Brad has stumbled across a problem with plug-ins or addins that don't like being automated. I am eager to see what he learns. Thanks! > On Feb 4, 2015 6:02 PM, "Dan Waters" wrote: >> >> Hi Bill, >> >> This is what I use to open an excel file - maybe it will be helpful. >> >> Good Luck! >> Dan >> >> -------------------------- >> Public Sub OpenExcelFile(stgSpreadsheetFullPath As String) >> >> Dim objExcel As Object >> Dim objWorkbook As Object >> ' Dim objExcel As excel.Application '-- TEST >> ' Dim objWorkbook As excel.Workbook '-- TEST >> >> Application.Echo SV.ApplicationEcho >> >> DoEvents >> >> '-- Open the Excel application >> Set objExcel = CreateObject("Excel.Application") >> >> DoEvents >> >> '-- Make the application visible >> objExcel.Visible = True >> >> DoEvents >> >> '-- Open the workbook in the spreadsheet file >> Set objWorkbook = objExcel.Workbooks.Open(stgSpreadsheetFullPath) >> >> '-- Now that the file is open to the workbook close the object variables >> Set objWorkbook = Nothing >> Set objExcel = Nothing >> >> Application.Echo True >> >> End Sub >> ------------------------------- >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson >> From bensonforums at gmail.com Wed Feb 4 22:13:42 2015 From: bensonforums at gmail.com (Bill Benson) Date: Wed, 4 Feb 2015 23:13:42 -0500 Subject: [AccessD] Fancy graphs from Access In-Reply-To: References: Message-ID: curious, why should people reinvent a wheel that third party sw seems to have reasonably covered? Does the 3rd party sw cost too much or fail to deliver? I hate tedium. If I could avoid it for non-specific crap like charting and dashboards I would certainly look into it, especially for commercial stuff where someone else is willing to foot the bill. They will pay a lot for my time to develop based on my billing rate and learning curve. On Feb 4, 2015 5:52 PM, "Dan Waters" wrote: > Hi Doug, > > You can make a variety of good-looking charts in Access. This looks like a > good place to start: http://www.functionx.com/access/Lesson32.htm > > However, you may have to give up on pie charts. The reason is that the > leader lines for each section of the pie end up on top of each other, and > they cannot be relocated in code (every pie chart I ever made in Excel > needed to have the leader lines manually located to be viewable). I guess > if you turn the leaders off (if possible), then you can just use the legend > to show which pie section is for what. > > I've made some interesting charts in Access. It's tedious, and you > sometimes have to do some magic with queries, but hopefully your customer > will like them. Expect to put some hours into developing each chart, and > charge accordingly. > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Wednesday, February 04, 2015 16:30 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Fancy graphs from Access > > I've just had a client ask how he can print some fancy formatted pie charts > and graphs from an Access database. I don't have a clue - can anyone > suggest a work flow that he can use? I can always build a query to get the > data out to Excel or ???, but from that point onward I have no experience. > > Thanks, > Doug > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 darryl at whittleconsulting.com.au Wed Feb 4 22:26:07 2015 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Thu, 5 Feb 2015 04:26:07 +0000 Subject: [AccessD] Fancy graphs from Access In-Reply-To: References: Message-ID: I tend to vote with Bill on this one. Let each bit of kit stick to its strengths. Excel is a lousy database and Access makes a poor charting platform. Why not just push the necessary data into Excel and make the charts there? You can even link Excel into Access if you want, although this brings with it some other issues that a stand-alone solution avoids. Horses for course yada yada. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Thursday, 5 February 2015 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Fancy graphs from Access curious, why should people reinvent a wheel that third party sw seems to have reasonably covered? Does the 3rd party sw cost too much or fail to deliver? I hate tedium. If I could avoid it for non-specific crap like charting and dashboards I would certainly look into it, especially for commercial stuff where someone else is willing to foot the bill. They will pay a lot for my time to develop based on my billing rate and learning curve. On Feb 4, 2015 5:52 PM, "Dan Waters" wrote: > Hi Doug, > > You can make a variety of good-looking charts in Access. This looks > like a good place to start: > http://www.functionx.com/access/Lesson32.htm > > However, you may have to give up on pie charts. The reason is that > the leader lines for each section of the pie end up on top of each > other, and they cannot be relocated in code (every pie chart I ever > made in Excel needed to have the leader lines manually located to be > viewable). I guess if you turn the leaders off (if possible), then > you can just use the legend to show which pie section is for what. > > I've made some interesting charts in Access. It's tedious, and you > sometimes have to do some magic with queries, but hopefully your customer > will like them. Expect to put some hours into developing each chart, and > charge accordingly. > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Wednesday, February 04, 2015 16:30 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Fancy graphs from Access > > I've just had a client ask how he can print some fancy formatted pie > charts and graphs from an Access database. I don't have a clue - can > anyone suggest a work flow that he can use? I can always build a > query to get the data out to Excel or ???, but from that point onward I have no experience. > > Thanks, > Doug > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at gmail.com Wed Feb 4 23:12:24 2015 From: jwcolby at gmail.com (John Colby) Date: Thu, 05 Feb 2015 00:12:24 -0500 Subject: [AccessD] Beaglebone lives Message-ID: <54D2FBB8.5030803@gmail.com> I mentioned that I had purchased a Raspberry Pi clone called BeagleBone Black (BBB), which I received today. I hooked it up to my Clinix box (My own personal fork - ColbyLinux :~) using a supplied USB cable. I turned it on and was able to see the memory on the BBB from file manager. I ran Start.html in the root dir and up comes a web page. There is a web server running by default on the BBB. I have not really figured out what is running where but I found something called Cloud 9 which is a cloud based IDE for development on the BBB. It appears to be running on the BBB itself because the browser address is http://192.168.7.2:3000/ide.html, which is the BBB. Using "how to" at http://beagleboard.org/support/bone101 I stepped through writing my first java script in this Cloud 9 IDE and then running it on the board. It just blinks a light. var b = require('bonescript'); var state = b.LOW; b.pinMode("USR0", b.OUTPUT); b.pinMode("USR1", b.OUTPUT); b.pinMode("USR2", b.OUTPUT); b.pinMode("USR3", b.OUTPUT); setInterval(toggle, 1000); function toggle() { if(state == b.LOW) state = b.HIGH; else state = b.LOW; b.digitalWrite("USR3", state); } Woot none the less!!! Less than an hour, including having to move my router around to get it close to my Clinix box and the BBB and I am running code. I'm telling you guys, if you have the slightest interest in controllers and / or electronics, go buy this thing http://www.adafruit.com/products/703 and I will work with anyone who wants to play with me. This thing contains a breadboard that sits next to the BBB and allows us to pull voltage, ground and signals out to the breadboard to drive circuits. Look at http://www.adafruit.com/products/702. (included in the 703 product above) Then read down through http://192.168.7.2/Support/bone101/ I have experience with controllers, though not Java script. In 1996 I designed a debit card vending machine which was actually produced and placed around Puebla Mexico and in the subway in Mexico City. I did the electronics and coding in a dedicated SBC running a real time OS (not Linux) using C. I also played with Atmel ucontrollers a few years ago, again using C but this time written on a PC and pushed down into the controller. Things have gotten much easier with the BBB! Ever wanted to control a robot or something. This makes it pretty simple. Email me off line if you are interested and I'll talk with you. From dbdoug at gmail.com Wed Feb 4 23:21:20 2015 From: dbdoug at gmail.com (Doug Steele) Date: Wed, 4 Feb 2015 21:21:20 -0800 Subject: [AccessD] Fancy graphs from Access In-Reply-To: References: Message-ID: Bill: do you have any experience with DashboardBuilder? Dan: my experience with graphing in Access (only in A2003, mind) was comparable to doing my own dental work with a pair of pliers and a hammer. Both of them bent and rusty :) The options - Access, Excel, outside software, that have been suggested, bring up an interesting thought. I worked for this client as a full time employee for several years until I moved away. If I had spent three days in the office logging my time as 'research', nobody would have complained. But if I now try to research their request with an invoice for 24 hours at my standard billing rate, the proverbial s*** would hit the fan. Doug On Wed, Feb 4, 2015 at 8:26 PM, Darryl Collins < darryl at whittleconsulting.com.au> wrote: > I tend to vote with Bill on this one. Let each bit of kit stick to its > strengths. Excel is a lousy database and Access makes a poor charting > platform. > > Why not just push the necessary data into Excel and make the charts > there? You can even link Excel into Access if you want, although this > brings with it some other issues that a stand-alone solution avoids. > > Horses for course yada yada. > > Cheers > Darryl. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Thursday, 5 February 2015 3:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Fancy graphs from Access > > curious, why should people reinvent a wheel that third party sw seems to > have reasonably covered? Does the 3rd party sw cost too much or fail to > deliver? I hate tedium. If I could avoid it for non-specific crap like > charting and dashboards I would certainly look into it, especially for > commercial stuff where someone else is willing to foot the bill. They will > pay a lot for my time to develop based on my billing rate and learning > curve. > On Feb 4, 2015 5:52 PM, "Dan Waters" wrote: > > > Hi Doug, > > > > You can make a variety of good-looking charts in Access. This looks > > like a good place to start: > > http://www.functionx.com/access/Lesson32.htm > > > > However, you may have to give up on pie charts. The reason is that > > the leader lines for each section of the pie end up on top of each > > other, and they cannot be relocated in code (every pie chart I ever > > made in Excel needed to have the leader lines manually located to be > > viewable). I guess if you turn the leaders off (if possible), then > > you can just use the legend to show which pie section is for what. > > > > I've made some interesting charts in Access. It's tedious, and you > > sometimes have to do some magic with queries, but hopefully your customer > > will like them. Expect to put some hours into developing each chart, > and > > charge accordingly. > > > > Good Luck! > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > > Sent: Wednesday, February 04, 2015 16:30 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Fancy graphs from Access > > > > I've just had a client ask how he can print some fancy formatted pie > > charts and graphs from an Access database. I don't have a clue - can > > anyone suggest a work flow that he can use? I can always build a > > query to get the data out to Excel or ???, but from that point onward I > have no experience. > > > > Thanks, > > Doug > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 bensonforums at gmail.com Wed Feb 4 23:33:21 2015 From: bensonforums at gmail.com (Bill Benson) Date: Thu, 5 Feb 2015 00:33:21 -0500 Subject: [AccessD] Fancy graphs from Access In-Reply-To: References: Message-ID: <014601d04105$41d9d060$c58d7120$@gmail.com> No, but I just was making a general suggestion to check out 3rd party sw before killing myself trying to get quality eye charts from Access... figured it was not that application's strong suit and maybe a 3rd party had it covered. Sorry if I gave the impression this was from personal experience. Trying to find a less painful path for you to try out Doug. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Thursday, February 5, 2015 12:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Fancy graphs from Access Bill: do you have any experience with DashboardBuilder? Dan: my experience with graphing in Access (only in A2003, mind) was comparable to doing my own dental work with a pair of pliers and a hammer. Both of them bent and rusty :) The options - Access, Excel, outside software, that have been suggested, bring up an interesting thought. I worked for this client as a full time employee for several years until I moved away. If I had spent three days in the office logging my time as 'research', nobody would have complained. But if I now try to research their request with an invoice for 24 hours at my standard billing rate, the proverbial s*** would hit the fan. Doug On Wed, Feb 4, 2015 at 8:26 PM, Darryl Collins < darryl at whittleconsulting.com.au> wrote: > I tend to vote with Bill on this one. Let each bit of kit stick to > its strengths. Excel is a lousy database and Access makes a poor > charting platform. > > Why not just push the necessary data into Excel and make the charts > there? You can even link Excel into Access if you want, although this > brings with it some other issues that a stand-alone solution avoids. > > Horses for course yada yada. > > Cheers > Darryl. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Thursday, 5 February 2015 3:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Fancy graphs from Access > > curious, why should people reinvent a wheel that third party sw seems > to have reasonably covered? Does the 3rd party sw cost too much or > fail to deliver? I hate tedium. If I could avoid it for non-specific > crap like charting and dashboards I would certainly look into it, > especially for commercial stuff where someone else is willing to foot > the bill. They will pay a lot for my time to develop based on my > billing rate and learning curve. > On Feb 4, 2015 5:52 PM, "Dan Waters" wrote: > > > Hi Doug, > > > > You can make a variety of good-looking charts in Access. This looks > > like a good place to start: > > http://www.functionx.com/access/Lesson32.htm > > > > However, you may have to give up on pie charts. The reason is that > > the leader lines for each section of the pie end up on top of each > > other, and they cannot be relocated in code (every pie chart I ever > > made in Excel needed to have the leader lines manually located to be > > viewable). I guess if you turn the leaders off (if possible), then > > you can just use the legend to show which pie section is for what. > > > > I've made some interesting charts in Access. It's tedious, and you > > sometimes have to do some magic with queries, but hopefully your customer > > will like them. Expect to put some hours into developing each chart, > and > > charge accordingly. > > > > Good Luck! > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug > > Steele > > Sent: Wednesday, February 04, 2015 16:30 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Fancy graphs from Access > > > > I've just had a client ask how he can print some fancy formatted pie > > charts and graphs from an Access database. I don't have a clue - > > can anyone suggest a work flow that he can use? I can always build > > a query to get the data out to Excel or ???, but from that point > > onward I > have no experience. > > > > Thanks, > > Doug > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 dbdoug at gmail.com Wed Feb 4 23:49:56 2015 From: dbdoug at gmail.com (Doug Steele) Date: Wed, 4 Feb 2015 21:49:56 -0800 Subject: [AccessD] Fancy graphs from Access In-Reply-To: <014601d04105$41d9d060$c58d7120$@gmail.com> References: <014601d04105$41d9d060$c58d7120$@gmail.com> Message-ID: Thanks, Bill. I appreciate all suggestions. I'd like to make it as easy on myself as possible before I talk to my client. On Wed, Feb 4, 2015 at 9:33 PM, Bill Benson wrote: > No, but I just was making a general suggestion to check out 3rd party sw > before killing myself trying to get quality eye charts from Access... > figured it was not that application's strong suit and maybe a 3rd party had > it covered. Sorry if I gave the impression this was from personal > experience. Trying to find a less painful path for you to try out Doug. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Thursday, February 5, 2015 12:21 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Fancy graphs from Access > > Bill: do you have any experience with DashboardBuilder? > > Dan: my experience with graphing in Access (only in A2003, mind) was > comparable to doing my own dental work with a pair of pliers and a hammer. > Both of them bent and rusty :) > > The options - Access, Excel, outside software, that have been suggested, > bring up an interesting thought. I worked for this client as a full time > employee for several years until I moved away. If I had spent three days > in > the office logging my time as 'research', nobody would have complained. > But if I now try to research their request with an invoice for 24 hours at > my standard billing rate, the proverbial s*** would hit the fan. > > Doug > > On Wed, Feb 4, 2015 at 8:26 PM, Darryl Collins < > darryl at whittleconsulting.com.au> wrote: > > > I tend to vote with Bill on this one. Let each bit of kit stick to > > its strengths. Excel is a lousy database and Access makes a poor > > charting platform. > > > > Why not just push the necessary data into Excel and make the charts > > there? You can even link Excel into Access if you want, although this > > brings with it some other issues that a stand-alone solution avoids. > > > > Horses for course yada yada. > > > > Cheers > > Darryl. > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto: > > accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > > Sent: Thursday, 5 February 2015 3:14 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Fancy graphs from Access > > > > curious, why should people reinvent a wheel that third party sw seems > > to have reasonably covered? Does the 3rd party sw cost too much or > > fail to deliver? I hate tedium. If I could avoid it for non-specific > > crap like charting and dashboards I would certainly look into it, > > especially for commercial stuff where someone else is willing to foot > > the bill. They will pay a lot for my time to develop based on my > > billing rate and learning curve. > > On Feb 4, 2015 5:52 PM, "Dan Waters" wrote: > > > > > Hi Doug, > > > > > > You can make a variety of good-looking charts in Access. This looks > > > like a good place to start: > > > http://www.functionx.com/access/Lesson32.htm > > > > > > However, you may have to give up on pie charts. The reason is that > > > the leader lines for each section of the pie end up on top of each > > > other, and they cannot be relocated in code (every pie chart I ever > > > made in Excel needed to have the leader lines manually located to be > > > viewable). I guess if you turn the leaders off (if possible), then > > > you can just use the legend to show which pie section is for what. > > > > > > I've made some interesting charts in Access. It's tedious, and you > > > sometimes have to do some magic with queries, but hopefully your > customer > > > will like them. Expect to put some hours into developing each chart, > > and > > > charge accordingly. > > > > > > Good Luck! > > > Dan > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug > > > Steele > > > Sent: Wednesday, February 04, 2015 16:30 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Fancy graphs from Access > > > > > > I've just had a client ask how he can print some fancy formatted pie > > > charts and graphs from an Access database. I don't have a clue - > > > can anyone suggest a work flow that he can use? I can always build > > > a query to get the data out to Excel or ???, but from that point > > > onward I > > have no experience. > > > > > > Thanks, > > > Doug > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/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 accessd at shaw.ca Thu Feb 5 00:51:32 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 4 Feb 2015 23:51:32 -0700 (MST) Subject: [AccessD] OT: Working with Mac Mini from MS Windows via RealVNC. Was: Re[2]: Microsoft stock price crashed today In-Reply-To: Message-ID: <1503956078.116567758.1423119092725.JavaMail.root@cds018> It appears to be the case. :-) Jim ----- Original Message ----- From: "Doug Steele" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 3, 2015 8:26:00 PM Subject: Re: [AccessD] OT: Working with Mac Mini from MS Windows via RealVNC. Was: Re[2]: Microsoft stock price crashed today On Tue, Feb 3, 2015 at 7:52 PM, Jim Lawrence wrote: > What's xcode? > The beginner level of programming for OSX. Once you've mastered it and the next level above that, you can graduate to XXXCode - that's the fun part. > > What's a Mac? Isn't that just a distro running on top of version a freeBSD > Unix? ;-) > You're probably right. Does that mean I'm an inadvertent Unix guru? Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 5 02:24:38 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 5 Feb 2015 01:24:38 -0700 (MST) Subject: [AccessD] I couldn't post In-Reply-To: <54D1A166.1010903@gmail.com> Message-ID: <632418048.116603078.1423124678084.JavaMail.root@cds018> Hi John: If you really want to dig around in the distros the following list gives the top 287 contenders...not a completely extensive list but a good start. I don't think I have played with more than a dozen though: http://distrowatch.com/dwres.php?resource=popularity I tend to make a list of commands acquired from the installation site so if the command is ever needed again it easy to get or if it is used repeatedly I just build a bash script and drop a short-cut on the desktop. After a while you just memorize them. sudo apt-get remove --purge mysql-server mysql-client mysql-common sudo apt-get autoremove sudo apt-get autoclean The above is pretty well standard for any debian distros...Ubuntu and Mint. Debian is my favourite. There are only about half a dozen main Linux and BSD distros. http://en.wikipedia.org/wiki/List_of_Linux_distributions The truth is that Microsoft Windows is probably the only major non-Unix/Linux OS left and apparently they are flirting with the dark side as well. ;-) Jim PS The first OS the Bill Gaits worked on was Xenix...a multi-user, multi-tasking Unix like OS that could run on computers like 286s...for some reason he then made a castrated version and called it DOS and Windows has been trying to catch up ever since. ;-) ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 3, 2015 8:34:46 PM Subject: Re: [AccessD] I couldn't post Jim, >unless your willing to go down to the command prompt network issues can be impossible to fix. I get that, and I understand dropping to the command window for that kind of thing. But that is NOT a simple install or uninstall! That is once in a blue moon gotta go to the command window. Go out to watch YouTube videos of ANYTHING linux and observe what percentage of time the person is clacking away in the command window. It is like I am back in 1982. I'm not giving up! I expect that if you are just doing office stuff then yea, install it and go. The mint installation itself went flawlessly. Actually USING a browser or the office apps works just as you would expect (and as in Windows) in the Gui. And at lleast in Mint, anything already in the distro can just be installed through the gui. But holy crap, come time to actually install anything else... Take MariaDB for example. I want to use that specifically, rather than get started with MySQL and switch later. Unfortunately (for me) it seems that MySQL is native to Ubuntu and Mint is a fork of Ubuntu. So I immediately have to uninstall MySQL. Well... there is no (gui) uninstaller. And the uninstall itself (the actual text that you type in) is specific to the linux distro. And... of course... it is typing in the command console. So it is off to Google to try to discover how to uninstall something. Then... it is the same to install MariaDB. "What version of linux are you using?" If this version then you have to do this, but if that version you have to do that... and of course... typing into the command console. Likewise with getting a VM running. Likewise with getting Wine. If you happen to be lucky and it is already in the distro then it gets easier (to install). Maybe / mostly. Get this, I was in a chat room asking questions about how to do this stuff. The guy actually recommended that I get rid of mint and go to... Now what kind of stupid response is that. Trash my perfectly running install of a version of linux to move to some other (equally frustrating) version of linux in the vain hope that one specific application will be easier to install? And we all know why it is like this. Because Linux is so fragmented that even though it is supposed to "all be the same", it isn't. Nothing is the same, everything is slightly (or not so slightly) different. I was watching a YouTube video the other day where the speaker was showing a graph of the number of users of various versions. There were perhaps 15 or 20 different lines in this graph. And those are just the MAJOR distros. It's a cluster...friggen mess. To be honest it reminds me of school children trading baseball cards. "Ooooh have you seen..."? "No but I'm gonna run right home and grab my usb stick and get that up and play with it..." So I can see how you could get an entire office up in Linux, I got my machine up in Mint in just an hour or so. And spent many MANY subsequent hours trying (unsuccessfully so far) getting MariaDB and VM hosting up and working. Once they are up and working, I fully expect to have a gui that allows me to do my work in those programs. Furthermore I AM going to work in ucontrollers and they are all Linux so I just have no choice but to move through this cluster...friggen mess and learn enough to get a dev environment and cross compiler up. You better believe however that there is a very narrow objective, which is to get specific applications up in SOME (don't give a damn which) version of Linux so I can actually get some work done. If anyone wants to join me in the nightmare, (misery LOVES company) I joined the tech group and am trying to get some response over there for playing with Raspberry Pi or BeagleBone Black. Go get one if you haven't already and let's play. The BeagleBone Black in particular is a way cool widget for automation stuff. I did Atmel controllers a few years ago (no linux fortunately) and it was a ton-o-fun. By the way, I designed and built a debit card vending machine in 96 when I lived in Mexico. It used a Z-80 single board computer and ran a custom real time system with a C compiler to program it. It used a bill acceptor (like in a coke machine) interfaced over RS-488 serial to the controller and we then built a vend widget with a motor, a metal ram, and a bunch of LED / detectors to allow me to control the vend cycle. It kept all of the data in RAM on the SBC and talked (via RS232) to a hand held computer that the operator would hook up to the machine to read out the data about the bills in the machine, how many cards were left etc. I did all of the electronics (really quite simple) as well as wrote the vending machine software. That was the most fun I have ever been paid to have! :) John W. Colby On 2/3/2015 10:31 PM, Jim Lawrence wrote: > You are obviously having the worse experiences with it. > > I tend to be lazy and use the terminal only when all else fails and mostly for speed. I tend to find Windows too dumbed down and unless your willing to go down to the command prompt network issues can be impossible to fix. > > I must relate a story of a client that I helped a couple (three) of years ago. They had all Windows XP boxes but decided to experiment by setting a dozen by upgrading to Linux (in this case Ubuntu), to save money. It took only four hours, on a Saturday afternoon, to install a dozen new system, connect to all the printer, the network, the internet and install all the office software. A young lady there (24-25), who knew basically nothing about computers, helped me with the install. > > I thought that I might be supporting them for years, one way of another, but it was not so. She just picked the ball up and ran with it. I understand the whole office (50 desktops) and all the servers are now running Linux and everything runs flawlessly. So with no computer system training or experience (thank God for Google), this young person did all this without any help from me and she just loves it. The truth is that she was young and didn't have to unlearn any bad habits. > > I have had no problem with Linux but back in the day, I was a certified SCO Unix installer, so it was just like being back home again. This does not mean that I do not like Windows; it is just that the moment we step away from the desktop and move into the world of the internet, its a Linux universe out there. > > Don't give up on Linux...it is hardly smarter than you are and I have found it to be great fun as it has all the latest and greatest technologies, first. As Satya Nadella, CEO of Microsoft say, "We love Linux." > > Jim > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Feb 5 05:08:11 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 11:08:11 +0000 (GMT) Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <632418048.116603078.1423124678084.JavaMail.root@cds018> References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> Message-ID: <102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> Hi folks I'm moving an ancient and very big db from A97 to A2010. I've just been tripped up by a difference in behaviour when using IIF. Here's the line of code: res=IIF(IsNull(var),Null,Weekday(var)) In A97 this works fine and gives me Null. However, in A2010 this is crashing with Invalid Use of Null. It must evaluate both true and false element(s) of the IIF regardless. (Queries do not appear to do this, they work as before). Is this a general rule in A2010. Is there anything I can do to change this behaviour? I know I can code round it in a number of ways but finding all instances of this in a humungous db is a horrendous prospect. I'm praying for a magic answer. Hang on, read on. After a bit more digging I'm not sure now where this will and will not arise. I just tried the following: res=iif(isnull(var),null,instr(var,"12345","1")) and, unlike the Weekday function, that crashes in A97 which blows out of the water the idea that the False part of the IIF function wasn't evaluated before. So now I'm not sure if there is a rule by which all functions abide. Confused. Oh and pleeease don't tell me that I shouldn't have coded like that in the first place. That wouldn't be helpful. Andy From gustav at cactus.dk Thu Feb 5 05:33:24 2015 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 5 Feb 2015 11:33:24 +0000 Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> <102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: Hi Andy How about: res = Weekday(var) or rather: res = Weekday(var, vbUseSystemDayOfWeek) Works in A2013. /gustav -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey Sendt: 5. februar 2015 12:08 Til: Access Developers discussion and problem solving Emne: [AccessD] Change in the evaluation of IIF, or something else? Hi folks I'm moving an ancient and very big db from A97 to A2010. I've just been tripped up by a difference in behaviour when using IIF. Here's the line of code: res=IIF(IsNull(var),Null,Weekday(var)) In A97 this works fine and gives me Null. However, in A2010 this is crashing with Invalid Use of Null. It must evaluate both true and false element(s) of the IIF regardless. (Queries do not appear to do this, they work as before). Is this a general rule in A2010. Is there anything I can do to change this behaviour? I know I can code round it in a number of ways but finding all instances of this in a humungous db is a horrendous prospect. I'm praying for a magic answer. Hang on, read on. After a bit more digging I'm not sure now where this will and will not arise. I just tried the following: res=iif(isnull(var),null,instr(var,"12345","1")) and, unlike the Weekday function, that crashes in A97 which blows out of the water the idea that the False part of the IIF function wasn't evaluated before. So now I'm not sure if there is a rule by which all functions abide. Confused. Oh and pleeease don't tell me that I shouldn't have coded like that in the first place. That wouldn't be helpful. Andy From jimdettman at verizon.net Thu Feb 5 05:49:15 2015 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 05 Feb 2015 06:49:15 -0500 Subject: [AccessD] I couldn't post In-Reply-To: <632418048.116603078.1423124678084.JavaMail.root@cds018> References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> Message-ID: Why oh why is all this being posted to the Access D list? If were going to have separate lists, post to the separate lists... If your not because you think it will be of interest to everyone, then let's get rid of the separate lists. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 05, 2015 03:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] I couldn't post Hi John: If you really want to dig around in the distros the following list gives the top 287 contenders...not a completely extensive list but a good start. I don't think I have played with more than a dozen though: http://distrowatch.com/dwres.php?resource=popularity I tend to make a list of commands acquired from the installation site so if the command is ever needed again it easy to get or if it is used repeatedly I just build a bash script and drop a short-cut on the desktop. After a while you just memorize them. sudo apt-get remove --purge mysql-server mysql-client mysql-common sudo apt-get autoremove sudo apt-get autoclean The above is pretty well standard for any debian distros...Ubuntu and Mint. Debian is my favourite. There are only about half a dozen main Linux and BSD distros. http://en.wikipedia.org/wiki/List_of_Linux_distributions The truth is that Microsoft Windows is probably the only major non-Unix/Linux OS left and apparently they are flirting with the dark side as well. ;-) Jim PS The first OS the Bill Gaits worked on was Xenix...a multi-user, multi-tasking Unix like OS that could run on computers like 286s...for some reason he then made a castrated version and called it DOS and Windows has been trying to catch up ever since. ;-) ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 3, 2015 8:34:46 PM Subject: Re: [AccessD] I couldn't post Jim, >unless your willing to go down to the command prompt network issues can be impossible to fix. I get that, and I understand dropping to the command window for that kind of thing. But that is NOT a simple install or uninstall! That is once in a blue moon gotta go to the command window. Go out to watch YouTube videos of ANYTHING linux and observe what percentage of time the person is clacking away in the command window. It is like I am back in 1982. I'm not giving up! I expect that if you are just doing office stuff then yea, install it and go. The mint installation itself went flawlessly. Actually USING a browser or the office apps works just as you would expect (and as in Windows) in the Gui. And at lleast in Mint, anything already in the distro can just be installed through the gui. But holy crap, come time to actually install anything else... Take MariaDB for example. I want to use that specifically, rather than get started with MySQL and switch later. Unfortunately (for me) it seems that MySQL is native to Ubuntu and Mint is a fork of Ubuntu. So I immediately have to uninstall MySQL. Well... there is no (gui) uninstaller. And the uninstall itself (the actual text that you type in) is specific to the linux distro. And... of course... it is typing in the command console. So it is off to Google to try to discover how to uninstall something. Then... it is the same to install MariaDB. "What version of linux are you using?" If this version then you have to do this, but if that version you have to do that... and of course... typing into the command console. Likewise with getting a VM running. Likewise with getting Wine. If you happen to be lucky and it is already in the distro then it gets easier (to install). Maybe / mostly. Get this, I was in a chat room asking questions about how to do this stuff. The guy actually recommended that I get rid of mint and go to... Now what kind of stupid response is that. Trash my perfectly running install of a version of linux to move to some other (equally frustrating) version of linux in the vain hope that one specific application will be easier to install? And we all know why it is like this. Because Linux is so fragmented that even though it is supposed to "all be the same", it isn't. Nothing is the same, everything is slightly (or not so slightly) different. I was watching a YouTube video the other day where the speaker was showing a graph of the number of users of various versions. There were perhaps 15 or 20 different lines in this graph. And those are just the MAJOR distros. It's a cluster...friggen mess. To be honest it reminds me of school children trading baseball cards. "Ooooh have you seen..."? "No but I'm gonna run right home and grab my usb stick and get that up and play with it..." So I can see how you could get an entire office up in Linux, I got my machine up in Mint in just an hour or so. And spent many MANY subsequent hours trying (unsuccessfully so far) getting MariaDB and VM hosting up and working. Once they are up and working, I fully expect to have a gui that allows me to do my work in those programs. Furthermore I AM going to work in ucontrollers and they are all Linux so I just have no choice but to move through this cluster...friggen mess and learn enough to get a dev environment and cross compiler up. You better believe however that there is a very narrow objective, which is to get specific applications up in SOME (don't give a damn which) version of Linux so I can actually get some work done. If anyone wants to join me in the nightmare, (misery LOVES company) I joined the tech group and am trying to get some response over there for playing with Raspberry Pi or BeagleBone Black. Go get one if you haven't already and let's play. The BeagleBone Black in particular is a way cool widget for automation stuff. I did Atmel controllers a few years ago (no linux fortunately) and it was a ton-o-fun. By the way, I designed and built a debit card vending machine in 96 when I lived in Mexico. It used a Z-80 single board computer and ran a custom real time system with a C compiler to program it. It used a bill acceptor (like in a coke machine) interfaced over RS-488 serial to the controller and we then built a vend widget with a motor, a metal ram, and a bunch of LED / detectors to allow me to control the vend cycle. It kept all of the data in RAM on the SBC and talked (via RS232) to a hand held computer that the operator would hook up to the machine to read out the data about the bills in the machine, how many cards were left etc. I did all of the electronics (really quite simple) as well as wrote the vending machine software. That was the most fun I have ever been paid to have! :) John W. Colby On 2/3/2015 10:31 PM, Jim Lawrence wrote: > You are obviously having the worse experiences with it. > > I tend to be lazy and use the terminal only when all else fails and mostly for speed. I tend to find Windows too dumbed down and unless your willing to go down to the command prompt network issues can be impossible to fix. > > I must relate a story of a client that I helped a couple (three) of years ago. They had all Windows XP boxes but decided to experiment by setting a dozen by upgrading to Linux (in this case Ubuntu), to save money. It took only four hours, on a Saturday afternoon, to install a dozen new system, connect to all the printer, the network, the internet and install all the office software. A young lady there (24-25), who knew basically nothing about computers, helped me with the install. > > I thought that I might be supporting them for years, one way of another, but it was not so. She just picked the ball up and ran with it. I understand the whole office (50 desktops) and all the servers are now running Linux and everything runs flawlessly. So with no computer system training or experience (thank God for Google), this young person did all this without any help from me and she just loves it. The truth is that she was young and didn't have to unlearn any bad habits. > > I have had no problem with Linux but back in the day, I was a certified SCO Unix installer, so it was just like being back home again. This does not mean that I do not like Windows; it is just that the moment we step away from the desktop and move into the world of the internet, its a Linux universe out there. > > Don't give up on Linux...it is hardly smarter than you are and I have found it to be great fun as it has all the latest and greatest technologies, first. As Satya Nadella, CEO of Microsoft say, "We love Linux." > > Jim > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 df.waters at outlook.com Thu Feb 5 05:52:25 2015 From: df.waters at outlook.com (Dan Waters) Date: Thu, 5 Feb 2015 05:52:25 -0600 Subject: [AccessD] Fancy graphs from Access In-Reply-To: References: Message-ID: Hi Doug, I agree - making graphs in Access was a 'challenge'. But once done they looked great and never failed! They looked as good as a chart made in Excel, so appearance wasn't a decision factor. I did not try to create charts in Excel because sending data over to Excel from Access and then writing code to create a chart a using automation from Access is another tangle. So now I have a few charts made in Access and use those as a starting point for any new charts - saves a lot of time. So now with 'template' charts done, making charts in Access isn't difficult or time-consuming. My experience in trying to charge a company for my time is the same as yours - painful! Managers in companies don't see money the same way people do with their own money. It's just a matter of getting it into the budget - which can be painful for them. Once it's in the budget then you're all set! This is the basis for why companies want to charge subscriptions - if you agree to spend $X/mo, then it's already in your budget and you see it as less painful than buying it all at once. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Wednesday, February 04, 2015 23:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Fancy graphs from Access Bill: do you have any experience with DashboardBuilder? Dan: my experience with graphing in Access (only in A2003, mind) was comparable to doing my own dental work with a pair of pliers and a hammer. Both of them bent and rusty :) The options - Access, Excel, outside software, that have been suggested, bring up an interesting thought. I worked for this client as a full time employee for several years until I moved away. If I had spent three days in the office logging my time as 'research', nobody would have complained. But if I now try to research their request with an invoice for 24 hours at my standard billing rate, the proverbial s*** would hit the fan. Doug On Wed, Feb 4, 2015 at 8:26 PM, Darryl Collins < darryl at whittleconsulting.com.au> wrote: > I tend to vote with Bill on this one. Let each bit of kit stick to > its strengths. Excel is a lousy database and Access makes a poor > charting platform. > > Why not just push the necessary data into Excel and make the charts > there? You can even link Excel into Access if you want, although this > brings with it some other issues that a stand-alone solution avoids. > > Horses for course yada yada. > > Cheers > Darryl. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Thursday, 5 February 2015 3:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Fancy graphs from Access > > curious, why should people reinvent a wheel that third party sw seems > to have reasonably covered? Does the 3rd party sw cost too much or > fail to deliver? I hate tedium. If I could avoid it for non-specific > crap like charting and dashboards I would certainly look into it, > especially for commercial stuff where someone else is willing to foot > the bill. They will pay a lot for my time to develop based on my > billing rate and learning curve. > On Feb 4, 2015 5:52 PM, "Dan Waters" wrote: > > > Hi Doug, > > > > You can make a variety of good-looking charts in Access. This looks > > like a good place to start: > > http://www.functionx.com/access/Lesson32.htm > > > > However, you may have to give up on pie charts. The reason is that > > the leader lines for each section of the pie end up on top of each > > other, and they cannot be relocated in code (every pie chart I ever > > made in Excel needed to have the leader lines manually located to be > > viewable). I guess if you turn the leaders off (if possible), then > > you can just use the legend to show which pie section is for what. > > > > I've made some interesting charts in Access. It's tedious, and you > > sometimes have to do some magic with queries, but hopefully your customer > > will like them. Expect to put some hours into developing each chart, > and > > charge accordingly. > > > > Good Luck! > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug > > Steele > > Sent: Wednesday, February 04, 2015 16:30 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Fancy graphs from Access > > > > I've just had a client ask how he can print some fancy formatted pie > > charts and graphs from an Access database. I don't have a clue - > > can anyone suggest a work flow that he can use? I can always build > > a query to get the data out to Excel or ???, but from that point > > onward I > have no experience. > > > > Thanks, > > Doug > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 Thu Feb 5 06:13:26 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 12:13:26 +0000 (GMT) Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> <102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: <2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de> Well there's a thing. Weekday(Null) returns Null Weekday(var) where var is Null returns Null Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null ???????? Andy > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > Hi Andy > > How about: > > res = Weekday(var) > > or rather: > > res = Weekday(var, vbUseSystemDayOfWeek) > > Works in A2013. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 5. februar 2015 12:08 > Til: Access Developers discussion and problem solving > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > Hi folks > > I'm moving an ancient and very big db from A97 to A2010. I've just been > tripped up by a difference in behaviour when using IIF. Here's the line of > code: > > res=IIF(IsNull(var),Null,Weekday(var)) > > In A97 this works fine and gives me Null. However, in A2010 this is crashing > with Invalid Use of Null. It must evaluate both true and false element(s) of > the IIF regardless. (Queries do not appear to do this, they work as before). > > Is this a general rule in A2010. Is there anything I can do to change this > behaviour? I know I can code round it in a number of ways but finding all > instances of this in a humungous db is a horrendous prospect. I'm praying for > a magic answer. > > Hang on, read on. > > After a bit more digging I'm not sure now where this will and will not arise. > I just tried the following: > > res=iif(isnull(var),null,instr(var,"12345","1")) > > and, unlike the Weekday function, that crashes in A97 which blows out of the > water the idea that the False part of the IIF function wasn't evaluated > before. > So now I'm not sure if there is a rule by which all functions abide. > > Confused. > > Oh and pleeease don't tell me that I shouldn't have coded like that in the > first place. That wouldn't be helpful. > > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 5 06:25:58 2015 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 5 Feb 2015 12:25:58 +0000 Subject: [AccessD] Change in the evaluation of IIF, or something else? Message-ID: Hi Andy It probably tries to pull the object. Use the Value property: res = Weekday(rst!fld.Value, vbUseSystemDayOfWeek) /gustav -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey Sendt: 5. februar 2015 13:13 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? Well there's a thing. Weekday(Null) returns Null Weekday(var) where var is Null returns Null Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null ???????? Andy > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > Hi Andy > > How about: > > res = Weekday(var) > > or rather: > > res = Weekday(var, vbUseSystemDayOfWeek) > > Works in A2013. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 5. februar 2015 12:08 > Til: Access Developers discussion and problem solving > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > Hi folks > > I'm moving an ancient and very big db from A97 to A2010. I've just > been tripped up by a difference in behaviour when using IIF. Here's > the line of > code: > > res=IIF(IsNull(var),Null,Weekday(var)) > > In A97 this works fine and gives me Null. However, in A2010 this is > crashing with Invalid Use of Null. It must evaluate both true and > false element(s) of the IIF regardless. (Queries do not appear to do this, they work as before). > > Is this a general rule in A2010. Is there anything I can do to change > this behaviour? I know I can code round it in a number of ways but > finding all instances of this in a humungous db is a horrendous > prospect. I'm praying for a magic answer. > > Hang on, read on. > > After a bit more digging I'm not sure now where this will and will not arise. > I just tried the following: > > res=iif(isnull(var),null,instr(var,"12345","1")) > > and, unlike the Weekday function, that crashes in A97 which blows out > of the water the idea that the False part of the IIF function wasn't > evaluated before. > So now I'm not sure if there is a rule by which all functions abide. > > Confused. > > Oh and pleeease don't tell me that I shouldn't have coded like that in > the first place. That wouldn't be helpful. > > Andy From andy at minstersystems.co.uk Thu Feb 5 06:43:47 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 12:43:47 +0000 (GMT) Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: References: Message-ID: <1416738515.103600.1423140227227.JavaMail.open-xchange@oxbaltgw13.schlund.de> Gustav, you are, as ever, correct. It was always my belief that .Value is the default if no property specified, and that belief seems to hold good everywhere else. Why not here? Andy > On 05 February 2015 at 12:25 Gustav Brock wrote: > > > Hi Andy > > It probably tries to pull the object. > Use the Value property: > > res = Weekday(rst!fld.Value, vbUseSystemDayOfWeek) > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 5. februar 2015 13:13 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Well there's a thing. > > Weekday(Null) returns Null > > Weekday(var) where var is Null returns Null > > Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null > > ???????? > > Andy > > > > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > > > > Hi Andy > > > > How about: > > > > res = Weekday(var) > > > > or rather: > > > > res = Weekday(var, vbUseSystemDayOfWeek) > > > > Works in A2013. > > > > /gustav > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > Sendt: 5. februar 2015 12:08 > > Til: Access Developers discussion and problem solving > > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > > > Hi folks > > > > I'm moving an ancient and very big db from A97 to A2010. I've just > > been tripped up by a difference in behaviour when using IIF. Here's > > the line of > > code: > > > > res=IIF(IsNull(var),Null,Weekday(var)) > > > > In A97 this works fine and gives me Null. However, in A2010 this is > > crashing with Invalid Use of Null. It must evaluate both true and > > false element(s) of the IIF regardless. (Queries do not appear to do this, > > they work as before). > > > > Is this a general rule in A2010. Is there anything I can do to change > > this behaviour? I know I can code round it in a number of ways but > > finding all instances of this in a humungous db is a horrendous > > prospect. I'm praying for a magic answer. > > > > Hang on, read on. > > > > After a bit more digging I'm not sure now where this will and will not > > arise. > > I just tried the following: > > > > res=iif(isnull(var),null,instr(var,"12345","1")) > > > > and, unlike the Weekday function, that crashes in A97 which blows out > > of the water the idea that the False part of the IIF function wasn't > > evaluated before. > > So now I'm not sure if there is a rule by which all functions abide. > > > > Confused. > > > > Oh and pleeease don't tell me that I shouldn't have coded like that in > > the first place. That wouldn't be helpful. > > > > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at gmail.com Thu Feb 5 06:58:38 2015 From: jwcolby at gmail.com (John W. Colby) Date: Thu, 05 Feb 2015 07:58:38 -0500 Subject: [AccessD] I couldn't post In-Reply-To: References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> Message-ID: <54D368FE.8030401@gmail.com> That would be my fault. Only back a few days and already causing dissension in the ranks.. :( John W. Colby On 2/5/2015 6:49 AM, Jim Dettman wrote: > > Why oh why is all this being posted to the Access D list? > > If were going to have separate lists, post to the separate lists... If your > not because you think it will be of interest to everyone, then let's get rid > of the separate lists. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Thursday, February 05, 2015 03:25 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] I couldn't post > > Hi John: > > If you really want to dig around in the distros the following list gives the > top 287 contenders...not a completely extensive list but a good start. I > don't think I have played with more than a dozen though: > > http://distrowatch.com/dwres.php?resource=popularity > > I tend to make a list of commands acquired from the installation site so if > the command is ever needed again it easy to get or if it is used repeatedly > I just build a bash script and drop a short-cut on the desktop. After a > while you just memorize them. > > sudo apt-get remove --purge mysql-server mysql-client mysql-common > sudo apt-get autoremove > sudo apt-get autoclean > > The above is pretty well standard for any debian distros...Ubuntu and Mint. > Debian is my favourite. There are only about half a dozen main Linux and BSD > distros. > > http://en.wikipedia.org/wiki/List_of_Linux_distributions > > The truth is that Microsoft Windows is probably the only major > non-Unix/Linux OS left and apparently they are flirting with the dark side > as well. ;-) > > Jim > > PS The first OS the Bill Gaits worked on was Xenix...a multi-user, > multi-tasking Unix like OS that could run on computers like 286s...for some > reason he then made a castrated version and called it DOS and Windows has > been trying to catch up ever since. ;-) > > > ----- Original Message ----- > From: "John W. Colby" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 3, 2015 8:34:46 PM > Subject: Re: [AccessD] I couldn't post > > Jim, > > >unless your willing to go down to the command prompt network issues > can be impossible to fix. > > I get that, and I understand dropping to the command window for that > kind of thing. But that is NOT a simple install or uninstall! That is > once in a blue moon gotta go to the command window. Go out to watch > YouTube videos of ANYTHING linux and observe what percentage of time the > person is clacking away in the command window. It is like I am back in > 1982. > > I'm not giving up! > > I expect that if you are just doing office stuff then yea, install it > and go. The mint installation itself went flawlessly. Actually USING a > browser or the office apps works just as you would expect (and as in > Windows) in the Gui. And at lleast in Mint, anything already in the > distro can just be installed through the gui. But holy crap, come time > to actually install anything else... > > Take MariaDB for example. I want to use that specifically, rather than > get started with MySQL and switch later. Unfortunately (for me) it > seems that MySQL is native to Ubuntu and Mint is a fork of Ubuntu. So I > immediately have to uninstall MySQL. Well... there is no (gui) > uninstaller. And the uninstall itself (the actual text that you type > in) is specific to the linux distro. And... of course... it is typing > in the command console. So it is off to Google to try to discover how > to uninstall something. Then... it is the same to install MariaDB. > "What version of linux are you using?" If this version then you have to > do this, but if that version you have to do that... and of course... > typing into the command console. > > Likewise with getting a VM running. Likewise with getting Wine. If you > happen to be lucky and it is already in the distro then it gets easier > (to install). Maybe / mostly. > > Get this, I was in a chat room asking questions about how to do this > stuff. The guy actually recommended that I get rid of mint and go > to... Now what kind of stupid response is that. Trash my perfectly > running install of a version of linux to move to some other (equally > frustrating) version of linux in the vain hope that one specific > application will be easier to install? > > And we all know why it is like this. Because Linux is so fragmented > that even though it is supposed to "all be the same", it isn't. Nothing > is the same, everything is slightly (or not so slightly) different. I > was watching a YouTube video the other day where the speaker was showing > a graph of the number of users of various versions. There were perhaps > 15 or 20 different lines in this graph. And those are just the MAJOR > distros. It's a cluster...friggen mess. To be honest it reminds me of > school children trading baseball cards. "Ooooh have you seen..."? "No > but I'm gonna run right home and grab my usb stick and get that up and > play with it..." > > So I can see how you could get an entire office up in Linux, I got my > machine up in Mint in just an hour or so. And spent many MANY > subsequent hours trying (unsuccessfully so far) getting MariaDB and VM > hosting up and working. Once they are up and working, I fully expect to > have a gui that allows me to do my work in those programs. > > Furthermore I AM going to work in ucontrollers and they are all Linux so > I just have no choice but to move through this cluster...friggen mess > and learn enough to get a dev environment and cross compiler up. You > better believe however that there is a very narrow objective, which is > to get specific applications up in SOME (don't give a damn which) > version of Linux so I can actually get some work done. > > If anyone wants to join me in the nightmare, (misery LOVES company) I > joined the tech group and am trying to get some response over there for > playing with Raspberry Pi or BeagleBone Black. Go get one if you > haven't already and let's play. The BeagleBone Black in particular is a > way cool widget for automation stuff. I did Atmel controllers a few > years ago (no linux fortunately) and it was a ton-o-fun. > > By the way, I designed and built a debit card vending machine in 96 when > I lived in Mexico. It used a Z-80 single board computer and ran a > custom real time system with a C compiler to program it. It used a bill > acceptor (like in a coke machine) interfaced over RS-488 serial to the > controller and we then built a vend widget with a motor, a metal ram, > and a bunch of LED / detectors to allow me to control the vend cycle. > It kept all of the data in RAM on the SBC and talked (via RS232) to a > hand held computer that the operator would hook up to the machine to > read out the data about the bills in the machine, how many cards were > left etc. I did all of the electronics (really quite simple) as well as > wrote the vending machine software. > > That was the most fun I have ever been paid to have! > > :) > > John W. Colby > > On 2/3/2015 10:31 PM, Jim Lawrence wrote: >> You are obviously having the worse experiences with it. >> >> I tend to be lazy and use the terminal only when all else fails and mostly > for speed. I tend to find Windows too dumbed down and unless your willing to > go down to the command prompt network issues can be impossible to fix. >> I must relate a story of a client that I helped a couple (three) of years > ago. They had all Windows XP boxes but decided to experiment by setting a > dozen by upgrading to Linux (in this case Ubuntu), to save money. It took > only four hours, on a Saturday afternoon, to install a dozen new system, > connect to all the printer, the network, the internet and install all the > office software. A young lady there (24-25), who knew basically nothing > about computers, helped me with the install. >> I thought that I might be supporting them for years, one way of another, > but it was not so. She just picked the ball up and ran with it. I understand > the whole office (50 desktops) and all the servers are now running Linux and > everything runs flawlessly. So with no computer system training or > experience (thank God for Google), this young person did all this without > any help from me and she just loves it. The truth is that she was young and > didn't have to unlearn any bad habits. >> I have had no problem with Linux but back in the day, I was a certified > SCO Unix installer, so it was just like being back home again. This does not > mean that I do not like Windows; it is just that the moment we step away > from the desktop and move into the world of the internet, its a Linux > universe out there. >> Don't give up on Linux...it is hardly smarter than you are and I have > found it to be great fun as it has all the latest and greatest technologies, > first. As Satya Nadella, CEO of Microsoft say, "We love Linux." >> Jim >> From Lambert.Heenan at aig.com Thu Feb 5 08:14:22 2015 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Thu, 5 Feb 2015 14:14:22 +0000 Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> <102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: Presumably res is of Type date, which is why you are getting invalid use of null. You cannot assign null to a date variable. IF res was a variant then the code would execute. But the larger question is why are you doing this? Think what this code is doing... res = IIf(IsNull(var), Null, Weekday(var)) It's saying 'if the value of var is null then set res equal to null'. Wow - Rocket Science. The exact equivalent of that code is... res = var ... so again, why do this? Go back to your Access 97 code. There's surely something different about it. Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, February 05, 2015 6:08 AM To: Access Developers discussion and problem solving Subject: [AccessD] Change in the evaluation of IIF, or something else? Hi folks I'm moving an ancient and very big db from A97 to A2010. I've just been tripped up by a difference in behaviour when using IIF. Here's the line of code: res=IIF(IsNull(var),Null,Weekday(var)) In A97 this works fine and gives me Null. However, in A2010 this is crashing with Invalid Use of Null. It must evaluate both true and false element(s) of the IIF regardless. (Queries do not appear to do this, they work as before). Is this a general rule in A2010. Is there anything I can do to change this behaviour? I know I can code round it in a number of ways but finding all instances of this in a humungous db is a horrendous prospect. I'm praying for a magic answer. Hang on, read on. After a bit more digging I'm not sure now where this will and will not arise. I just tried the following: res=iif(isnull(var),null,instr(var,"12345","1")) and, unlike the Weekday function, that crashes in A97 which blows out of the water the idea that the False part of the IIF function wasn't evaluated before. So now I'm not sure if there is a rule by which all functions abide. Confused. Oh and pleeease don't tell me that I shouldn't have coded like that in the first place. That wouldn't be helpful. Andy -- 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 Feb 5 08:17:14 2015 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Thu, 5 Feb 2015 14:17:14 +0000 Subject: [AccessD] Change in the evaluation of IIF, or something else? References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> <102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: Correction, the exact equivalent is Res = Weekday(var) Lambert :-) -----Original Message----- From: Heenan, Lambert Sent: Thursday, February 05, 2015 9:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Change in the evaluation of IIF, or something else? Presumably res is of Type date, which is why you are getting invalid use of null. You cannot assign null to a date variable. IF res was a variant then the code would execute. But the larger question is why are you doing this? Think what this code is doing... res = IIf(IsNull(var), Null, Weekday(var)) It's saying 'if the value of var is null then set res equal to null'. Wow - Rocket Science. The exact equivalent of that code is... res = var ... so again, why do this? Go back to your Access 97 code. There's surely something different about it. Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, February 05, 2015 6:08 AM To: Access Developers discussion and problem solving Subject: [AccessD] Change in the evaluation of IIF, or something else? Hi folks I'm moving an ancient and very big db from A97 to A2010. I've just been tripped up by a difference in behaviour when using IIF. Here's the line of code: res=IIF(IsNull(var),Null,Weekday(var)) In A97 this works fine and gives me Null. However, in A2010 this is crashing with Invalid Use of Null. It must evaluate both true and false element(s) of the IIF regardless. (Queries do not appear to do this, they work as before). Is this a general rule in A2010. Is there anything I can do to change this behaviour? I know I can code round it in a number of ways but finding all instances of this in a humungous db is a horrendous prospect. I'm praying for a magic answer. Hang on, read on. After a bit more digging I'm not sure now where this will and will not arise. I just tried the following: res=iif(isnull(var),null,instr(var,"12345","1")) and, unlike the Weekday function, that crashes in A97 which blows out of the water the idea that the False part of the IIF function wasn't evaluated before. So now I'm not sure if there is a rule by which all functions abide. Confused. Oh and pleeease don't tell me that I shouldn't have coded like that in the first place. That wouldn't be helpful. Andy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 5 08:28:41 2015 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 5 Feb 2015 14:28:41 +0000 Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <1416738515.103600.1423140227227.JavaMail.open-xchange@oxbaltgw13.schlund.de> References: <1416738515.103600.1423140227227.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: Hi Andy Good question. But it may have to do with that when using rst!fld your passing the full Field object while, of course, using the Value property only the value is passed. And Weekday reads the parameter ByRef as you can see from IntelliSense; had it been ByVal it would probably have made no difference. I've noticed that just about none of the built-in functions take parameters ByVal. /gustav -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey Sendt: 5. februar 2015 13:44 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? Gustav, you are, as ever, correct. It was always my belief that .Value is the default if no property specified, and that belief seems to hold good everywhere else. Why not here? Andy From andy at minstersystems.co.uk Thu Feb 5 08:29:45 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 14:29:45 +0000 (GMT) Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> <102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: <2050698111.112040.1423146586152.JavaMail.open-xchange@oxbaltgw13.schlund.de> Hi Lambert I had simplified the example call in order to explain the problem but, as I've posted later, it comes down to the fact that res = Weekday(rst!fld) errors in A2010 if rst!fld is Null whereas it doesn't in A97. Gustav suggests to change the call to res = Weekday(rst!fld.value) This works but leaves me wondering how many other places in my db may crash and burn in A2010 where I rely on .value being implicit rather than stating it. Cheers Andy > On 05 February 2015 at 14:17 "Heenan, Lambert" wrote: > > > Correction, the exact equivalent is > > Res = Weekday(var) > > Lambert :-) > > > -----Original Message----- > From: Heenan, Lambert > Sent: Thursday, February 05, 2015 9:14 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Change in the evaluation of IIF, or something else? > > Presumably res is of Type date, which is why you are getting invalid use of > null. You cannot assign null to a date variable. IF res was a variant then the > code would execute. > > But the larger question is why are you doing this? Think what this code is > doing... > > res = IIf(IsNull(var), Null, Weekday(var)) > > It's saying 'if the value of var is null then set res equal to null'. Wow - > Rocket Science. The exact equivalent of that code is... > > res = var > > ... so again, why do this? Go back to your Access 97 code. There's surely > something different about it. > > Lambert :-) > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, February 05, 2015 6:08 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Change in the evaluation of IIF, or something else? > > Hi folks > > I'm moving an ancient and very big db from A97 to A2010. I've just been > tripped up by a difference in behaviour when using IIF. Here's the line of > code: > > res=IIF(IsNull(var),Null,Weekday(var)) > > In A97 this works fine and gives me Null. However, in A2010 this is crashing > with Invalid Use of Null. It must evaluate both true and false element(s) of > the IIF regardless. (Queries do not appear to do this, they work as before). > > Is this a general rule in A2010. Is there anything I can do to change this > behaviour? I know I can code round it in a number of ways but finding all > instances of this in a humungous db is a horrendous prospect. I'm praying for > a magic answer. > > Hang on, read on. > > After a bit more digging I'm not sure now where this will and will not arise. > I just tried the following: > > res=iif(isnull(var),null,instr(var,"12345","1")) > > and, unlike the Weekday function, that crashes in A97 which blows out of the > water the idea that the False part of the IIF function wasn't evaluated > before. > So now I'm not sure if there is a rule by which all functions abide. > > Confused. > > Oh and pleeease don't tell me that I shouldn't have coded like that in the > first place. That wouldn't be helpful. > > Andy > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Thu Feb 5 08:38:43 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 14:38:43 +0000 (GMT) Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: References: <1416738515.103600.1423140227227.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: <158642560.112808.1423147123206.JavaMail.open-xchange@oxbaltgw13.schlund.de> And yet if fld.value is not null, i.e. has a value then Weekday(rst!fld) works happily. It only errors if the value is Null. Bizarre. Could cause me a whole lot of grief. There could be a thousand places in the db where a built-in function is passed something like rst!fld, and impossible to search for them because fld could be anything as could the function name. Ouch. Andy > On 05 February 2015 at 14:28 Gustav Brock wrote: > > > Hi Andy > > Good question. But it may have to do with that when using rst!fld your passing > the full Field object while, of course, using the Value property only the > value is passed. > > And Weekday reads the parameter ByRef as you can see from IntelliSense; had it > been ByVal it would probably have made no difference. I've noticed that just > about none of the built-in functions take parameters ByVal. > > /gustav > > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 5. februar 2015 13:44 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Gustav, you are, as ever, correct. > > It was always my belief that .Value is the default if no property specified, > and that belief seems to hold good everywhere else. Why not here? > > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Feb 5 08:46:10 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 5 Feb 2015 06:46:10 -0800 Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de> References: <54D1A166.1010903@gmail.com><632418048.116603078.1423124678084.JavaMail.root@cds018><102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> <2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: <88D967009D49408182A9B9CE840B0FF1@HAL9007> Use Weekday(Nz(rst!fld))? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, February 05, 2015 4:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? Well there's a thing. Weekday(Null) returns Null Weekday(var) where var is Null returns Null Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null ???????? Andy > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > Hi Andy > > How about: > > res = Weekday(var) > > or rather: > > res = Weekday(var, vbUseSystemDayOfWeek) > > Works in A2013. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 5. februar 2015 12:08 > Til: Access Developers discussion and problem solving > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > Hi folks > > I'm moving an ancient and very big db from A97 to A2010. I've just > been tripped up by a difference in behaviour when using IIF. Here's > the line of > code: > > res=IIF(IsNull(var),Null,Weekday(var)) > > In A97 this works fine and gives me Null. However, in A2010 this is > crashing with Invalid Use of Null. It must evaluate both true and > false element(s) of the IIF regardless. (Queries do not appear to do this, they work as before). > > Is this a general rule in A2010. Is there anything I can do to change > this behaviour? I know I can code round it in a number of ways but > finding all instances of this in a humungous db is a horrendous > prospect. I'm praying for a magic answer. > > Hang on, read on. > > After a bit more digging I'm not sure now where this will and will not arise. > I just tried the following: > > res=iif(isnull(var),null,instr(var,"12345","1")) > > and, unlike the Weekday function, that crashes in A97 which blows out > of the water the idea that the False part of the IIF function wasn't > evaluated before. > So now I'm not sure if there is a rule by which all functions abide. > > Confused. > > Oh and pleeease don't tell me that I shouldn't have coded like that in > the first place. That wouldn't be helpful. > > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Thu Feb 5 08:56:16 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 14:56:16 +0000 (GMT) Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <88D967009D49408182A9B9CE840B0FF1@HAL9007> References: <54D1A166.1010903@gmail.com><632418048.116603078.1423124678084.JavaMail.root@cds018><102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> <2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de> <88D967009D49408182A9B9CE840B0FF1@HAL9007> Message-ID: <1354545322.114294.1423148176465.JavaMail.open-xchange@oxbaltgw13.schlund.de> Hi Rocky Thanks. The problem though is not so much this line, which I can code around of course. I'm moving a ginormous db from A97 to A2010 and I've just discovered this difference between the way A97 handles this call (with tolerance and understanding) and the way A2010 does (with a dull thud). I have no idea how many similar instances like this there may be and no way of searching for them (see my last post). Any inbuilt function which I pass a field value (and there will be hundreds if not thousands of instances) could crash in A2010 if the field is Null, when it wouldn't have in A97. Cheers Andy > On 05 February 2015 at 14:46 Rocky Smolin wrote: > > > Use Weekday(Nz(rst!fld))? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, February 05, 2015 4:13 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Well there's a thing. > > Weekday(Null) returns Null > > Weekday(var) where var is Null returns Null > > Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null > > ???????? > > Andy > > > > > > > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > > > > Hi Andy > > > > How about: > > > > res = Weekday(var) > > > > or rather: > > > > res = Weekday(var, vbUseSystemDayOfWeek) > > > > Works in A2013. > > > > /gustav > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > Sendt: 5. februar 2015 12:08 > > Til: Access Developers discussion and problem solving > > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > > > Hi folks > > > > I'm moving an ancient and very big db from A97 to A2010. I've just > > been tripped up by a difference in behaviour when using IIF. Here's > > the line of > > code: > > > > res=IIF(IsNull(var),Null,Weekday(var)) > > > > In A97 this works fine and gives me Null. However, in A2010 this is > > crashing with Invalid Use of Null. It must evaluate both true and > > false element(s) of the IIF regardless. (Queries do not appear to do this, > they work as before). > > > > Is this a general rule in A2010. Is there anything I can do to change > > this behaviour? I know I can code round it in a number of ways but > > finding all instances of this in a humungous db is a horrendous > > prospect. I'm praying for a magic answer. > > > > Hang on, read on. > > > > After a bit more digging I'm not sure now where this will and will not > arise. > > I just tried the following: > > > > res=iif(isnull(var),null,instr(var,"12345","1")) > > > > and, unlike the Weekday function, that crashes in A97 which blows out > > of the water the idea that the False part of the IIF function wasn't > > evaluated before. > > So now I'm not sure if there is a rule by which all functions abide. > > > > Confused. > > > > Oh and pleeease don't tell me that I shouldn't have coded like that in > > the first place. That wouldn't be helpful. > > > > Andy > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 jimdettman at verizon.net Thu Feb 5 09:40:29 2015 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 05 Feb 2015 10:40:29 -0500 Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <1354545322.114294.1423148176465.JavaMail.open-xchange@oxbaltgw13.schlund.de> References: <54D1A166.1010903@gmail.com><632418048.116603078.1423124678084.JavaMail.root@cds018><102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> <2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de> <88D967009D49408182A9B9CE840B0FF1@HAL9007> <1354545322.114294.1423148176465.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: <6BE5EE4C176E41AC91C45BD39BBEBE6E@XPS> <> Your going to bump into quite a bit of this. Starting with Access 2007, Microsoft tightened up on a lot of things in syntax checking and type conversions (thank VBA7). Just about every app needs a few tweaks as a result. Suffice to say you just can't get away with things you never really should have been able to in the first place Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, February 05, 2015 09:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? Hi Rocky Thanks. The problem though is not so much this line, which I can code around of course. I'm moving a ginormous db from A97 to A2010 and I've just discovered this difference between the way A97 handles this call (with tolerance and understanding) and the way A2010 does (with a dull thud). I have no idea how many similar instances like this there may be and no way of searching for them (see my last post). Any inbuilt function which I pass a field value (and there will be hundreds if not thousands of instances) could crash in A2010 if the field is Null, when it wouldn't have in A97. Cheers Andy > On 05 February 2015 at 14:46 Rocky Smolin wrote: > > > Use Weekday(Nz(rst!fld))? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, February 05, 2015 4:13 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Well there's a thing. > > Weekday(Null) returns Null > > Weekday(var) where var is Null returns Null > > Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null > > ???????? > > Andy > > > > > > > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > > > > Hi Andy > > > > How about: > > > > res = Weekday(var) > > > > or rather: > > > > res = Weekday(var, vbUseSystemDayOfWeek) > > > > Works in A2013. > > > > /gustav > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > Sendt: 5. februar 2015 12:08 > > Til: Access Developers discussion and problem solving > > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > > > Hi folks > > > > I'm moving an ancient and very big db from A97 to A2010. I've just > > been tripped up by a difference in behaviour when using IIF. Here's > > the line of > > code: > > > > res=IIF(IsNull(var),Null,Weekday(var)) > > > > In A97 this works fine and gives me Null. However, in A2010 this is > > crashing with Invalid Use of Null. It must evaluate both true and > > false element(s) of the IIF regardless. (Queries do not appear to do this, > they work as before). > > > > Is this a general rule in A2010. Is there anything I can do to change > > this behaviour? I know I can code round it in a number of ways but > > finding all instances of this in a humungous db is a horrendous > > prospect. I'm praying for a magic answer. > > > > Hang on, read on. > > > > After a bit more digging I'm not sure now where this will and will not > arise. > > I just tried the following: > > > > res=iif(isnull(var),null,instr(var,"12345","1")) > > > > and, unlike the Weekday function, that crashes in A97 which blows out > > of the water the idea that the False part of the IIF function wasn't > > evaluated before. > > So now I'm not sure if there is a rule by which all functions abide. > > > > Confused. > > > > Oh and pleeease don't tell me that I shouldn't have coded like that in > > the first place. That wouldn't be helpful. > > > > Andy > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 Thu Feb 5 09:45:40 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 15:45:40 +0000 (GMT) Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <6BE5EE4C176E41AC91C45BD39BBEBE6E@XPS> References: <54D1A166.1010903@gmail.com><632418048.116603078.1423124678084.JavaMail.root@cds018><102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de> <2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de> <88D967009D49408182A9B9CE840B0FF1@HAL9007> <1354545322.114294.1423148176465.JavaMail.open-xchange@oxbaltgw13.schlund.de> <6BE5EE4C176E41AC91C45BD39BBEBE6E@XPS> Message-ID: <1025462798.118124.1423151140838.JavaMail.open-xchange@oxbaltgw13.schlund.de> Yea, I kinda feared that. And yet here MS positively encourage what I've been doing " The default collection of a Recordset object is the Fields collection, and the default property of a Field object is the Value property. Use these defaults to simplify your code." This is here, the description of the DAO recordset object. https://msdn.microsoft.com/en-us/library/office/ff197799(v=office.15).aspx So I don't feel that big a numpty. Andy > On 05 February 2015 at 15:40 Jim Dettman wrote: > > > < field is Null, when it wouldn't have in A97. >> > > Your going to bump into quite a bit of this. > > Starting with Access 2007, Microsoft tightened up on a lot of things in > syntax checking and type conversions (thank VBA7). Just about every app > needs a few tweaks as a result. > > Suffice to say you just can't get away with things you never really should > have been able to in the first place > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, February 05, 2015 09:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Hi Rocky > > Thanks. The problem though is not so much this line, which I can code around > of > course. I'm moving a ginormous db from A97 to A2010 and I've just discovered > this difference between the way A97 handles this call (with tolerance and > understanding) and the way A2010 does (with a dull thud). I have no idea how > many similar instances like this there may be and no way of searching for > them > (see my last post). Any inbuilt function which I pass a field value (and > there > will be hundreds if not thousands of instances) could crash in A2010 if the > field is Null, when it wouldn't have in A97. > > Cheers > > Andy > > > > On 05 February 2015 at 14:46 Rocky Smolin wrote: > > > > > > Use Weekday(Nz(rst!fld))? > > > > R > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > > Sent: Thursday, February 05, 2015 4:13 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > > > Well there's a thing. > > > > Weekday(Null) returns Null > > > > Weekday(var) where var is Null returns Null > > > > Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null > > > > ???????? > > > > Andy > > > > > > > > > > > > > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > > > > > > > Hi Andy > > > > > > How about: > > > > > > res = Weekday(var) > > > > > > or rather: > > > > > > res = Weekday(var, vbUseSystemDayOfWeek) > > > > > > Works in A2013. > > > > > > /gustav > > > > > > -----Oprindelig meddelelse----- > > > Fra: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > > Sendt: 5. februar 2015 12:08 > > > Til: Access Developers discussion and problem solving > > > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > > > > > Hi folks > > > > > > I'm moving an ancient and very big db from A97 to A2010. I've just > > > been tripped up by a difference in behaviour when using IIF. Here's > > > the line of > > > code: > > > > > > res=IIF(IsNull(var),Null,Weekday(var)) > > > > > > In A97 this works fine and gives me Null. However, in A2010 this is > > > crashing with Invalid Use of Null. It must evaluate both true and > > > false element(s) of the IIF regardless. (Queries do not appear to do > this, > > they work as before). > > > > > > Is this a general rule in A2010. Is there anything I can do to change > > > this behaviour? I know I can code round it in a number of ways but > > > finding all instances of this in a humungous db is a horrendous > > > prospect. I'm praying for a magic answer. > > > > > > Hang on, read on. > > > > > > After a bit more digging I'm not sure now where this will and will not > > arise. > > > I just tried the following: > > > > > > res=iif(isnull(var),null,instr(var,"12345","1")) > > > > > > and, unlike the Weekday function, that crashes in A97 which blows out > > > of the water the idea that the False part of the IIF function wasn't > > > evaluated before. > > > So now I'm not sure if there is a rule by which all functions abide. > > > > > > Confused. > > > > > > Oh and pleeease don't tell me that I shouldn't have coded like that in > > > the first place. That wouldn't be helpful. > > > > > > Andy > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Thu Feb 5 09:47:38 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 5 Feb 2015 07:47:38 -0800 Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <6BE5EE4C176E41AC91C45BD39BBEBE6E@XPS> References: <54D1A166.1010903@gmail.com><632418048.116603078.1423124678084.JavaMail.root@cds018><102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de><2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de><88D967009D49408182A9B9CE840B0FF1@HAL9007><1354545322.114294.1423148176465.JavaMail.open-xchange@oxbaltgw13.schlund.de> <6BE5EE4C176E41AC91C45BD39BBEBE6E@XPS> Message-ID: <9A202AFB8CE248C0B4DFEB3D972D7B76@HAL9007> Just out of curiosity -how many objects in this bad boy - forms, reports, queries, etc. I assume most if not all will have some VBA. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 05, 2015 7:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? <> Your going to bump into quite a bit of this. Starting with Access 2007, Microsoft tightened up on a lot of things in syntax checking and type conversions (thank VBA7). Just about every app needs a few tweaks as a result. Suffice to say you just can't get away with things you never really should have been able to in the first place Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, February 05, 2015 09:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? Hi Rocky Thanks. The problem though is not so much this line, which I can code around of course. I'm moving a ginormous db from A97 to A2010 and I've just discovered this difference between the way A97 handles this call (with tolerance and understanding) and the way A2010 does (with a dull thud). I have no idea how many similar instances like this there may be and no way of searching for them (see my last post). Any inbuilt function which I pass a field value (and there will be hundreds if not thousands of instances) could crash in A2010 if the field is Null, when it wouldn't have in A97. Cheers Andy > On 05 February 2015 at 14:46 Rocky Smolin wrote: > > > Use Weekday(Nz(rst!fld))? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, February 05, 2015 4:13 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Well there's a thing. > > Weekday(Null) returns Null > > Weekday(var) where var is Null returns Null > > Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null > > ???????? > > Andy > > > > > > > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > > > > Hi Andy > > > > How about: > > > > res = Weekday(var) > > > > or rather: > > > > res = Weekday(var, vbUseSystemDayOfWeek) > > > > Works in A2013. > > > > /gustav > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > Sendt: 5. februar 2015 12:08 > > Til: Access Developers discussion and problem solving > > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > > > Hi folks > > > > I'm moving an ancient and very big db from A97 to A2010. I've just > > been tripped up by a difference in behaviour when using IIF. Here's > > the line of > > code: > > > > res=IIF(IsNull(var),Null,Weekday(var)) > > > > In A97 this works fine and gives me Null. However, in A2010 this is > > crashing with Invalid Use of Null. It must evaluate both true and > > false element(s) of the IIF regardless. (Queries do not appear to do this, > they work as before). > > > > Is this a general rule in A2010. Is there anything I can do to > > change this behaviour? I know I can code round it in a number of > > ways but finding all instances of this in a humungous db is a > > horrendous prospect. I'm praying for a magic answer. > > > > Hang on, read on. > > > > After a bit more digging I'm not sure now where this will and will > > not > arise. > > I just tried the following: > > > > res=iif(isnull(var),null,instr(var,"12345","1")) > > > > and, unlike the Weekday function, that crashes in A97 which blows > > out of the water the idea that the False part of the IIF function > > wasn't evaluated before. > > So now I'm not sure if there is a rule by which all functions abide. > > > > Confused. > > > > Oh and pleeease don't tell me that I shouldn't have coded like that > > in the first place. That wouldn't be helpful. > > > > Andy > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 Thu Feb 5 09:59:39 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 15:59:39 +0000 (GMT) Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <9A202AFB8CE248C0B4DFEB3D972D7B76@HAL9007> References: <54D1A166.1010903@gmail.com><632418048.116603078.1423124678084.JavaMail.root@cds018><102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de><2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de><88D967009D49408182A9B9CE840B0FF1@HAL9007><1354545322.114294.1423148176465.JavaMail.open-xchange@oxbaltgw13.schlund.de> <6BE5EE4C176E41AC91C45BD39BBEBE6E@XPS> <9A202AFB8CE248C0B4DFEB3D972D7B76@HAL9007> Message-ID: <1681872075.119077.1423151979290.JavaMail.open-xchange@oxbaltgw13.schlund.de> Hi Rocky A run of a little routine tells me: 692 Forms of which 492 have modules 354 Reports of which 120 have modules 79 actual modules 200,000 lines of code in total The potential for more banana skins is.......significant, shall we say? Andy > On 05 February 2015 at 15:47 Rocky Smolin wrote: > > > Just out of curiosity -how many objects in this bad boy - forms, reports, > queries, etc. I assume most if not all will have some VBA. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 05, 2015 7:40 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > < field is Null, when it wouldn't have in A97. >> > > Your going to bump into quite a bit of this. > > Starting with Access 2007, Microsoft tightened up on a lot of things in > syntax checking and type conversions (thank VBA7). Just about every app > needs a few tweaks as a result. > > Suffice to say you just can't get away with things you never really should > have been able to in the first place > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, February 05, 2015 09:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Hi Rocky > > Thanks. The problem though is not so much this line, which I can code around > of course. I'm moving a ginormous db from A97 to A2010 and I've just > discovered this difference between the way A97 handles this call (with > tolerance and > understanding) and the way A2010 does (with a dull thud). I have no idea how > many similar instances like this there may be and no way of searching for > them (see my last post). Any inbuilt function which I pass a field value > (and there will be hundreds if not thousands of instances) could crash in > A2010 if the field is Null, when it wouldn't have in A97. > > Cheers > > Andy > > > > On 05 February 2015 at 14:46 Rocky Smolin wrote: > > > > > > Use Weekday(Nz(rst!fld))? > > > > R > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > > Sent: Thursday, February 05, 2015 4:13 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > > > Well there's a thing. > > > > Weekday(Null) returns Null > > > > Weekday(var) where var is Null returns Null > > > > Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null > > > > ???????? > > > > Andy > > > > > > > > > > > > > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > > > > > > > Hi Andy > > > > > > How about: > > > > > > res = Weekday(var) > > > > > > or rather: > > > > > > res = Weekday(var, vbUseSystemDayOfWeek) > > > > > > Works in A2013. > > > > > > /gustav > > > > > > -----Oprindelig meddelelse----- > > > Fra: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > > Sendt: 5. februar 2015 12:08 > > > Til: Access Developers discussion and problem solving > > > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > > > > > Hi folks > > > > > > I'm moving an ancient and very big db from A97 to A2010. I've just > > > been tripped up by a difference in behaviour when using IIF. Here's > > > the line of > > > code: > > > > > > res=IIF(IsNull(var),Null,Weekday(var)) > > > > > > In A97 this works fine and gives me Null. However, in A2010 this is > > > crashing with Invalid Use of Null. It must evaluate both true and > > > false element(s) of the IIF regardless. (Queries do not appear to do > this, > > they work as before). > > > > > > Is this a general rule in A2010. Is there anything I can do to > > > change this behaviour? I know I can code round it in a number of > > > ways but finding all instances of this in a humungous db is a > > > horrendous prospect. I'm praying for a magic answer. > > > > > > Hang on, read on. > > > > > > After a bit more digging I'm not sure now where this will and will > > > not > > arise. > > > I just tried the following: > > > > > > res=iif(isnull(var),null,instr(var,"12345","1")) > > > > > > and, unlike the Weekday function, that crashes in A97 which blows > > > out of the water the idea that the False part of the IIF function > > > wasn't evaluated before. > > > So now I'm not sure if there is a rule by which all functions abide. > > > > > > Confused. > > > > > > Oh and pleeease don't tell me that I shouldn't have coded like that > > > in the first place. That wouldn't be helpful. > > > > > > Andy > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Thu Feb 5 10:01:57 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 5 Feb 2015 08:01:57 -0800 Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <1681872075.119077.1423151979290.JavaMail.open-xchange@oxbaltgw13.schlund.de> References: <54D1A166.1010903@gmail.com><632418048.116603078.1423124678084.JavaMail.root@cds018><102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de><2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de><88D967009D49408182A9B9CE840B0FF1@HAL9007><1354545322.114294.1423148176465.JavaMail.open-xchange@oxbaltgw13.schlund.de><6BE5EE4C176E41AC91C45BD39BBEBE6E@XPS><9A202AFB8CE248C0B4DFEB3D972D7B76@HAL9007> <1681872075.119077.1423151979290.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: Yeah, that's big. What's the size of the front end then? And would it be better off being split into a few different front ends? (I know, in hindsight...) r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, February 05, 2015 8:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? Hi Rocky A run of a little routine tells me: 692 Forms of which 492 have modules 354 Reports of which 120 have modules 79 actual modules 200,000 lines of code in total The potential for more banana skins is.......significant, shall we say? Andy > On 05 February 2015 at 15:47 Rocky Smolin wrote: > > > Just out of curiosity -how many objects in this bad boy - forms, > reports, queries, etc. I assume most if not all will have some VBA. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 05, 2015 7:40 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > < field is Null, when it wouldn't have in A97. >> > > Your going to bump into quite a bit of this. > > Starting with Access 2007, Microsoft tightened up on a lot of things > in syntax checking and type conversions (thank VBA7). Just about every > app needs a few tweaks as a result. > > Suffice to say you just can't get away with things you never really > should have been able to in the first place > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, February 05, 2015 09:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Hi Rocky > > Thanks. The problem though is not so much this line, which I can code > around of course. I'm moving a ginormous db from A97 to A2010 and I've > just discovered this difference between the way A97 handles this call > (with tolerance and > understanding) and the way A2010 does (with a dull thud). I have no > idea how many similar instances like this there may be and no way of > searching for them (see my last post). Any inbuilt function which I > pass a field value (and there will be hundreds if not thousands of > instances) could crash in A2010 if the field is Null, when it wouldn't have in A97. > > Cheers > > Andy > > > > On 05 February 2015 at 14:46 Rocky Smolin wrote: > > > > > > Use Weekday(Nz(rst!fld))? > > > > R > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy > > Lacey > > Sent: Thursday, February 05, 2015 4:13 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > > > Well there's a thing. > > > > Weekday(Null) returns Null > > > > Weekday(var) where var is Null returns Null > > > > Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null > > > > ???????? > > > > Andy > > > > > > > > > > > > > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > > > > > > > Hi Andy > > > > > > How about: > > > > > > res = Weekday(var) > > > > > > or rather: > > > > > > res = Weekday(var, vbUseSystemDayOfWeek) > > > > > > Works in A2013. > > > > > > /gustav > > > > > > -----Oprindelig meddelelse----- > > > Fra: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy > > > Lacey > > > Sendt: 5. februar 2015 12:08 > > > Til: Access Developers discussion and problem solving > > > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > > > > > Hi folks > > > > > > I'm moving an ancient and very big db from A97 to A2010. I've just > > > been tripped up by a difference in behaviour when using IIF. > > > Here's the line of > > > code: > > > > > > res=IIF(IsNull(var),Null,Weekday(var)) > > > > > > In A97 this works fine and gives me Null. However, in A2010 this > > > is crashing with Invalid Use of Null. It must evaluate both true > > > and false element(s) of the IIF regardless. (Queries do not appear > > > to do > this, > > they work as before). > > > > > > Is this a general rule in A2010. Is there anything I can do to > > > change this behaviour? I know I can code round it in a number of > > > ways but finding all instances of this in a humungous db is a > > > horrendous prospect. I'm praying for a magic answer. > > > > > > Hang on, read on. > > > > > > After a bit more digging I'm not sure now where this will and will > > > not > > arise. > > > I just tried the following: > > > > > > res=iif(isnull(var),null,instr(var,"12345","1")) > > > > > > and, unlike the Weekday function, that crashes in A97 which blows > > > out of the water the idea that the False part of the IIF function > > > wasn't evaluated before. > > > So now I'm not sure if there is a rule by which all functions abide. > > > > > > Confused. > > > > > > Oh and pleeease don't tell me that I shouldn't have coded like > > > that in the first place. That wouldn't be helpful. > > > > > > Andy > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/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 gustav at cactus.dk Thu Feb 5 10:05:01 2015 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 5 Feb 2015 16:05:01 +0000 Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <1681872075.119077.1423151979290.JavaMail.open-xchange@oxbaltgw13.schlund.de> References: <54D1A166.1010903@gmail.com><632418048.116603078.1423124678084.JavaMail.root@cds018><102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de><2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de><88D967009D49408182A9B9CE840B0FF1@HAL9007><1354545322.114294.1423148176465.JavaMail.open-xchange@oxbaltgw13.schlund.de> <6BE5EE4C176E41AC91C45BD39BBEBE6E@XPS> <9A202AFB8CE248C0B4DFEB3D972D7B76@HAL9007> <1681872075.119077.1423151979290.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: Hi Andy Uh. That will keep you busy for a while. /gustav -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey Sendt: 5. februar 2015 17:00 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? Hi Rocky A run of a little routine tells me: 692 Forms of which 492 have modules 354 Reports of which 120 have modules 79 actual modules 200,000 lines of code in total The potential for more banana skins is.......significant, shall we say? Andy > On 05 February 2015 at 15:47 Rocky Smolin wrote: > > > Just out of curiosity -how many objects in this bad boy - forms, > reports, queries, etc. I assume most if not all will have some VBA. > > R From andy at minstersystems.co.uk Thu Feb 5 10:13:54 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 16:13:54 +0000 (GMT) Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: References: <54D1A166.1010903@gmail.com><632418048.116603078.1423124678084.JavaMail.root@cds018><102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de><2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de><88D967009D49408182A9B9CE840B0FF1@HAL9007><1354545322.114294.1423148176465.JavaMail.open-xchange@oxbaltgw13.schlund.de> <6BE5EE4C176E41AC91C45BD39BBEBE6E@XPS> <9A202AFB8CE248C0B4DFEB3D972D7B76@HAL9007> <1681872075.119077.1423151979290.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: <1220615429.120220.1423152834881.JavaMail.open-xchange@oxbaltgw13.schlund.de> Yea :-( I wouldn't even be getting into this if it weren't that it's getting harder and harder to shoe-horn A97 onto new pc's. > On 05 February 2015 at 16:05 Gustav Brock wrote: > > > Hi Andy > > Uh. That will keep you busy for a while. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 5. februar 2015 17:00 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Hi Rocky > > A run of a little routine tells me: > > 692 Forms of which 492 have modules > 354 Reports of which 120 have modules > 79 actual modules > > 200,000 lines of code in total > > The potential for more banana skins is.......significant, shall we say? > > Andy > > > > > > On 05 February 2015 at 15:47 Rocky Smolin wrote: > > > > > > Just out of curiosity -how many objects in this bad boy - forms, > > reports, queries, etc. I assume most if not all will have some VBA. > > > > R > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bensonforums at gmail.com Wed Feb 4 22:00:47 2015 From: bensonforums at gmail.com (Bill Benson) Date: Wed, 4 Feb 2015 23:00:47 -0500 Subject: [AccessD] Access Controlling Excel Via Windows Automation - More Info In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> <54D24356.7090203@gmail.com> Message-ID: It's not me with the need Dan, probably Brad you are trying to help, no? I have never had trouble automating Excel. My code looks similar to yours I am sure. It's not rocket science really, however maybe Brad has stumbled across a problem with plug-ins or adding that don't like being automated. I am eager to see what he learns. On Feb 4, 2015 6:02 PM, "Dan Waters" wrote: > Hi Bill, > > This is what I use to open an excel file - maybe it will be helpful. > > Good Luck! > Dan > > -------------------------- > Public Sub OpenExcelFile(stgSpreadsheetFullPath As String) > > Dim objExcel As Object > Dim objWorkbook As Object > ' Dim objExcel As excel.Application '-- TEST > ' Dim objWorkbook As excel.Workbook '-- TEST > > Application.Echo SV.ApplicationEcho > > DoEvents > > '-- Open the Excel application > Set objExcel = CreateObject("Excel.Application") > > DoEvents > > '-- Make the application visible > objExcel.Visible = True > > DoEvents > > '-- Open the workbook in the spreadsheet file > Set objWorkbook = objExcel.Workbooks.Open(stgSpreadsheetFullPath) > > '-- Now that the file is open to the workbook close the object > variables > Set objWorkbook = Nothing > Set objExcel = Nothing > > Application.Echo True > > End Sub > ------------------------------- > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Wednesday, February 04, 2015 16:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation - > More Info > > I'm stumped, however I am beginning to consider the possibility of some > plug-in or Addin to their Excel causing the issue. Would you feel > comfortable asking them to disable any plug-ins like Adobe, etc - and > temporarily uninstall any Add-ins (COM or otherwise) - and retry? > > On Wed, Feb 4, 2015 at 12:57 PM, Brad Marks > wrote: > > > All, > > > > Thanks for the help on this issue. > > > > Summary - Access application controlling Excel via Windows Automation. > > > > Late Binding is used > > > > Works properly on PC with Access 2007 and Excel 2007 > > > > Works properly on a second PC with Access 2013 (Runtime) and Excel > > 2013 > > > > > > Does not work on a machine with Access 2010 (Runtime) and Excel 2013. > > > > I actually have two small Access applications that I am using to debug > > this problem. > > > > One was working fine, the other was not working. > > > > The first Access application had "xlApp.Visible = False" and was > > working nicely. > > > > I changed this line to "xlApp.Visible = True" and now this application > > is also not working. I now see an error message that says "We're > > sorry, but Excel has run into an error that is preventing it from working > correctly. > > Excel will need to be closed as a result." > > > > So, it appears that the command "xlApp.Visible = True" is at the crux > > of the problem on the machine with Access 2010 (Runtime) and Excel 2013. > > > > I feel like I am getting closer, but still no cigar. > > > > Brad > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto: > > accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > > Sent: Wednesday, February 04, 2015 10:36 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation > > > > It works just fine for any app I have used, so long as late binding us > > used. > > > > I particular I have clients who ONLY have Office 2010 - and who > > recently bought Access 2013 standalone: and my Access App which > > automates their Excel (without a ref to Excel) works just fine. > > > > I would look elsewhere. > > > > You say there is no error message Brad. Have you had them look in Task > > Managet, maybe the instance is opening invisibly? In which case > > > > XLApp.Visible = True > > > > would resolve. > > On Feb 4, 2015 11:07 AM, "John W. Colby" wrote: > > > > > You are trying to automate a later version from an earlier version. > > > That is never a good idea, and I would not expect it to work. > > > > > > John W. Colby > > > > > > On 2/4/2015 10:14 AM, Brad Marks wrote: > > > > > >> All, > > >> > > >> I just ran a test of the Access application that creates an Excel > > >> file on a PC that has Access 2013 and Excel 2013. It worked > perfectly. > > >> > > >> However, when I run the same application on the machine that has > > >> Access > > >> 2010 Runtime and Excel 2013, the application gets hung up. There > > >> is no error message. > > >> > > >> I have rebooted this machine and this did not make any difference. > > >> > > >> I thought that Access 2010 Runtime would play nicely with Excel > > >> 2013, but for some reason this appears to not be the case. > > >> > > >> I am open to any ideas. > > >> > > >> Thanks, > > >> Brad > > >> > > >> > > >> -----Original Message----- > > >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces@ > > >> databaseadvisors.com] On Behalf Of Bill Benson > > >> Sent: Tuesday, February 03, 2015 4:02 PM > > >> To: Access Developers discussion and problem solving > > >> Subject: Re: [AccessD] Access Controlling Excel Via Windows > > >> Automation > > >> > > >> Did you (1) use late binding but nonetheless (2) left a reference > > >> to Excel? > > >> That would do it if the Excel you are using is not in the same > > >> location as the next user's. And it has happened to me. > > >> > > >> On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks > > >> > > >> wrote: > > >> > > >> All, > > >>> > > >>> I don't have a lot of experience with this realm but I have had > > >>> some success using Access VBA to control Excel via Automation. > > >>> > > >>> I have one Access 2007 application that creates a number of reports. > > >>> Recently I have added new VBA code to also create an Excel file. > > >>> This works nicely on my development PC that has Access 2007 and > > >>> Excel > > 2007. > > >>> > > >>> However, I have run into some problems when trying to deploy this > > >>> application on a machine that has Access 2010 Runtime and Excel 2013. > > >>> > > >>> All of the reports work properly via Access 2010 Runtime. > > >>> > > >>> However, when I try to run the VBA code that generates the Excel > > >>> file, the application hangs up. There are no error messages. > > >>> > > >>> I am using "Late Binding". > > >>> > > >>> I am not sure where to start looking. > > >>> > > >>> Should Access 2010 Runtime work properly in conjunction with Excel > > 2013? > > >>> (both are 32 bit) > > >>> > > >>> Is anyone else using this combination? > > >>> > > >>> I have thought about upgrading Access Runtime from 2010 to 2013, > > >>> but I would prefer to not do this if I can resolve the current > problems. > > >>> > > >>> Thanks, > > >>> Brad > > >>> > > >>> -- > > >>> AccessD mailing list > > >>> AccessD at databaseadvisors.com > > >>> http://databaseadvisors.com/mailman/listinfo/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 andy at minstersystems.co.uk Thu Feb 5 10:18:01 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 16:18:01 +0000 (GMT) Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: References: <54D1A166.1010903@gmail.com><632418048.116603078.1423124678084.JavaMail.root@cds018><102182158.95574.1423134492101.JavaMail.open-xchange@oxbaltgw13.schlund.de><2095670671.101022.1423138406837.JavaMail.open-xchange@oxbaltgw13.schlund.de><88D967009D49408182A9B9CE840B0FF1@HAL9007><1354545322.114294.1423148176465.JavaMail.open-xchange@oxbaltgw13.schlund.de><6BE5EE4C176E41AC91C45BD39BBEBE6E@XPS><9A202AFB8CE248C0B4DFEB3D972D7B76@HAL9007> <1681872075.119077.1423151979290.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: <1681664653.120496.1423153081890.JavaMail.open-xchange@oxbaltgw13.schlund.de> Way too late. And even then not really what the customer wants. Users dodge between purchasing, SOP, production planning, stock and so on. Telling them they have to run different FE's for each....not really on. The company (big international one) as a whole is moving to SAP but this site (bought out a few years ago) isn't due to move for another 4 years or so and my ERP system has to be kept going that long. It runs fine under A97 and I wouldn't be tampering with it if it were not for MS making it increasingly hard to put A97 onto new pc's. > On 05 February 2015 at 16:01 Rocky Smolin wrote: > > > Yeah, that's big. What's the size of the front end then? And would it be > better off being split into a few different front ends? (I know, in > hindsight...) > > r > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, February 05, 2015 8:00 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Hi Rocky > > A run of a little routine tells me: > > 692 Forms of which 492 have modules > 354 Reports of which 120 have modules > 79 actual modules > > 200,000 lines of code in total > > The potential for more banana skins is.......significant, shall we say? > > Andy > > > > > > On 05 February 2015 at 15:47 Rocky Smolin wrote: > > > > > > Just out of curiosity -how many objects in this bad boy - forms, > > reports, queries, etc. I assume most if not all will have some VBA. > > > > R > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > > Sent: Thursday, February 05, 2015 7:40 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > > > < > field is Null, when it wouldn't have in A97. >> > > > > Your going to bump into quite a bit of this. > > > > Starting with Access 2007, Microsoft tightened up on a lot of things > > in syntax checking and type conversions (thank VBA7). Just about every > > app needs a few tweaks as a result. > > > > Suffice to say you just can't get away with things you never really > > should have been able to in the first place > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > > Sent: Thursday, February 05, 2015 09:56 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Change in the evaluation of IIF, or something else? > > > > Hi Rocky > > > > Thanks. The problem though is not so much this line, which I can code > > around of course. I'm moving a ginormous db from A97 to A2010 and I've > > just discovered this difference between the way A97 handles this call > > (with tolerance and > > understanding) and the way A2010 does (with a dull thud). I have no > > idea how many similar instances like this there may be and no way of > > searching for them (see my last post). Any inbuilt function which I > > pass a field value (and there will be hundreds if not thousands of > > instances) could crash in A2010 if the field is Null, when it wouldn't > have in A97. > > > > Cheers > > > > Andy > > > > > > > On 05 February 2015 at 14:46 Rocky Smolin > wrote: > > > > > > > > > Use Weekday(Nz(rst!fld))? > > > > > > R > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy > > > Lacey > > > Sent: Thursday, February 05, 2015 4:13 AM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Change in the evaluation of IIF, or something > else? > > > > > > Well there's a thing. > > > > > > Weekday(Null) returns Null > > > > > > Weekday(var) where var is Null returns Null > > > > > > Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null > > > > > > ???????? > > > > > > Andy > > > > > > > > > > > > > > > > > > > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > > > > > > > > > > Hi Andy > > > > > > > > How about: > > > > > > > > res = Weekday(var) > > > > > > > > or rather: > > > > > > > > res = Weekday(var, vbUseSystemDayOfWeek) > > > > > > > > Works in A2013. > > > > > > > > /gustav > > > > > > > > -----Oprindelig meddelelse----- > > > > Fra: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy > > > > Lacey > > > > Sendt: 5. februar 2015 12:08 > > > > Til: Access Developers discussion and problem solving > > > > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > > > > > > > Hi folks > > > > > > > > I'm moving an ancient and very big db from A97 to A2010. I've just > > > > been tripped up by a difference in behaviour when using IIF. > > > > Here's the line of > > > > code: > > > > > > > > res=IIF(IsNull(var),Null,Weekday(var)) > > > > > > > > In A97 this works fine and gives me Null. However, in A2010 this > > > > is crashing with Invalid Use of Null. It must evaluate both true > > > > and false element(s) of the IIF regardless. (Queries do not appear > > > > to do > > this, > > > they work as before). > > > > > > > > Is this a general rule in A2010. Is there anything I can do to > > > > change this behaviour? I know I can code round it in a number of > > > > ways but finding all instances of this in a humungous db is a > > > > horrendous prospect. I'm praying for a magic answer. > > > > > > > > Hang on, read on. > > > > > > > > After a bit more digging I'm not sure now where this will and will > > > > not > > > arise. > > > > I just tried the following: > > > > > > > > res=iif(isnull(var),null,instr(var,"12345","1")) > > > > > > > > and, unlike the Weekday function, that crashes in A97 which blows > > > > out of the water the idea that the False part of the IIF function > > > > wasn't evaluated before. > > > > So now I'm not sure if there is a rule by which all functions abide. > > > > > > > > Confused. > > > > > > > > Oh and pleeease don't tell me that I shouldn't have coded like > > > > that in the first place. That wouldn't be helpful. > > > > > > > > Andy > > > > > > > > -- > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/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 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 5 10:38:31 2015 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 5 Feb 2015 16:38:31 +0000 Subject: [AccessD] Change in the evaluation of IIF, or something else? Message-ID: Hi Andy I see. So that's how it is. It will be a massive amount of work. Couldn't you team up with some? Sounds like a job that could kill anyone. Another option is to run it off a terminal server. You know about RemoteApp? This smart feature will run the application in a frame on the client desktop appearing as any other desktop application. The normal user won't notice the difference. /gustav -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey Sendt: 5. februar 2015 17:14 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? Yea :-( I wouldn't even be getting into this if it weren't that it's getting harder and harder to shoe-horn A97 onto new pc's. > On 05 February 2015 at 16:05 Gustav Brock wrote: > > > Hi Andy > > Uh. That will keep you busy for a while. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 5. februar 2015 17:00 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Hi Rocky > > A run of a little routine tells me: > > 692 Forms of which 492 have modules > 354 Reports of which 120 have modules > 79 actual modules > > 200,000 lines of code in total > > The potential for more banana skins is.......significant, shall we say? > > Andy From andy at minstersystems.co.uk Thu Feb 5 10:57:15 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 16:57:15 +0000 (GMT) Subject: [AccessD] Conversion A97 to A2k In-Reply-To: References: Message-ID: <702535328.123448.1423155435424.JavaMail.open-xchange@oxbaltgw13.schlund.de> Changing the Subject to be more relevant. Well actually, this may be misplaced confidence but having done the conversion a couple of weeks ago and then driven myself crazy with ribbons, commandbars etc this is the first crash I've had. I've run most of the biggest routines and they seem to be standing up ok, largely untouched. I have one heavy user who has had it for a couple of days and it was he who had the crash that started this thread, but that's the only one he's had and he's on the system all day every day. I don't doubt there'll be some problems down the line but for now......(touches large piece of wood) Can anyone think of any banana skins they've skidded on during such a conversion? Andy > On 05 February 2015 at 16:38 Gustav Brock wrote: > > > Hi Andy > > I see. So that's how it is. > It will be a massive amount of work. Couldn't you team up with some? Sounds > like a job that could kill anyone. > > Another option is to run it off a terminal server. You know about RemoteApp? > This smart feature will run the application in a frame on the client desktop > appearing as any other desktop application. The normal user won't notice the > difference. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 5. februar 2015 17:14 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Yea :-( > > I wouldn't even be getting into this if it weren't that it's getting harder > and harder to shoe-horn A97 onto new pc's. > > > > On 05 February 2015 at 16:05 Gustav Brock wrote: > > > > > > Hi Andy > > > > Uh. That will keep you busy for a while. > > > > /gustav > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > Sendt: 5. februar 2015 17:00 > > Til: Access Developers discussion and problem solving > > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > > > Hi Rocky > > > > A run of a little routine tells me: > > > > 692 Forms of which 492 have modules > > 354 Reports of which 120 have modules > > 79 actual modules > > > > 200,000 lines of code in total > > > > The potential for more banana skins is.......significant, shall we say? > > > > Andy > > -- > 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 Feb 5 12:35:28 2015 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Thu, 5 Feb 2015 18:35:28 +0000 Subject: [AccessD] Conversion A97 to A2k In-Reply-To: <702535328.123448.1423155435424.JavaMail.open-xchange@oxbaltgw13.schlund.de> References: <702535328.123448.1423155435424.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: The only problem I had switching Apps from Access 2003 to 2010 was to do with emailing using Outlook. I have a bunch of canned routines to handle all my mailing needs, which all reduce to a few calls to a function which verifies the email addresses of the recipients, and then a final call to a 'SendMessage' routine. Typically I create an Outlook object and then immediately create a Mail item... Set objOutlook = CreateObject("Outlook.Application") Set objOutlookMsg = objOutlook.CreateItem(olMailItem) Then for each email address I call a routine to check the address before adding it to an Outlook.Recipient object. When I converted to Office 2010 the verify email address code hit problems. The code just creates some temporary Outlook objects and used the .Resolve method to check if the email address looked good. This always just works (from Access 97 onwards), but in A2010 if Outlook was NOT ALREADY RUNNING an error resulted. Here's the code, with the problem line indicated... Function bVerifyEmailAddress(CM_Email As String) As Boolean ' Verify if email address is valid Dim objOutlook As Outlook.Application Dim objOutlookMsg As Outlook.MailItem Dim objOutlookRecip As Outlook.Recipient On Error GoTo bVerifyEmailAddress_Error If Not IsBlank(CM_Email) Then ' Create the Outlook session. Set objOutlook = CreateObject("Outlook.Application") ' Create a message object Set objOutlookMsg = objOutlook.CreateItem(olMailItem) With objOutlookMsg ' Add the To recipient to the message. '++++++++++++++++++++++++++++++++++++++++++ Set objOutlookRecip = .Recipients.Add(CM_Email) '+++++++ above line causes an error 287++++++++++ ' Resolve Recipient's name. For Each objOutlookRecip In .Recipients If Not objOutlookRecip.Resolve = True Then objOutlookRecip.Delete bVerifyEmailAddress = False Else bVerifyEmailAddress = True End If Next End With Set objOutlookRecip = Nothing Set objOutlookMsg = Nothing Set objOutlook = Nothing Else bVerifyEmailAddress = False End If bVerifyEmailAddress_Exit: On Error GoTo 0 Exit Function ... The solution was to trap error 287 and then launch Outlook. To do that I had to write a little routine to go find Outlook... bVerifyEmailAddress_Error: Dim strOlPath As String Select Case Err.Number Case 0 ' No Error DoEvents Case 287 ' Application-defined or object-defined error ' In Access 2007/2010 the call to .Recipients.Add generates this error if Outlook is not already running ' So here we will locate Outlook and then run it strOlPath = FindOutlook() If strOlPath > "" Then Shell strOlPath, vbMinimizedNoFocus Resume Else MsgBox "Error sending Email message. Please start Outlook then click the 'OK' button and we will try again.", vbOKOnly Or vbExclamation Resume End If ... And this is how I locate Outlook... Function FindOutlook() As String Dim strOlPath As String Dim strFile As String Dim strTemp As String Dim n As Long ' try the folder that Access is installed in first FindOutlook = "" ' default strOlPath = SysCmd(acSysCmdAccessDir) strFile = Dir(strOlPath & "Outlook.exe") If strFile & "" > "" Then FindOutlook = strOlPath & strFile Else ' not found. Search the Program Files folder strTemp = Split(strOlPath, "\")(0) & "\" & Split(strOlPath, "\")(1) With Application.FileSearch .LookIn = strTemp .SearchSubFolders = True .fileName = "Outlook.exe" .Execute If .FoundFiles.count > 0 Then For n = 1 To .FoundFiles.count If GetFileName(.FoundFiles(n)) = "Outlook.Exe" Then ' got it. FindOutlook = .FoundFiles(n) Exit For End If Next n End If End With End If End Function ' End Code HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, February 05, 2015 11:57 AM To: Access Developers discussion and problem solving Subject: [AccessD] Conversion A97 to A2k Changing the Subject to be more relevant. Well actually, this may be misplaced confidence but having done the conversion a couple of weeks ago and then driven myself crazy with ribbons, commandbars etc this is the first crash I've had. I've run most of the biggest routines and they seem to be standing up ok, largely untouched. I have one heavy user who has had it for a couple of days and it was he who had the crash that started this thread, but that's the only one he's had and he's on the system all day every day. I don't doubt there'll be some problems down the line but for now......(touches large piece of wood) Can anyone think of any banana skins they've skidded on during such a conversion? Andy > On 05 February 2015 at 16:38 Gustav Brock wrote: > > > Hi Andy > > I see. So that's how it is. > It will be a massive amount of work. Couldn't you team up with some? > Sounds like a job that could kill anyone. > > Another option is to run it off a terminal server. You know about RemoteApp? > This smart feature will run the application in a frame on the client > desktop appearing as any other desktop application. The normal user > won't notice the difference. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 5. februar 2015 17:14 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Yea :-( > > I wouldn't even be getting into this if it weren't that it's getting > harder and harder to shoe-horn A97 onto new pc's. > > > > On 05 February 2015 at 16:05 Gustav Brock wrote: > > > > > > Hi Andy > > > > Uh. That will keep you busy for a while. > > > > /gustav > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > Sendt: 5. februar 2015 17:00 > > Til: Access Developers discussion and problem solving > > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > > > Hi Rocky > > > > A run of a little routine tells me: > > > > 692 Forms of which 492 have modules > > 354 Reports of which 120 have modules > > 79 actual modules > > > > 200,000 lines of code in total > > > > The potential for more banana skins is.......significant, shall we say? > > > > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Thu Feb 5 13:17:39 2015 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 5 Feb 2015 19:17:39 -0000 Subject: [AccessD] Conversion A97 to A2k In-Reply-To: Message-ID: <060CED00DB1446978A675CD040474BF4@MINSTER> Thanks Lambert, that's really useful. As well as me converting to A2K the company is moving from Lotus Notes to Outlook. I have Outlook code, having converted the other way about 5 years ago, but this will be a big help going from A97/Notes to A2K/Outlook. Cheers Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: 05 February 2015 18:35 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Conversion A97 to A2k The only problem I had switching Apps from Access 2003 to 2010 was to do with emailing using Outlook. I have a bunch of canned routines to handle all my mailing needs, which all reduce to a few calls to a function which verifies the email addresses of the recipients, and then a final call to a 'SendMessage' routine. Typically I create an Outlook object and then immediately create a Mail item... Set objOutlook = CreateObject("Outlook.Application") Set objOutlookMsg = objOutlook.CreateItem(olMailItem) Then for each email address I call a routine to check the address before adding it to an Outlook.Recipient object. When I converted to Office 2010 the verify email address code hit problems. The code just creates some temporary Outlook objects and used the .Resolve method to check if the email address looked good. This always just works (from Access 97 onwards), but in A2010 if Outlook was NOT ALREADY RUNNING an error resulted. Here's the code, with the problem line indicated... Function bVerifyEmailAddress(CM_Email As String) As Boolean ' Verify if email address is valid Dim objOutlook As Outlook.Application Dim objOutlookMsg As Outlook.MailItem Dim objOutlookRecip As Outlook.Recipient On Error GoTo bVerifyEmailAddress_Error If Not IsBlank(CM_Email) Then ' Create the Outlook session. Set objOutlook = CreateObject("Outlook.Application") ' Create a message object Set objOutlookMsg = objOutlook.CreateItem(olMailItem) With objOutlookMsg ' Add the To recipient to the message. '++++++++++++++++++++++++++++++++++++++++++ Set objOutlookRecip = .Recipients.Add(CM_Email) '+++++++ above line causes an error 287++++++++++ ' Resolve Recipient's name. For Each objOutlookRecip In .Recipients If Not objOutlookRecip.Resolve = True Then objOutlookRecip.Delete bVerifyEmailAddress = False Else bVerifyEmailAddress = True End If Next End With Set objOutlookRecip = Nothing Set objOutlookMsg = Nothing Set objOutlook = Nothing Else bVerifyEmailAddress = False End If bVerifyEmailAddress_Exit: On Error GoTo 0 Exit Function ... The solution was to trap error 287 and then launch Outlook. To do that I had to write a little routine to go find Outlook... bVerifyEmailAddress_Error: Dim strOlPath As String Select Case Err.Number Case 0 ' No Error DoEvents Case 287 ' Application-defined or object-defined error ' In Access 2007/2010 the call to .Recipients.Add generates this error if Outlook is not already running ' So here we will locate Outlook and then run it strOlPath = FindOutlook() If strOlPath > "" Then Shell strOlPath, vbMinimizedNoFocus Resume Else MsgBox "Error sending Email message. Please start Outlook then click the 'OK' button and we will try again.", vbOKOnly Or vbExclamation Resume End If ... And this is how I locate Outlook... Function FindOutlook() As String Dim strOlPath As String Dim strFile As String Dim strTemp As String Dim n As Long ' try the folder that Access is installed in first FindOutlook = "" ' default strOlPath = SysCmd(acSysCmdAccessDir) strFile = Dir(strOlPath & "Outlook.exe") If strFile & "" > "" Then FindOutlook = strOlPath & strFile Else ' not found. Search the Program Files folder strTemp = Split(strOlPath, "\")(0) & "\" & Split(strOlPath, "\")(1) With Application.FileSearch .LookIn = strTemp .SearchSubFolders = True .fileName = "Outlook.exe" .Execute If .FoundFiles.count > 0 Then For n = 1 To .FoundFiles.count If GetFileName(.FoundFiles(n)) = "Outlook.Exe" Then ' got it. FindOutlook = .FoundFiles(n) Exit For End If Next n End If End With End If End Function ' End Code HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, February 05, 2015 11:57 AM To: Access Developers discussion and problem solving Subject: [AccessD] Conversion A97 to A2k Changing the Subject to be more relevant. Well actually, this may be misplaced confidence but having done the conversion a couple of weeks ago and then driven myself crazy with ribbons, commandbars etc this is the first crash I've had. I've run most of the biggest routines and they seem to be standing up ok, largely untouched. I have one heavy user who has had it for a couple of days and it was he who had the crash that started this thread, but that's the only one he's had and he's on the system all day every day. I don't doubt there'll be some problems down the line but for now......(touches large piece of wood) Can anyone think of any banana skins they've skidded on during such a conversion? Andy > On 05 February 2015 at 16:38 Gustav Brock wrote: > > > Hi Andy > > I see. So that's how it is. > It will be a massive amount of work. Couldn't you team up with some? > Sounds like a job that could kill anyone. > > Another option is to run it off a terminal server. You know about RemoteApp? > This smart feature will run the application in a frame on the client > desktop appearing as any other desktop application. The normal user > won't notice the difference. > > /gustav > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > Sendt: 5. februar 2015 17:14 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > Yea :-( > > I wouldn't even be getting into this if it weren't that it's getting > harder and harder to shoe-horn A97 onto new pc's. > > > > On 05 February 2015 at 16:05 Gustav Brock wrote: > > > > > > Hi Andy > > > > Uh. That will keep you busy for a while. > > > > /gustav > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > Sendt: 5. februar 2015 17:00 > > Til: Access Developers discussion and problem solving > > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > > > Hi Rocky > > > > A run of a little routine tells me: > > > > 692 Forms of which 492 have modules > > 354 Reports of which 120 have modules > > 79 actual modules > > > > 200,000 lines of code in total > > > > The potential for more banana skins is.......significant, shall we say? > > > > Andy > From bradm at blackforestltd.com Thu Feb 5 17:01:35 2015 From: bradm at blackforestltd.com (Brad Marks) Date: Thu, 5 Feb 2015 23:01:35 +0000 Subject: [AccessD] Access Controlling Excel Via Windows Automation - More Info - Excel Add-In??? In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> <54D24356.7090203@gmail.com> Message-ID: Dan and Bill, Thanks for the help, I really appreciate it. The code provided (below) is very similar to the code that I was using. Just for fun, I copied the code below into a new little test Access application. It works nicely on my PC (Office 2007), but it does not work on the machine with Access 2010 and Excel 2013. Earlier, the possibility of the problem being caused by an "Add-in" was suggested. I installed Excel 2013 a few days ago and did not intentionally do anything with any Add-in. However, when I ran tests this afternoon I fired up Excel directly (not from Access). When I did this, I saw a small pop-up that said "Loading Add-ins (1 of 1) ACT! Documents Tab Add-In" I now believe that this Add-In is the source of the problem. I have not worked much with Add-Ins. I found a page on Microsoft's Website that describes how to remove Add-Ins from Excel, but when I tried to do this, the Add-In was not visible. I plan to do more digging on how to remove this add-in. Thanks again for your help. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Wednesday, February 04, 2015 10:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation - More Info It's not me with the need Dan, probably Brad you are trying to help, no? I have never had trouble automating Excel. My code looks similar to yours I am sure. It's not rocket science really, however maybe Brad has stumbled across a problem with plug-ins or adding that don't like being automated. I am eager to see what he learns. On Feb 4, 2015 6:02 PM, "Dan Waters" wrote: > Hi Bill, > > This is what I use to open an excel file - maybe it will be helpful. > > Good Luck! > Dan > > -------------------------- > Public Sub OpenExcelFile(stgSpreadsheetFullPath As String) > > Dim objExcel As Object > Dim objWorkbook As Object > ' Dim objExcel As excel.Application '-- TEST > ' Dim objWorkbook As excel.Workbook '-- TEST > > Application.Echo SV.ApplicationEcho > > DoEvents > > '-- Open the Excel application > Set objExcel = CreateObject("Excel.Application") > > DoEvents > > '-- Make the application visible > objExcel.Visible = True > > DoEvents > > '-- Open the workbook in the spreadsheet file > Set objWorkbook = objExcel.Workbooks.Open(stgSpreadsheetFullPath) > > '-- Now that the file is open to the workbook close the object > variables > Set objWorkbook = Nothing > Set objExcel = Nothing > > Application.Echo True > > End Sub > ------------------------------- > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Wednesday, February 04, 2015 16:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation > - More Info > > I'm stumped, however I am beginning to consider the possibility of > some plug-in or Addin to their Excel causing the issue. Would you feel > comfortable asking them to disable any plug-ins like Adobe, etc - and > temporarily uninstall any Add-ins (COM or otherwise) - and retry? > > On Wed, Feb 4, 2015 at 12:57 PM, Brad Marks > wrote: > > > All, > > > > Thanks for the help on this issue. > > > > Summary - Access application controlling Excel via Windows Automation. > > > > Late Binding is used > > > > Works properly on PC with Access 2007 and Excel 2007 > > > > Works properly on a second PC with Access 2013 (Runtime) and Excel > > 2013 > > > > > > Does not work on a machine with Access 2010 (Runtime) and Excel 2013. > > > > I actually have two small Access applications that I am using to > > debug this problem. > > > > One was working fine, the other was not working. > > > > The first Access application had "xlApp.Visible = False" and was > > working nicely. > > > > I changed this line to "xlApp.Visible = True" and now this > > application is also not working. I now see an error message that > > says "We're sorry, but Excel has run into an error that is > > preventing it from working > correctly. > > Excel will need to be closed as a result." > > > > So, it appears that the command "xlApp.Visible = True" is at the > > crux of the problem on the machine with Access 2010 (Runtime) and Excel 2013. > > > > I feel like I am getting closer, but still no cigar. > > > > Brad > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto: > > accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > > Sent: Wednesday, February 04, 2015 10:36 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access Controlling Excel Via Windows > > Automation > > > > It works just fine for any app I have used, so long as late binding > > us used. > > > > I particular I have clients who ONLY have Office 2010 - and who > > recently bought Access 2013 standalone: and my Access App which > > automates their Excel (without a ref to Excel) works just fine. > > > > I would look elsewhere. > > > > You say there is no error message Brad. Have you had them look in > > Task Managet, maybe the instance is opening invisibly? In which case > > > > XLApp.Visible = True > > > > would resolve. > > On Feb 4, 2015 11:07 AM, "John W. Colby" wrote: > > > > > You are trying to automate a later version from an earlier version. > > > That is never a good idea, and I would not expect it to work. > > > > > > John W. Colby > > > > > > On 2/4/2015 10:14 AM, Brad Marks wrote: > > > > > >> All, > > >> > > >> I just ran a test of the Access application that creates an Excel > > >> file on a PC that has Access 2013 and Excel 2013. It worked > perfectly. > > >> > > >> However, when I run the same application on the machine that has > > >> Access > > >> 2010 Runtime and Excel 2013, the application gets hung up. There > > >> is no error message. > > >> > > >> I have rebooted this machine and this did not make any difference. > > >> > > >> I thought that Access 2010 Runtime would play nicely with Excel > > >> 2013, but for some reason this appears to not be the case. > > >> > > >> I am open to any ideas. > > >> > > >> Thanks, > > >> Brad > > >> > > >> > > >> -----Original Message----- > > >> From: accessd-bounces at databaseadvisors.com > > >> [mailto:accessd-bounces@ databaseadvisors.com] On Behalf Of Bill > > >> Benson > > >> Sent: Tuesday, February 03, 2015 4:02 PM > > >> To: Access Developers discussion and problem solving > > >> Subject: Re: [AccessD] Access Controlling Excel Via Windows > > >> Automation > > >> > > >> Did you (1) use late binding but nonetheless (2) left a reference > > >> to Excel? > > >> That would do it if the Excel you are using is not in the same > > >> location as the next user's. And it has happened to me. > > >> > > >> On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks > > >> > > >> wrote: > > >> > > >> All, > > >>> > > >>> I don't have a lot of experience with this realm but I have had > > >>> some success using Access VBA to control Excel via Automation. > > >>> > > >>> I have one Access 2007 application that creates a number of reports. > > >>> Recently I have added new VBA code to also create an Excel file. > > >>> This works nicely on my development PC that has Access 2007 and > > >>> Excel > > 2007. > > >>> > > >>> However, I have run into some problems when trying to deploy > > >>> this application on a machine that has Access 2010 Runtime and Excel 2013. > > >>> > > >>> All of the reports work properly via Access 2010 Runtime. > > >>> > > >>> However, when I try to run the VBA code that generates the Excel > > >>> file, the application hangs up. There are no error messages. > > >>> > > >>> I am using "Late Binding". > > >>> > > >>> I am not sure where to start looking. > > >>> > > >>> Should Access 2010 Runtime work properly in conjunction with > > >>> Excel > > 2013? > > >>> (both are 32 bit) > > >>> > > >>> Is anyone else using this combination? > > >>> > > >>> I have thought about upgrading Access Runtime from 2010 to 2013, > > >>> but I would prefer to not do this if I can resolve the current > problems. > > >>> > > >>> Thanks, > > >>> Brad > > >>> > > >>> -- > > >>> AccessD mailing list > > >>> AccessD at databaseadvisors.com > > >>> http://databaseadvisors.com/mailman/listinfo/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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at outlook.com Thu Feb 5 21:01:33 2015 From: df.waters at outlook.com (Dan Waters) Date: Thu, 5 Feb 2015 21:01:33 -0600 Subject: [AccessD] Access Controlling Excel Via Windows Automation - More Info - Excel Add-In??? In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> <54D24356.7090203@gmail.com> Message-ID: Hi Brad, When you go to the Excel Options screen you'll first see the list of Excel Add-In's. At the bottom of that screen is a drop-down list named 'Manage'. The 2nd item in that list is COM Add-In's. ACT! might be a COM Add-In. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, February 05, 2015 17:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation - More Info - Excel Add-In??? Dan and Bill, Thanks for the help, I really appreciate it. The code provided (below) is very similar to the code that I was using. Just for fun, I copied the code below into a new little test Access application. It works nicely on my PC (Office 2007), but it does not work on the machine with Access 2010 and Excel 2013. Earlier, the possibility of the problem being caused by an "Add-in" was suggested. I installed Excel 2013 a few days ago and did not intentionally do anything with any Add-in. However, when I ran tests this afternoon I fired up Excel directly (not from Access). When I did this, I saw a small pop-up that said "Loading Add-ins (1 of 1) ACT! Documents Tab Add-In" I now believe that this Add-In is the source of the problem. I have not worked much with Add-Ins. I found a page on Microsoft's Website that describes how to remove Add-Ins from Excel, but when I tried to do this, the Add-In was not visible. I plan to do more digging on how to remove this add-in. Thanks again for your help. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Wednesday, February 04, 2015 10:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation - More Info It's not me with the need Dan, probably Brad you are trying to help, no? I have never had trouble automating Excel. My code looks similar to yours I am sure. It's not rocket science really, however maybe Brad has stumbled across a problem with plug-ins or adding that don't like being automated. I am eager to see what he learns. On Feb 4, 2015 6:02 PM, "Dan Waters" wrote: > Hi Bill, > > This is what I use to open an excel file - maybe it will be helpful. > > Good Luck! > Dan > > -------------------------- > Public Sub OpenExcelFile(stgSpreadsheetFullPath As String) > > Dim objExcel As Object > Dim objWorkbook As Object > ' Dim objExcel As excel.Application '-- TEST > ' Dim objWorkbook As excel.Workbook '-- TEST > > Application.Echo SV.ApplicationEcho > > DoEvents > > '-- Open the Excel application > Set objExcel = CreateObject("Excel.Application") > > DoEvents > > '-- Make the application visible > objExcel.Visible = True > > DoEvents > > '-- Open the workbook in the spreadsheet file > Set objWorkbook = objExcel.Workbooks.Open(stgSpreadsheetFullPath) > > '-- Now that the file is open to the workbook close the object > variables > Set objWorkbook = Nothing > Set objExcel = Nothing > > Application.Echo True > > End Sub > ------------------------------- > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Wednesday, February 04, 2015 16:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation > - More Info > > I'm stumped, however I am beginning to consider the possibility of > some plug-in or Addin to their Excel causing the issue. Would you feel > comfortable asking them to disable any plug-ins like Adobe, etc - and > temporarily uninstall any Add-ins (COM or otherwise) - and retry? > > On Wed, Feb 4, 2015 at 12:57 PM, Brad Marks > wrote: > > > All, > > > > Thanks for the help on this issue. > > > > Summary - Access application controlling Excel via Windows Automation. > > > > Late Binding is used > > > > Works properly on PC with Access 2007 and Excel 2007 > > > > Works properly on a second PC with Access 2013 (Runtime) and Excel > > 2013 > > > > > > Does not work on a machine with Access 2010 (Runtime) and Excel 2013. > > > > I actually have two small Access applications that I am using to > > debug this problem. > > > > One was working fine, the other was not working. > > > > The first Access application had "xlApp.Visible = False" and was > > working nicely. > > > > I changed this line to "xlApp.Visible = True" and now this > > application is also not working. I now see an error message that > > says "We're sorry, but Excel has run into an error that is > > preventing it from working > correctly. > > Excel will need to be closed as a result." > > > > So, it appears that the command "xlApp.Visible = True" is at the > > crux of the problem on the machine with Access 2010 (Runtime) and Excel 2013. > > > > I feel like I am getting closer, but still no cigar. > > > > Brad > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto: > > accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > > Sent: Wednesday, February 04, 2015 10:36 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access Controlling Excel Via Windows > > Automation > > > > It works just fine for any app I have used, so long as late binding > > us used. > > > > I particular I have clients who ONLY have Office 2010 - and who > > recently bought Access 2013 standalone: and my Access App which > > automates their Excel (without a ref to Excel) works just fine. > > > > I would look elsewhere. > > > > You say there is no error message Brad. Have you had them look in > > Task Managet, maybe the instance is opening invisibly? In which case > > > > XLApp.Visible = True > > > > would resolve. > > On Feb 4, 2015 11:07 AM, "John W. Colby" wrote: > > > > > You are trying to automate a later version from an earlier version. > > > That is never a good idea, and I would not expect it to work. > > > > > > John W. Colby > > > > > > On 2/4/2015 10:14 AM, Brad Marks wrote: > > > > > >> All, > > >> > > >> I just ran a test of the Access application that creates an Excel > > >> file on a PC that has Access 2013 and Excel 2013. It worked > perfectly. > > >> > > >> However, when I run the same application on the machine that has > > >> Access > > >> 2010 Runtime and Excel 2013, the application gets hung up. There > > >> is no error message. > > >> > > >> I have rebooted this machine and this did not make any difference. > > >> > > >> I thought that Access 2010 Runtime would play nicely with Excel > > >> 2013, but for some reason this appears to not be the case. > > >> > > >> I am open to any ideas. > > >> > > >> Thanks, > > >> Brad > > >> > > >> > > >> -----Original Message----- > > >> From: accessd-bounces at databaseadvisors.com > > >> [mailto:accessd-bounces@ databaseadvisors.com] On Behalf Of Bill > > >> Benson > > >> Sent: Tuesday, February 03, 2015 4:02 PM > > >> To: Access Developers discussion and problem solving > > >> Subject: Re: [AccessD] Access Controlling Excel Via Windows > > >> Automation > > >> > > >> Did you (1) use late binding but nonetheless (2) left a reference > > >> to Excel? > > >> That would do it if the Excel you are using is not in the same > > >> location as the next user's. And it has happened to me. > > >> > > >> On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks > > >> > > >> wrote: > > >> > > >> All, > > >>> > > >>> I don't have a lot of experience with this realm but I have had > > >>> some success using Access VBA to control Excel via Automation. > > >>> > > >>> I have one Access 2007 application that creates a number of reports. > > >>> Recently I have added new VBA code to also create an Excel file. > > >>> This works nicely on my development PC that has Access 2007 and > > >>> Excel > > 2007. > > >>> > > >>> However, I have run into some problems when trying to deploy > > >>> this application on a machine that has Access 2010 Runtime and Excel 2013. > > >>> > > >>> All of the reports work properly via Access 2010 Runtime. > > >>> > > >>> However, when I try to run the VBA code that generates the Excel > > >>> file, the application hangs up. There are no error messages. > > >>> > > >>> I am using "Late Binding". > > >>> > > >>> I am not sure where to start looking. > > >>> > > >>> Should Access 2010 Runtime work properly in conjunction with > > >>> Excel > > 2013? > > >>> (both are 32 bit) > > >>> > > >>> Is anyone else using this combination? > > >>> > > >>> I have thought about upgrading Access Runtime from 2010 to 2013, > > >>> but I would prefer to not do this if I can resolve the current > problems. > > >>> > > >>> Thanks, > > >>> Brad > > >>> > > >>> -- > > >>> AccessD mailing list > > >>> AccessD at databaseadvisors.com > > >>> http://databaseadvisors.com/mailman/listinfo/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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 bradm at blackforestltd.com Thu Feb 5 21:21:25 2015 From: bradm at blackforestltd.com (Brad Marks) Date: Fri, 6 Feb 2015 03:21:25 +0000 Subject: [AccessD] Access Controlling Excel Via Windows Automation - Problem Resolved In-Reply-To: References: <54D05025.5000307@gmail.com> <632907702.115104621.1422996940600.JavaMail.root@cds018> <54D24356.7090203@gmail.com> Message-ID: All, It appears that this problem is resolved. Background - I am trying to run an Access application that controls Excel. I need to get this application running on Windows Server 2012 R2 - Access 2010 Runtime - Excel 2013 - Late Binding. Here is the piece that I was missing ... I needed to change the "Compatibility" for Excel.exe to "Run this program in compatibility mode for Windows 8". There is no option for Windows Server 2012. Evidently the Windows 8 setting is what is needed for Windows Server 2012. Thanks again to everyone who provided ideas on how to attack this problem. I hope that others may benefit from what I have discovered. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, February 05, 2015 9:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation - More Info - Excel Add-In??? Hi Brad, When you go to the Excel Options screen you'll first see the list of Excel Add-In's. At the bottom of that screen is a drop-down list named 'Manage'. The 2nd item in that list is COM Add-In's. ACT! might be a COM Add-In. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, February 05, 2015 17:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation - More Info - Excel Add-In??? Dan and Bill, Thanks for the help, I really appreciate it. The code provided (below) is very similar to the code that I was using. Just for fun, I copied the code below into a new little test Access application. It works nicely on my PC (Office 2007), but it does not work on the machine with Access 2010 and Excel 2013. Earlier, the possibility of the problem being caused by an "Add-in" was suggested. I installed Excel 2013 a few days ago and did not intentionally do anything with any Add-in. However, when I ran tests this afternoon I fired up Excel directly (not from Access). When I did this, I saw a small pop-up that said "Loading Add-ins (1 of 1) ACT! Documents Tab Add-In" I now believe that this Add-In is the source of the problem. I have not worked much with Add-Ins. I found a page on Microsoft's Website that describes how to remove Add-Ins from Excel, but when I tried to do this, the Add-In was not visible. I plan to do more digging on how to remove this add-in. Thanks again for your help. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Wednesday, February 04, 2015 10:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation - More Info It's not me with the need Dan, probably Brad you are trying to help, no? I have never had trouble automating Excel. My code looks similar to yours I am sure. It's not rocket science really, however maybe Brad has stumbled across a problem with plug-ins or adding that don't like being automated. I am eager to see what he learns. On Feb 4, 2015 6:02 PM, "Dan Waters" wrote: > Hi Bill, > > This is what I use to open an excel file - maybe it will be helpful. > > Good Luck! > Dan > > -------------------------- > Public Sub OpenExcelFile(stgSpreadsheetFullPath As String) > > Dim objExcel As Object > Dim objWorkbook As Object > ' Dim objExcel As excel.Application '-- TEST > ' Dim objWorkbook As excel.Workbook '-- TEST > > Application.Echo SV.ApplicationEcho > > DoEvents > > '-- Open the Excel application > Set objExcel = CreateObject("Excel.Application") > > DoEvents > > '-- Make the application visible > objExcel.Visible = True > > DoEvents > > '-- Open the workbook in the spreadsheet file > Set objWorkbook = objExcel.Workbooks.Open(stgSpreadsheetFullPath) > > '-- Now that the file is open to the workbook close the object > variables > Set objWorkbook = Nothing > Set objExcel = Nothing > > Application.Echo True > > End Sub > ------------------------------- > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > Sent: Wednesday, February 04, 2015 16:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Controlling Excel Via Windows Automation > - More Info > > I'm stumped, however I am beginning to consider the possibility of > some plug-in or Addin to their Excel causing the issue. Would you feel > comfortable asking them to disable any plug-ins like Adobe, etc - and > temporarily uninstall any Add-ins (COM or otherwise) - and retry? > > On Wed, Feb 4, 2015 at 12:57 PM, Brad Marks > wrote: > > > All, > > > > Thanks for the help on this issue. > > > > Summary - Access application controlling Excel via Windows Automation. > > > > Late Binding is used > > > > Works properly on PC with Access 2007 and Excel 2007 > > > > Works properly on a second PC with Access 2013 (Runtime) and Excel > > 2013 > > > > > > Does not work on a machine with Access 2010 (Runtime) and Excel 2013. > > > > I actually have two small Access applications that I am using to > > debug this problem. > > > > One was working fine, the other was not working. > > > > The first Access application had "xlApp.Visible = False" and was > > working nicely. > > > > I changed this line to "xlApp.Visible = True" and now this > > application is also not working. I now see an error message that > > says "We're sorry, but Excel has run into an error that is > > preventing it from working > correctly. > > Excel will need to be closed as a result." > > > > So, it appears that the command "xlApp.Visible = True" is at the > > crux of the problem on the machine with Access 2010 (Runtime) and > > Excel 2013. > > > > I feel like I am getting closer, but still no cigar. > > > > Brad > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto: > > accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson > > Sent: Wednesday, February 04, 2015 10:36 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access Controlling Excel Via Windows > > Automation > > > > It works just fine for any app I have used, so long as late binding > > us used. > > > > I particular I have clients who ONLY have Office 2010 - and who > > recently bought Access 2013 standalone: and my Access App which > > automates their Excel (without a ref to Excel) works just fine. > > > > I would look elsewhere. > > > > You say there is no error message Brad. Have you had them look in > > Task Managet, maybe the instance is opening invisibly? In which case > > > > XLApp.Visible = True > > > > would resolve. > > On Feb 4, 2015 11:07 AM, "John W. Colby" wrote: > > > > > You are trying to automate a later version from an earlier version. > > > That is never a good idea, and I would not expect it to work. > > > > > > John W. Colby > > > > > > On 2/4/2015 10:14 AM, Brad Marks wrote: > > > > > >> All, > > >> > > >> I just ran a test of the Access application that creates an Excel > > >> file on a PC that has Access 2013 and Excel 2013. It worked > perfectly. > > >> > > >> However, when I run the same application on the machine that has > > >> Access > > >> 2010 Runtime and Excel 2013, the application gets hung up. There > > >> is no error message. > > >> > > >> I have rebooted this machine and this did not make any difference. > > >> > > >> I thought that Access 2010 Runtime would play nicely with Excel > > >> 2013, but for some reason this appears to not be the case. > > >> > > >> I am open to any ideas. > > >> > > >> Thanks, > > >> Brad > > >> > > >> > > >> -----Original Message----- > > >> From: accessd-bounces at databaseadvisors.com > > >> [mailto:accessd-bounces@ databaseadvisors.com] On Behalf Of Bill > > >> Benson > > >> Sent: Tuesday, February 03, 2015 4:02 PM > > >> To: Access Developers discussion and problem solving > > >> Subject: Re: [AccessD] Access Controlling Excel Via Windows > > >> Automation > > >> > > >> Did you (1) use late binding but nonetheless (2) left a reference > > >> to Excel? > > >> That would do it if the Excel you are using is not in the same > > >> location as the next user's. And it has happened to me. > > >> > > >> On Tue, Feb 3, 2015 at 4:14 PM, Brad Marks > > >> > > >> wrote: > > >> > > >> All, > > >>> > > >>> I don't have a lot of experience with this realm but I have had > > >>> some success using Access VBA to control Excel via Automation. > > >>> > > >>> I have one Access 2007 application that creates a number of reports. > > >>> Recently I have added new VBA code to also create an Excel file. > > >>> This works nicely on my development PC that has Access 2007 and > > >>> Excel > > 2007. > > >>> > > >>> However, I have run into some problems when trying to deploy > > >>> this application on a machine that has Access 2010 Runtime and > > >>> Excel 2013. > > >>> > > >>> All of the reports work properly via Access 2010 Runtime. > > >>> > > >>> However, when I try to run the VBA code that generates the Excel > > >>> file, the application hangs up. There are no error messages. > > >>> > > >>> I am using "Late Binding". > > >>> > > >>> I am not sure where to start looking. > > >>> > > >>> Should Access 2010 Runtime work properly in conjunction with > > >>> Excel > > 2013? > > >>> (both are 32 bit) > > >>> > > >>> Is anyone else using this combination? > > >>> > > >>> I have thought about upgrading Access Runtime from 2010 to 2013, > > >>> but I would prefer to not do this if I can resolve the current > problems. > > >>> > > >>> Thanks, > > >>> Brad > > >>> > > >>> -- > > >>> AccessD mailing list > > >>> AccessD at databaseadvisors.com > > >>> http://databaseadvisors.com/mailman/listinfo/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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 gustav at cactus.dk Fri Feb 6 10:08:20 2015 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 6 Feb 2015 16:08:20 +0000 Subject: [AccessD] Modern/Metro style message box and input box for Microsoft Access 2013 Message-ID: Hi all If you work with Access 2013 on Windows 8+ using full-size forms, you probably have been disturbed by the lousy native Message Box. If so, here is a solution which matches much better the design: http://rdsrc.us/LCNNPH I must admit it took a bit more than I had expected, even though the goal was to create nothing more than an exact match of the functionality of MsgBox without any "enhanced" features or other smart attempts *). It should be, simply, a direct drop-in to replace MsgBox in existing code via a simple find/replace without any recoding afterwards. When done, I found that I could just as well create a similar InputBox. The native is so wimpy, that you are reluctant to use it, even though it can be quite handy. *) Of course, it didn't hold. It was so easy to add a timeout feature, so I couldn't resist. It is controlled by the last, optional parameter so it won't break any existing code. /gustav PS: This time I haven't had Susan to enhance my writing so feel free to drop me a note if you have comments. From jbartow at winhaven.net Fri Feb 6 12:14:51 2015 From: jbartow at winhaven.net (John R Bartow) Date: Fri, 6 Feb 2015 12:14:51 -0600 Subject: [AccessD] I couldn't post In-Reply-To: <54D368FE.8030401@gmail.com> References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> <54D368FE.8030401@gmail.com> Message-ID: <025d01d04238$cd24b0c0$676e1240$@winhaven.net> This brings up a god point. Please check out all of our lists and subscribe to them :-) We have recently added a Microsoft Office discussion list. John B -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, February 05, 2015 6:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] I couldn't post That would be my fault. Only back a few days and already causing dissension in the ranks.. :( John W. Colby On 2/5/2015 6:49 AM, Jim Dettman wrote: > > Why oh why is all this being posted to the Access D list? > > If were going to have separate lists, post to the separate lists... > If your not because you think it will be of interest to everyone, then > let's get rid of the separate lists. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Lawrence > Sent: Thursday, February 05, 2015 03:25 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] I couldn't post > > Hi John: > > If you really want to dig around in the distros the following list > gives the top 287 contenders...not a completely extensive list but a > good start. I don't think I have played with more than a dozen though: > > http://distrowatch.com/dwres.php?resource=popularity > > I tend to make a list of commands acquired from the installation site > so if the command is ever needed again it easy to get or if it is used > repeatedly I just build a bash script and drop a short-cut on the > desktop. After a while you just memorize them. > > sudo apt-get remove --purge mysql-server mysql-client mysql-common > sudo apt-get autoremove sudo apt-get autoclean > > The above is pretty well standard for any debian distros...Ubuntu and Mint. > Debian is my favourite. There are only about half a dozen main Linux > and BSD distros. > > http://en.wikipedia.org/wiki/List_of_Linux_distributions > > The truth is that Microsoft Windows is probably the only major > non-Unix/Linux OS left and apparently they are flirting with the dark > side as well. ;-) > > Jim > > PS The first OS the Bill Gaits worked on was Xenix...a multi-user, > multi-tasking Unix like OS that could run on computers like 286s...for > some reason he then made a castrated version and called it DOS and > Windows has been trying to catch up ever since. ;-) > > > ----- Original Message ----- > From: "John W. Colby" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 3, 2015 8:34:46 PM > Subject: Re: [AccessD] I couldn't post > > Jim, > > >unless your willing to go down to the command prompt network issues > can be impossible to fix. > > I get that, and I understand dropping to the command window for that > kind of thing. But that is NOT a simple install or uninstall! That > is once in a blue moon gotta go to the command window. Go out to > watch YouTube videos of ANYTHING linux and observe what percentage of > time the person is clacking away in the command window. It is like I > am back in 1982. > > I'm not giving up! > > I expect that if you are just doing office stuff then yea, install it > and go. The mint installation itself went flawlessly. Actually USING > a browser or the office apps works just as you would expect (and as in > Windows) in the Gui. And at lleast in Mint, anything already in the > distro can just be installed through the gui. But holy crap, come > time to actually install anything else... > > Take MariaDB for example. I want to use that specifically, rather > than get started with MySQL and switch later. Unfortunately (for me) > it seems that MySQL is native to Ubuntu and Mint is a fork of Ubuntu. > So I immediately have to uninstall MySQL. Well... there is no (gui) > uninstaller. And the uninstall itself (the actual text that you type > in) is specific to the linux distro. And... of course... it is typing > in the command console. So it is off to Google to try to discover how > to uninstall something. Then... it is the same to install MariaDB. > "What version of linux are you using?" If this version then you have > to do this, but if that version you have to do that... and of course... > typing into the command console. > > Likewise with getting a VM running. Likewise with getting Wine. If > you happen to be lucky and it is already in the distro then it gets > easier (to install). Maybe / mostly. > > Get this, I was in a chat room asking questions about how to do this > stuff. The guy actually recommended that I get rid of mint and go > to... Now what kind of stupid response is that. Trash my perfectly > running install of a version of linux to move to some other (equally > frustrating) version of linux in the vain hope that one specific > application will be easier to install? > > And we all know why it is like this. Because Linux is so fragmented > that even though it is supposed to "all be the same", it isn't. > Nothing is the same, everything is slightly (or not so slightly) > different. I was watching a YouTube video the other day where the > speaker was showing a graph of the number of users of various > versions. There were perhaps > 15 or 20 different lines in this graph. And those are just the MAJOR > distros. It's a cluster...friggen mess. To be honest it reminds me > of school children trading baseball cards. "Ooooh have you seen..."? > "No but I'm gonna run right home and grab my usb stick and get that up > and play with it..." > > So I can see how you could get an entire office up in Linux, I got my > machine up in Mint in just an hour or so. And spent many MANY > subsequent hours trying (unsuccessfully so far) getting MariaDB and VM > hosting up and working. Once they are up and working, I fully expect > to have a gui that allows me to do my work in those programs. > > Furthermore I AM going to work in ucontrollers and they are all Linux > so I just have no choice but to move through this cluster...friggen > mess and learn enough to get a dev environment and cross compiler up. > You better believe however that there is a very narrow objective, > which is to get specific applications up in SOME (don't give a damn > which) version of Linux so I can actually get some work done. > > If anyone wants to join me in the nightmare, (misery LOVES company) I > joined the tech group and am trying to get some response over there > for playing with Raspberry Pi or BeagleBone Black. Go get one if you > haven't already and let's play. The BeagleBone Black in particular is > a way cool widget for automation stuff. I did Atmel controllers a few > years ago (no linux fortunately) and it was a ton-o-fun. > > By the way, I designed and built a debit card vending machine in 96 > when I lived in Mexico. It used a Z-80 single board computer and ran > a custom real time system with a C compiler to program it. It used a > bill acceptor (like in a coke machine) interfaced over RS-488 serial > to the controller and we then built a vend widget with a motor, a > metal ram, and a bunch of LED / detectors to allow me to control the vend cycle. > It kept all of the data in RAM on the SBC and talked (via RS232) to a > hand held computer that the operator would hook up to the machine to > read out the data about the bills in the machine, how many cards were > left etc. I did all of the electronics (really quite simple) as well > as wrote the vending machine software. > > That was the most fun I have ever been paid to have! > > :) > > John W. Colby > > On 2/3/2015 10:31 PM, Jim Lawrence wrote: >> You are obviously having the worse experiences with it. >> >> I tend to be lazy and use the terminal only when all else fails and >> mostly > for speed. I tend to find Windows too dumbed down and unless your > willing to go down to the command prompt network issues can be impossible to fix. >> I must relate a story of a client that I helped a couple (three) of >> years > ago. They had all Windows XP boxes but decided to experiment by > setting a dozen by upgrading to Linux (in this case Ubuntu), to save > money. It took only four hours, on a Saturday afternoon, to install a > dozen new system, connect to all the printer, the network, the > internet and install all the office software. A young lady there > (24-25), who knew basically nothing about computers, helped me with the install. >> I thought that I might be supporting them for years, one way of >> another, > but it was not so. She just picked the ball up and ran with it. I > understand the whole office (50 desktops) and all the servers are now > running Linux and everything runs flawlessly. So with no computer > system training or experience (thank God for Google), this young > person did all this without any help from me and she just loves it. > The truth is that she was young and didn't have to unlearn any bad habits. >> I have had no problem with Linux but back in the day, I was a >> certified > SCO Unix installer, so it was just like being back home again. This > does not mean that I do not like Windows; it is just that the moment > we step away from the desktop and move into the world of the internet, > its a Linux universe out there. >> Don't give up on Linux...it is hardly smarter than you are and I have > found it to be great fun as it has all the latest and greatest > technologies, first. As Satya Nadella, CEO of Microsoft say, "We love Linux." >> Jim >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Fri Feb 6 12:28:09 2015 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 6 Feb 2015 10:28:09 -0800 Subject: [AccessD] I couldn't post In-Reply-To: <025d01d04238$cd24b0c0$676e1240$@winhaven.net> References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> <54D368FE.8030401@gmail.com> <025d01d04238$cd24b0c0$676e1240$@winhaven.net> Message-ID: Is there a link for the other lists? On Fri, Feb 6, 2015 at 10:14 AM, John R Bartow wrote: > This brings up a god point. Please check out all of our lists and subscribe > to them :-) > > We have recently added a Microsoft Office discussion list. > > John B > From djkr at msn.com Fri Feb 6 13:06:58 2015 From: djkr at msn.com (DJK Robinson) Date: Fri, 6 Feb 2015 19:06:58 +0000 Subject: [AccessD] I couldn't post In-Reply-To: References: <54D1A166.1010903@gmail.com>, <632418048.116603078.1423124678084.JavaMail.root@cds018>, <54D368FE.8030401@gmail.com>, <025d01d04238$cd24b0c0$676e1240$@winhaven.net>, Message-ID: Yes, David. Go to the website (at the foot of this email), and under Mailing Lists, click on List Overview Page. Behold! HTHJohn > Date: Fri, 6 Feb 2015 10:28:09 -0800 > From: davidmcafee at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] I couldn't post > > Is there a link for the other lists? > > > > On Fri, Feb 6, 2015 at 10:14 AM, John R Bartow wrote: > > > This brings up a god point. Please check out all of our lists and subscribe > > to them :-) > > > > We have recently added a Microsoft Office discussion list. > > > > John B > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Fri Feb 6 14:11:12 2015 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 6 Feb 2015 12:11:12 -0800 Subject: [AccessD] I couldn't post In-Reply-To: References: <54D1A166.1010903@gmail.com> <632418048.116603078.1423124678084.JavaMail.root@cds018> <54D368FE.8030401@gmail.com> <025d01d04238$cd24b0c0$676e1240$@winhaven.net> Message-ID: I'm such a N00bat times ;) That, and the fact that Google/Gmail hide all of that. I see it now! :) On Fri, Feb 6, 2015 at 11:06 AM, DJK Robinson wrote: > Yes, David. Go to the website (at the foot of this email), and under > Mailing Lists, click on List Overview Page. Behold! > HTHJohn > > > Date: Fri, 6 Feb 2015 10:28:09 -0800 > > From: davidmcafee at gmail.com > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] I couldn't post > > > > Is there a link for the other lists? > > > > > > > > On Fri, Feb 6, 2015 at 10:14 AM, John R Bartow > wrote: > > > > > This brings up a god point. Please check out all of our lists and > subscribe > > > to them :-) > > > > > > We have recently added a Microsoft Office discussion list. > > > > > > John B > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 Feb 6 21:55:53 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 6 Feb 2015 20:55:53 -0700 (MST) Subject: [AccessD] I couldn't post In-Reply-To: Message-ID: <1895779525.118544069.1423281353666.JavaMail.root@cds018> Hi Jim: Now how can people work with MS Access if they can't get the OS of their choice working? ;-) Jim ----- Original Message ----- From: "Jim Dettman" To: "Access Developers discussion and problem solving" Sent: Thursday, February 5, 2015 3:49:15 AM Subject: Re: [AccessD] I couldn't post Why oh why is all this being posted to the Access D list? If were going to have separate lists, post to the separate lists... If your not because you think it will be of interest to everyone, then let's get rid of the separate lists. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 05, 2015 03:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] I couldn't post Hi John: If you really want to dig around in the distros the following list gives the top 287 contenders...not a completely extensive list but a good start. I don't think I have played with more than a dozen though: http://distrowatch.com/dwres.php?resource=popularity I tend to make a list of commands acquired from the installation site so if the command is ever needed again it easy to get or if it is used repeatedly I just build a bash script and drop a short-cut on the desktop. After a while you just memorize them. sudo apt-get remove --purge mysql-server mysql-client mysql-common sudo apt-get autoremove sudo apt-get autoclean The above is pretty well standard for any debian distros...Ubuntu and Mint. Debian is my favourite. There are only about half a dozen main Linux and BSD distros. http://en.wikipedia.org/wiki/List_of_Linux_distributions The truth is that Microsoft Windows is probably the only major non-Unix/Linux OS left and apparently they are flirting with the dark side as well. ;-) Jim PS The first OS the Bill Gaits worked on was Xenix...a multi-user, multi-tasking Unix like OS that could run on computers like 286s...for some reason he then made a castrated version and called it DOS and Windows has been trying to catch up ever since. ;-) ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 3, 2015 8:34:46 PM Subject: Re: [AccessD] I couldn't post Jim, >unless your willing to go down to the command prompt network issues can be impossible to fix. I get that, and I understand dropping to the command window for that kind of thing. But that is NOT a simple install or uninstall! That is once in a blue moon gotta go to the command window. Go out to watch YouTube videos of ANYTHING linux and observe what percentage of time the person is clacking away in the command window. It is like I am back in 1982. I'm not giving up! I expect that if you are just doing office stuff then yea, install it and go. The mint installation itself went flawlessly. Actually USING a browser or the office apps works just as you would expect (and as in Windows) in the Gui. And at lleast in Mint, anything already in the distro can just be installed through the gui. But holy crap, come time to actually install anything else... Take MariaDB for example. I want to use that specifically, rather than get started with MySQL and switch later. Unfortunately (for me) it seems that MySQL is native to Ubuntu and Mint is a fork of Ubuntu. So I immediately have to uninstall MySQL. Well... there is no (gui) uninstaller. And the uninstall itself (the actual text that you type in) is specific to the linux distro. And... of course... it is typing in the command console. So it is off to Google to try to discover how to uninstall something. Then... it is the same to install MariaDB. "What version of linux are you using?" If this version then you have to do this, but if that version you have to do that... and of course... typing into the command console. Likewise with getting a VM running. Likewise with getting Wine. If you happen to be lucky and it is already in the distro then it gets easier (to install). Maybe / mostly. Get this, I was in a chat room asking questions about how to do this stuff. The guy actually recommended that I get rid of mint and go to... Now what kind of stupid response is that. Trash my perfectly running install of a version of linux to move to some other (equally frustrating) version of linux in the vain hope that one specific application will be easier to install? And we all know why it is like this. Because Linux is so fragmented that even though it is supposed to "all be the same", it isn't. Nothing is the same, everything is slightly (or not so slightly) different. I was watching a YouTube video the other day where the speaker was showing a graph of the number of users of various versions. There were perhaps 15 or 20 different lines in this graph. And those are just the MAJOR distros. It's a cluster...friggen mess. To be honest it reminds me of school children trading baseball cards. "Ooooh have you seen..."? "No but I'm gonna run right home and grab my usb stick and get that up and play with it..." So I can see how you could get an entire office up in Linux, I got my machine up in Mint in just an hour or so. And spent many MANY subsequent hours trying (unsuccessfully so far) getting MariaDB and VM hosting up and working. Once they are up and working, I fully expect to have a gui that allows me to do my work in those programs. Furthermore I AM going to work in ucontrollers and they are all Linux so I just have no choice but to move through this cluster...friggen mess and learn enough to get a dev environment and cross compiler up. You better believe however that there is a very narrow objective, which is to get specific applications up in SOME (don't give a damn which) version of Linux so I can actually get some work done. If anyone wants to join me in the nightmare, (misery LOVES company) I joined the tech group and am trying to get some response over there for playing with Raspberry Pi or BeagleBone Black. Go get one if you haven't already and let's play. The BeagleBone Black in particular is a way cool widget for automation stuff. I did Atmel controllers a few years ago (no linux fortunately) and it was a ton-o-fun. By the way, I designed and built a debit card vending machine in 96 when I lived in Mexico. It used a Z-80 single board computer and ran a custom real time system with a C compiler to program it. It used a bill acceptor (like in a coke machine) interfaced over RS-488 serial to the controller and we then built a vend widget with a motor, a metal ram, and a bunch of LED / detectors to allow me to control the vend cycle. It kept all of the data in RAM on the SBC and talked (via RS232) to a hand held computer that the operator would hook up to the machine to read out the data about the bills in the machine, how many cards were left etc. I did all of the electronics (really quite simple) as well as wrote the vending machine software. That was the most fun I have ever been paid to have! :) John W. Colby On 2/3/2015 10:31 PM, Jim Lawrence wrote: > You are obviously having the worse experiences with it. > > I tend to be lazy and use the terminal only when all else fails and mostly for speed. I tend to find Windows too dumbed down and unless your willing to go down to the command prompt network issues can be impossible to fix. > > I must relate a story of a client that I helped a couple (three) of years ago. They had all Windows XP boxes but decided to experiment by setting a dozen by upgrading to Linux (in this case Ubuntu), to save money. It took only four hours, on a Saturday afternoon, to install a dozen new system, connect to all the printer, the network, the internet and install all the office software. A young lady there (24-25), who knew basically nothing about computers, helped me with the install. > > I thought that I might be supporting them for years, one way of another, but it was not so. She just picked the ball up and ran with it. I understand the whole office (50 desktops) and all the servers are now running Linux and everything runs flawlessly. So with no computer system training or experience (thank God for Google), this young person did all this without any help from me and she just loves it. The truth is that she was young and didn't have to unlearn any bad habits. > > I have had no problem with Linux but back in the day, I was a certified SCO Unix installer, so it was just like being back home again. This does not mean that I do not like Windows; it is just that the moment we step away from the desktop and move into the world of the internet, its a Linux universe out there. > > Don't give up on Linux...it is hardly smarter than you are and I have found it to be great fun as it has all the latest and greatest technologies, first. As Satya Nadella, CEO of Microsoft say, "We love Linux." > > Jim > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 ssharkins at gmail.com Sat Feb 7 06:26:11 2015 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 7 Feb 2015 07:26:11 -0500 Subject: [AccessD] Modern/Metro style message box and input box for Microsoft Access 2013 Message-ID: > > Gustav, you don't need me! :) > Susan H. > PS: This time I haven't had Susan to enhance my writing so feel free to > drop me a note if you have comments. > From accessd at shaw.ca Sat Feb 7 12:19:14 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 7 Feb 2015 11:19:14 -0700 (MST) Subject: [AccessD] Modern/Metro style message box and input box for Microsoft Access 2013 In-Reply-To: Message-ID: <297009976.118903894.1423333154582.JavaMail.root@cds018> Hi Gustav: Thanks for the info...definitely a piece of code to be stored away for future use. Jim ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Friday, 6 February, 2015 8:08:20 AM Subject: [AccessD] Modern/Metro style message box and input box for Microsoft Access 2013 Hi all If you work with Access 2013 on Windows 8+ using full-size forms, you probably have been disturbed by the lousy native Message Box. If so, here is a solution which matches much better the design: http://rdsrc.us/LCNNPH I must admit it took a bit more than I had expected, even though the goal was to create nothing more than an exact match of the functionality of MsgBox without any "enhanced" features or other smart attempts *). It should be, simply, a direct drop-in to replace MsgBox in existing code via a simple find/replace without any recoding afterwards. When done, I found that I could just as well create a similar InputBox. The native is so wimpy, that you are reluctant to use it, even though it can be quite handy. *) Of course, it didn't hold. It was so easy to add a timeout feature, so I couldn't resist. It is controlled by the last, optional parameter so it won't break any existing code. /gustav PS: This time I haven't had Susan to enhance my writing so feel free to drop me a note if you have comments. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From charlotte.foust at gmail.com Sat Feb 7 13:01:02 2015 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Sat, 7 Feb 2015 11:01:02 -0800 Subject: [AccessD] Modern/Metro style message box and input box for Microsoft Access 2013 In-Reply-To: References: Message-ID: Nice, Gustav. Thanks, Charlotte On Fri, Feb 6, 2015 at 8:08 AM, Gustav Brock wrote: > Hi all > > If you work with Access 2013 on Windows 8+ using full-size forms, you > probably have been disturbed by the lousy native Message Box. > If so, here is a solution which matches much better the design: > > http://rdsrc.us/LCNNPH > > I must admit it took a bit more than I had expected, even though the goal > was to create nothing more than an exact match of the functionality of > MsgBox without any "enhanced" features or other smart attempts *). It > should be, simply, a direct drop-in to replace MsgBox in existing code via > a simple find/replace without any recoding afterwards. > > When done, I found that I could just as well create a similar InputBox. > The native is so wimpy, that you are reluctant to use it, even though it > can be quite handy. > > *) Of course, it didn't hold. It was so easy to add a timeout feature, so > I couldn't resist. It is controlled by the last, optional parameter so it > won't break any existing code. > > /gustav > > PS: This time I haven't had Susan to enhance my writing so feel free to > drop me a note if you have comments. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Sat Feb 7 16:17:38 2015 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 7 Feb 2015 22:17:38 +0000 Subject: [AccessD] Modern/Metro style message box and input box for Microsoft Access 2013 In-Reply-To: References: Message-ID: <1423347457352.43032@cactus.dk> Hi Susan Thanks, though it was fun when we did those articles about Access topics together. But I do realize that there is no money in such work anymore, so the only benefit you can have is that someone else may get some benefit from reading it. It also counts, that the writing/editing process is quite simple at Expert-Exchange. You can write on an article in as many steps as you require until ready to click Publish. This way you can work on it in between real work. /gustav ________________________________________ Fra: accessd-bounces at databaseadvisors.com p? vegne af Susan Harkins Sendt: 7. februar 2015 13:26 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Modern/Metro style message box and input box for Microsoft Access 2013 > > Gustav, you don't need me! :) > Susan H. > PS: This time I haven't had Susan to enhance my writing so feel free to > drop me a note if you have comments. From bensonforums at gmail.com Mon Feb 9 11:26:19 2015 From: bensonforums at gmail.com (Bill Benson) Date: Mon, 9 Feb 2015 12:26:19 -0500 Subject: [AccessD] Change in the evaluation of IIF, or something else? In-Reply-To: <1416738515.103600.1423140227227.JavaMail.open-xchange@oxbaltgw13.schlund.de> References: <1416738515.103600.1423140227227.JavaMail.open-xchange@oxbaltgw13.schlund.de> Message-ID: Here is my imagined picture of this - and I may very well have it wrong. Not just not in Access VBA, but also with Excel VBA I have seen Cell - which normally has .Value2 as its default property (or maybe .Value) get instead handled as an object when adding to a collection or other situations. On Thu, Feb 5, 2015 at 7:43 AM, Andy Lacey wrote: > Gustav, you are, as ever, correct. > > It was always my belief that .Value is the default if no property > specified, and > that belief seems to hold good everywhere else. Why not here? > > Andy > > > > > > On 05 February 2015 at 12:25 Gustav Brock wrote: > > > > > > Hi Andy > > > > It probably tries to pull the object. > > Use the Value property: > > > > res = Weekday(rst!fld.Value, vbUseSystemDayOfWeek) > > > > /gustav > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > Sendt: 5. februar 2015 13:13 > > Til: Access Developers discussion and problem solving > > Emne: Re: [AccessD] Change in the evaluation of IIF, or something else? > > > > Well there's a thing. > > > > Weekday(Null) returns Null > > > > Weekday(var) where var is Null returns Null > > > > Weekday(rst!fld) where rst!fld is Null gives Invalid Use Of Null > > > > ???????? > > > > Andy > > > > > > > On 05 February 2015 at 11:33 Gustav Brock wrote: > > > > > > > > > Hi Andy > > > > > > How about: > > > > > > res = Weekday(var) > > > > > > or rather: > > > > > > res = Weekday(var, vbUseSystemDayOfWeek) > > > > > > Works in A2013. > > > > > > /gustav > > > > > > -----Oprindelig meddelelse----- > > > Fra: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Andy Lacey > > > Sendt: 5. februar 2015 12:08 > > > Til: Access Developers discussion and problem solving > > > Emne: [AccessD] Change in the evaluation of IIF, or something else? > > > > > > Hi folks > > > > > > I'm moving an ancient and very big db from A97 to A2010. I've just > > > been tripped up by a difference in behaviour when using IIF. Here's > > > the line of > > > code: > > > > > > res=IIF(IsNull(var),Null,Weekday(var)) > > > > > > In A97 this works fine and gives me Null. However, in A2010 this is > > > crashing with Invalid Use of Null. It must evaluate both true and > > > false element(s) of the IIF regardless. (Queries do not appear to do > this, > > > they work as before). > > > > > > Is this a general rule in A2010. Is there anything I can do to change > > > this behaviour? I know I can code round it in a number of ways but > > > finding all instances of this in a humungous db is a horrendous > > > prospect. I'm praying for a magic answer. > > > > > > Hang on, read on. > > > > > > After a bit more digging I'm not sure now where this will and will not > > > arise. > > > I just tried the following: > > > > > > res=iif(isnull(var),null,instr(var,"12345","1")) > > > > > > and, unlike the Weekday function, that crashes in A97 which blows out > > > of the water the idea that the False part of the IIF function wasn't > > > evaluated before. > > > So now I'm not sure if there is a rule by which all functions abide. > > > > > > Confused. > > > > > > Oh and pleeease don't tell me that I shouldn't have coded like that in > > > the first place. That wouldn't be helpful. > > > > > > Andy > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 jwelz at hotmail.com Mon Feb 9 11:29:48 2015 From: jwelz at hotmail.com (Jurgen Welz) Date: Mon, 9 Feb 2015 10:29:48 -0700 Subject: [AccessD] Insert Logo Graphic at Word Bookmark - Automation code In-Reply-To: References: <54D05025.5000307@gmail.com>, <632907702.115104621.1422996940600.JavaMail.root@cds018>, , , , <54D24356.7090203@gmail.com>, , , , , , , , Message-ID: I've been running some automation code that inserts a graphic logo on an invoicing document. The procedure is part of a very generic procedure that sets up a Word letterhead for one of several companies and includes a subsequent page letterhead (with a smaller logo) should the generated document exceed one page. It looks for a bookmark in the Word template with a specific name and if it finds it, selects and deletes it and then inserts a graphic based on a path looked up from a table with fields for Company/Division name and Path (after verifying the location of the logo file). This process has worked fine with Office 97, 2000, 2013, 2010 with Word templates of the appropriate version. With Word 2013, the first page logo ends up in one of two places. Either where it belongs or about 7.5 cm below. It is misplaced about 20% of the time. If I use the old version template (dot rather than dotx), it consistently places the logo correctly. It is only inconsistently messed up when the template is upgraded to the 2013 version and works as it always has for at least 15 years, with Word 2013 using the 2010 template file. One of the downsides is that Word offers to upgrade saved files when reopened and edited and the margins change and this seriously messes up some of the documents with jurats such as the statutory declaration documents which I keep saving as doc files (not docx) in code. simplified excerpt of code: Dim r As DAO.Recordset 'instantiation removed for simplicity Dim owdApp As Word.Application 'Instantiation removed - passed into procedure as a parameter Dim owdDoc As Word.Document 'Instantiation removed - passed to procedure as a parameter Dim owdShape As Word.Shape Dim strLogoPath As String strLogoPath = r("LogoPath") & "" If Len(strLogoPath) Then Set owdShape = owdDoc.Shapes.AddPicture(strLogoPath, _ LinkToFile:=False, SaveWithDocument:=True) With owdShape .LockAspectRatio = msoTrue .RelativeHorizontalPosition = wdRelativeHorizontalPositionPage .RelativeVerticalPosition = wdRelativeVerticalPositionPage .Height = owdApp.InchesToPoints(0.5) .WrapFormat.Type = wdWrapNone .Left = owdApp.InchesToPoints(0.5) .Top = owdApp.InchesToPoints(0.5) End With End If The system generates a few hundred different kinds of documents and in particular, this has been messing up my progress claim (invoice) and schedule of value documents that are produced together with required statutory declarations. I'm liking the decrease in size of the 2013 version documents but am finding that Microsoft has found new ways of messing me up. I hate the inconsistency I've been getting and can find no basis for it. I'd like to get to an all 2013 solution yet accomodate a range of logos of different aspect ratios and file types. I'm also looking for a decent free WMF converter. Ciao J?rgen Welz Edmonton, Alberta From jwcolby at gmail.com Mon Feb 9 22:25:36 2015 From: jwcolby at gmail.com (John W. Colby) Date: Mon, 09 Feb 2015 23:25:36 -0500 Subject: [AccessD] Wordnet dictionary database Message-ID: <54D98840.3010008@gmail.com> Have you ever run across something called WordNet dictionary? It can be obtained in a SQLite database format, which is a ROYAL pita to deal with outside of SQLite. The dictionary is "open" and if you just want to use the SQLite database it is fast and easy to start to use. I will likely do that with Linux, use it directly to program against using C++. In any event the dictionary is quite complex, dozens of tables, apparently fairly well normalized. And of course I really don't understand all the stuff that they are doing (yet) as language is not my strong suit. This started out as an attempt to simply get a list of words and their definitions (a simple dictionary). Well I got a dictionary but it isn't a simple one. Some guy was running benchmarks and came up with this task (I expect a pet project of his) to find all of the words that can be made from a given set of characters. He didn't discuss an algorithm, merely that he timed it with the original Raspberry Pi, and then again with the Raspberry Pi M2. However he didn't actually parallel it, simply ran the algorithm simultaneously 4 times on 4 separate threads, one on each core. That's cheating and not a true benchmark. I suspect however that he was using a brute force search of some sort. Which got me itching to do it right. I am trying to get my hands on several of the M2 Pis to build out a small cluster. So an algorithm like this, really parallized to run pieces of the thing on different threads (cores), and in fact sets of pieces on different physical machines (true parallelization) would be a cool thing to do. The algorithm basically implies discovering the characters in a word: parallelization = aaaeiilllnoprtz and sorting them as I did above. Then using a database or perhaps binary tree, search to find all of the words that have the same set of characters. One way would be to use a database where you simply order the characters as above, then add a new field to each word record to hold that reordered set, index and done. Another way is to build a parent table where you insert the ordered character set, obtaining a PK to insert as an FK in the word fieldtable If another word has the same set, find the ordered character set and use the same PK. Thus any given set of characters only goes in the parent table once, with a FK in the word table pointing back to the ordered character set. No doubt MUCH faster to use (and a better "database" solution), but more preprocessing to set it all up. Regardless of solution, to find matching words I have to sort the supplied characters, then look the sorted set up in the database, returning all matching words. Of course MY defined problem assumes an exact match. Something like a scrabble word finder would require returning all words which fit the character set, no doubt sorted longest to shortest. An entirely different problem! In fact a scrabble word finder would need to include weighting for character values as well. Now that would be an interesting programming problem! And no, I don't play scrabble. So any way, I am in the process of obtaining a database of words, and a BUNCH of otherwise useless (to me) stuff like synonyms etc. For my purpose I will just grab the words and start building out the character set table. This is interesting applying to the Raspberry Pi if for no other reason than the size of the database and the available memory in each processor. -- John W. Colby From newsgrps at dalyn.co.nz Tue Feb 10 13:05:50 2015 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 11 Feb 2015 08:05:50 +1300 Subject: [AccessD] Validation Rule and Hyphen Message-ID: <000a01d04564$96462550$c2d26ff0$@dalyn.co.nz> Hi Listers, I have a field for entering in a last name. I want to restrict the characters to letters, spaces, apostrophes, and hyphens. In the Validation Rule I have: Is Null Or Not Like "*[!a-z OR "" "" OR ""'"" OR ""-""]*" This works fine except when I enter a hyphen into the field it is rejected. I can enter letters, spaces, and apostrophes. All other characters are rejected. Why are hyphens also rejected? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From Lambert.Heenan at aig.com Tue Feb 10 15:00:23 2015 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Tue, 10 Feb 2015 21:00:23 +0000 Subject: [AccessD] Validation Rule and Hyphen In-Reply-To: <000a01d04564$96462550$c2d26ff0$@dalyn.co.nz> References: <000a01d04564$96462550$c2d26ff0$@dalyn.co.nz> Message-ID: My regular expressions are a bit rusty, but isn't the hyphen a character used to construct regular expressions? In which case to include it in your validation you would need to escape the hyphen. Now what's the escape character? Lambert? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, February 10, 2015 2:06 PM To: AccessD Subject: [AccessD] Validation Rule and Hyphen Hi Listers, I have a field for entering in a last name. I want to restrict the characters to letters, spaces, apostrophes, and hyphens. In the Validation Rule I have: Is Null Or Not Like "*[!a-z OR "" "" OR ""'"" OR ""-""]*" This works fine except when I enter a hyphen into the field it is rejected. I can enter letters, spaces, and apostrophes. All other characters are rejected. Why are hyphens also rejected? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Tue Feb 10 15:22:04 2015 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 11 Feb 2015 10:22:04 +1300 Subject: [AccessD] Validation Rule and Hyphen In-Reply-To: References: <000a01d04564$96462550$c2d26ff0$@dalyn.co.nz> Message-ID: <002101d04577$9e6a5d60$db3f1820$@dalyn.co.nz> Found a solution: Is Null Or Not Like "*[!a-z '-]*" Not sure why this works and the other format doesn't but there you go. Thanks for the prompter Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, 11 February 2015 10:00 a.m. To: Access Developers discussion and problem solving Subject: Re: [AccessD] Validation Rule and Hyphen My regular expressions are a bit rusty, but isn't the hyphen a character used to construct regular expressions? In which case to include it in your validation you would need to escape the hyphen. Now what's the escape character? Lambert? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, February 10, 2015 2:06 PM To: AccessD Subject: [AccessD] Validation Rule and Hyphen Hi Listers, I have a field for entering in a last name. I want to restrict the characters to letters, spaces, apostrophes, and hyphens. In the Validation Rule I have: Is Null Or Not Like "*[!a-z OR "" "" OR ""'"" OR ""-""]*" This works fine except when I enter a hyphen into the field it is rejected. I can enter letters, spaces, and apostrophes. All other characters are rejected. Why are hyphens also rejected? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From marksimms at verizon.net Tue Feb 10 21:51:02 2015 From: marksimms at verizon.net (Mark Simms) Date: Tue, 10 Feb 2015 22:51:02 -0500 Subject: [AccessD] Access 2013 In-Reply-To: <002101d04577$9e6a5d60$db3f1820$@dalyn.co.nz> References: <000a01d04564$96462550$c2d26ff0$@dalyn.co.nz> <002101d04577$9e6a5d60$db3f1820$@dalyn.co.nz> Message-ID: <002101d045ad$f4ba4050$de2ec0f0$@net> Guys - I've had the privilege to work with AC2013, 64 bit mode under Win 7. Bottomline: THERE ARE SIGNIFICANT BUGS. I am constantly "compacting and repairing". Everything becomes dysfunctional after multiple query edits. Incredibly, despite a powerful processor with 32 GB ram.... I don't see a great improvement in query performance !!! Get this: After you SAVE a query, it "disappears"...i.e. it is no longer "in-focus". This is blatant, poor QA by Microsoft. I am very skeptical this new CEO is going to improve things at this company. I think they are cooked. Too many poor technical managers = disaster. Ballmer just decimated this company....and reaped outrageous rewards..... this whole situation is looking like an "American Travesty". I think I'll start writing it, "American Travesty", to be the next great screenplay second only to "American Sniper"...A riveting movie.....wow. If you haven't seen it, you are NOT a patriot. If you care not to watch it.....Please move to Singapore...or China. I really think Ballmer needs to be exposed as the lame-duck CEO he was....little contribution, HUGE REWARDS. Is that what our country has become ? If so, we are "DONE". Bring on the Chinese....and welcome to communism. From darryl at whittleconsulting.com.au Tue Feb 10 22:05:00 2015 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Wed, 11 Feb 2015 04:05:00 +0000 Subject: [AccessD] Access 2013 In-Reply-To: <002101d045ad$f4ba4050$de2ec0f0$@net> References: <000a01d04564$96462550$c2d26ff0$@dalyn.co.nz> <002101d04577$9e6a5d60$db3f1820$@dalyn.co.nz> <002101d045ad$f4ba4050$de2ec0f0$@net> Message-ID: " Incredibly, despite a powerful processor with 32 GB ram.... I don't see a great improvement in query performance !!!" Heh... Yeah, we noticed the same thing a couple of years back with Access 2010 - that was the main reason we stuck with Office 32 bit. The 64 bit version of Office introduced some issues and bugs, with seemingly little performance gain. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Wednesday, 11 February 2015 2:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2013 Guys - I've had the privilege to work with AC2013, 64 bit mode under Win 7. Bottomline: THERE ARE SIGNIFICANT BUGS. I am constantly "compacting and repairing". Everything becomes dysfunctional after multiple query edits. Incredibly, despite a powerful processor with 32 GB ram.... I don't see a great improvement in query performance !!! Get this: After you SAVE a query, it "disappears"...i.e. it is no longer "in-focus". This is blatant, poor QA by Microsoft. I am very skeptical this new CEO is going to improve things at this company. I think they are cooked. Too many poor technical managers = disaster. Ballmer just decimated this company....and reaped outrageous rewards..... this whole situation is looking like an "American Travesty". I think I'll start writing it, "American Travesty", to be the next great screenplay second only to "American Sniper"...A riveting movie.....wow. If you haven't seen it, you are NOT a patriot. If you care not to watch it.....Please move to Singapore...or China. I really think Ballmer needs to be exposed as the lame-duck CEO he was....little contribution, HUGE REWARDS. Is that what our country has become ? If so, we are "DONE". Bring on the Chinese....and welcome to communism. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Feb 11 06:32:54 2015 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 11 Feb 2015 07:32:54 -0500 Subject: [AccessD] Access 2013 Message-ID: > > > Get this: > After you SAVE a query, it "disappears"...i.e. it is no longer "in-focus". > This is blatant, poor QA by Microsoft. > =================I absolutely hate this. I have to close and reopen every time! It's not just 2013 though -- happens in 2010 as well. Susan H. From jimdettman at verizon.net Wed Feb 11 07:14:26 2015 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 11 Feb 2015 08:14:26 -0500 Subject: [AccessD] Access 2013 In-Reply-To: References: <000a01d04564$96462550$c2d26ff0$@dalyn.co.nz> <002101d04577$9e6a5d60$db3f1820$@dalyn.co.nz> <002101d045ad$f4ba4050$de2ec0f0$@net> Message-ID: <74E73AA3791E4C878F6A15EE0F2CC96C@XPS> Nothing was changed in Access for 64 bit other than getting it to work in 64 bit. That BTW holds pretty much true for the entire Office line. 64 bit Office only gives you two things: 1. Very large spreadsheets in Excel 2. Very large projects in project. Outside of that, everything else is the same feature and performance wise. Because of that and that there is an overall lack of controls and drivers for 64 bit, Microsoft is still recommending 32 bit for the majority of users. Keep in mind that as far as Microsoft is concerned, the desktop is dead. It's all about the cloud and Office 365. I strongly doubt you'll see any further development of any of the desktop editions. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, February 10, 2015 11:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2013 " Incredibly, despite a powerful processor with 32 GB ram.... I don't see a great improvement in query performance !!!" Heh... Yeah, we noticed the same thing a couple of years back with Access 2010 - that was the main reason we stuck with Office 32 bit. The 64 bit version of Office introduced some issues and bugs, with seemingly little performance gain. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Wednesday, 11 February 2015 2:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2013 Guys - I've had the privilege to work with AC2013, 64 bit mode under Win 7. Bottomline: THERE ARE SIGNIFICANT BUGS. I am constantly "compacting and repairing". Everything becomes dysfunctional after multiple query edits. Incredibly, despite a powerful processor with 32 GB ram.... I don't see a great improvement in query performance !!! Get this: After you SAVE a query, it "disappears"...i.e. it is no longer "in-focus". This is blatant, poor QA by Microsoft. I am very skeptical this new CEO is going to improve things at this company. I think they are cooked. Too many poor technical managers = disaster. Ballmer just decimated this company....and reaped outrageous rewards..... this whole situation is looking like an "American Travesty". I think I'll start writing it, "American Travesty", to be the next great screenplay second only to "American Sniper"...A riveting movie.....wow. If you haven't seen it, you are NOT a patriot. If you care not to watch it.....Please move to Singapore...or China. I really think Ballmer needs to be exposed as the lame-duck CEO he was....little contribution, HUGE REWARDS. Is that what our country has become ? If so, we are "DONE". Bring on the Chinese....and welcome to communism. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 paul.hartland at googlemail.com Thu Feb 12 02:01:06 2015 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 12 Feb 2015 08:01:06 +0000 Subject: [AccessD] OT Visual basic Express 2012 - ComboBox Message-ID: To all, I have only really developed in MS Access and Visual Basic 6.0....I am on a learning curve at work where we have Visual Studio Express 2012 installed on my machine. I have the following code to populate a combobox : Dim adtRequestCodes As New SqlDataAdapter() Dim dsRequestCodes As New DataSet() Try Dim cmdPIPRequestCodes As New SqlCommand() cmdPIPRequestCodes.Connection = pADOPIPConn cmdPIPRequestCodes.CommandText = "phPIP_RequestCodes" cmdPIPRequestCodes.CommandType = CommandType.StoredProcedure adtRequestCodes.SelectCommand = cmdPIPRequestCodes adtRequestCodes.Fill(dsRequestCodes) adtRequestCodes.Dispose() cmdPIPRequestCodes.Dispose() Me.cmbRequestCodes.DataSource = dsRequestCodes.Tables(0) Me.cmbRequestCodes.ValueMember = "ReasonID" Me.cmbRequestCodes.DisplayMember = "ReasonCode" Catch ex As Exception MsgBox(ex.Message) End Try This works as it populates the ComboBox. However I have datatable called tblPIPRequests which I use to populate textboxes with data using something like ' Me.txtResolvedBy.DataBindings.Add("Text", tblPIPRequests, "ResolvedByName") '. But can't figure out how to have the combobox show the value of RequestCode from the datatable I.e. in the datatable 'tblPIPRequests' say the 'RequestCode' is 4 I need the combobox to show the 'ReasonCode' associated with RequestCode 4 which would be 'Incorrect Desription' It may even be that I have set this all up wrong for what I need, I have been googling here and there just to get where I am now. Any help GREATLY appreciated. -- Paul Hartland paul.hartland at googlemail.com From bensonforums at gmail.com Thu Feb 12 08:28:07 2015 From: bensonforums at gmail.com (Bill Benson) Date: Thu, 12 Feb 2015 09:28:07 -0500 Subject: [AccessD] OT Visual basic Express 2012 - ComboBox In-Reply-To: References: Message-ID: Paul, why not just set the bound columnwidths property such that the column you want has a width of 0? That is what I normally do if I take your meaning. On Thu, Feb 12, 2015 at 3:01 AM, Paul Hartland wrote: > To all, > > I have only really developed in MS Access and Visual Basic 6.0....I am on a > learning curve at work where we have Visual Studio Express 2012 installed > on my machine. I have the following code to populate a combobox : > > Dim adtRequestCodes As New SqlDataAdapter() > Dim dsRequestCodes As New DataSet() > Try > Dim cmdPIPRequestCodes As New SqlCommand() > cmdPIPRequestCodes.Connection = pADOPIPConn > cmdPIPRequestCodes.CommandText = "phPIP_RequestCodes" > cmdPIPRequestCodes.CommandType = CommandType.StoredProcedure > adtRequestCodes.SelectCommand = cmdPIPRequestCodes > adtRequestCodes.Fill(dsRequestCodes) > adtRequestCodes.Dispose() > cmdPIPRequestCodes.Dispose() > Me.cmbRequestCodes.DataSource = dsRequestCodes.Tables(0) > Me.cmbRequestCodes.ValueMember = "ReasonID" > Me.cmbRequestCodes.DisplayMember = "ReasonCode" > Catch ex As Exception > MsgBox(ex.Message) > End Try > > This works as it populates the ComboBox. However I have datatable called > tblPIPRequests which I use to populate textboxes with data using something > like ' > > Me.txtResolvedBy.DataBindings.Add("Text", tblPIPRequests, "ResolvedByName") > '. But can't figure out how to have the combobox show the value of > RequestCode from the datatable > > I.e. in the datatable 'tblPIPRequests' say the 'RequestCode' is 4 I need > the combobox to show the 'ReasonCode' associated with RequestCode 4 which > would be 'Incorrect Desription' > > > It may even be that I have set this all up wrong for what I need, I have > been googling here and there just to get where I am now. > > Any help GREATLY appreciated. > > -- > Paul Hartland > paul.hartland at googlemail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bensonforums at gmail.com Thu Feb 12 08:59:42 2015 From: bensonforums at gmail.com (Bill Benson) Date: Thu, 12 Feb 2015 09:59:42 -0500 Subject: [AccessD] Access 2013 In-Reply-To: <74E73AA3791E4C878F6A15EE0F2CC96C@XPS> References: <000a01d04564$96462550$c2d26ff0$@dalyn.co.nz> <002101d04577$9e6a5d60$db3f1820$@dalyn.co.nz> <002101d045ad$f4ba4050$de2ec0f0$@net> <74E73AA3791E4C878F6A15EE0F2CC96C@XPS> Message-ID: >> getting it to work in 64 bit. Dare one say, from the OP's perspective, they failed? On Wed, Feb 11, 2015 at 8:14 AM, Jim Dettman wrote: > > Nothing was changed in Access for 64 bit other than getting it to work in > 64 bit. > > That BTW holds pretty much true for the entire Office line. 64 bit Office > only gives you two things: > > 1. Very large spreadsheets in Excel > 2. Very large projects in project. > > Outside of that, everything else is the same feature and performance wise. > > Because of that and that there is an overall lack of controls and drivers > for 64 bit, Microsoft is still recommending 32 bit for the majority of > users. > > Keep in mind that as far as Microsoft is concerned, the desktop is dead. > It's all about the cloud and Office 365. I strongly doubt you'll see any > further development of any of the desktop editions. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins > Sent: Tuesday, February 10, 2015 11:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2013 > > " Incredibly, despite a powerful processor with 32 GB ram.... > I don't see a great improvement in query performance !!!" > > Heh... Yeah, we noticed the same thing a couple of years back with Access > 2010 - that was the main reason we stuck with Office 32 bit. > The 64 bit version of Office introduced some issues and bugs, with > seemingly > little performance gain. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Wednesday, 11 February 2015 2:51 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2013 > > Guys - > I've had the privilege to work with AC2013, 64 bit mode under Win 7. > > Bottomline: THERE ARE SIGNIFICANT BUGS. > > I am constantly "compacting and repairing". Everything becomes > dysfunctional > after multiple query edits. > > Incredibly, despite a powerful processor with 32 GB ram.... > I don't see a great improvement in query performance !!! > > Get this: > After you SAVE a query, it "disappears"...i.e. it is no longer "in-focus". > This is blatant, poor QA by Microsoft. > > I am very skeptical this new CEO is going to improve things at this > company. > I think they are cooked. Too many poor technical managers = disaster. > > Ballmer just decimated this company....and reaped outrageous rewards..... > this whole situation is looking like an "American Travesty". > > I think I'll start writing it, "American Travesty", to be the next great > screenplay second only to "American Sniper"...A riveting movie.....wow. If > you haven't seen it, you are NOT a patriot. > If you care not to watch it.....Please move to Singapore...or China. > > I really think Ballmer needs to be exposed as the lame-duck CEO he > was....little contribution, HUGE REWARDS. > Is that what our country has become ? > If so, we are "DONE". > Bring on the Chinese....and welcome to communism. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 paul.hartland at googlemail.com Thu Feb 12 09:41:29 2015 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 12 Feb 2015 15:41:29 +0000 Subject: [AccessD] OT Visual basic Express 2012 - ComboBox In-Reply-To: References: Message-ID: Not quite, the combo box works perfect drops down the whole selection list, if I select one I can show the ValueMember and DisplayMember and if I hard code something like Me.cmbRequestCodes.SelectedValue = 4 then the combo box displays the correct text 'Incorrect Description' I have a data table called 'tblPIPRequests' built as below: cmdPIPRequests.Connection = pADOPIPConn cmdPIPRequests.CommandText = "phPIP_SelectSingleRequest" cmdPIPRequests.CommandType = CommandType.StoredProcedure cmdPIPRequests.Parameters.AddWithValue("intRequestID", pLngPIPRequestID) dapPIPRequests.SelectCommand = cmdPIPRequests ' Create an instance of a DataSet, and retrieve data from the Requests table. dapPIPRequests.FillSchema(datPIPRequests, SchemaType.Source, "PIPRequests") dapPIPRequests.Fill(datPIPRequests, "PIPRequests") tblPIPRequests = datPIPRequests.Tables("PIPRequests") drCurrent = tblPIPRequests.Rows.Find(pLngPIPRequestID) Now one of the fields that the data table brings back is RequestCode and I need to assign this to the combo box to show the DisplayMember of the corresponding RequestCode. I have tried Me.cmbRequestCodes.SelectedValue = drCurrent!RequestCode Which works, but not sure if this is the correct way to do all this, as I say I am only just learning VB.net/Express. Any help on this is greatly appreciated. Also as you can see from the code where I create the data table 'tblPIPRequests' I use a stored procedure to bring back the results, the form will allow the user to edit one or two of the fields via bound text boxes, being bound like below: Me.txtResolvedBy.DataBindings.Add("Text", tblPIPRequests, "ResolvedByName") What I haven't been able to figure out is, once the user clicks the save button on the form, how to update the data table 'tblPIPRequests' and the SQL Datasource. Do I have to change from using a stored procedure to a basic select statment for the table ? (as I read somewhere that UPDATE, INSERT & DELETE's would automatically be created !!!!!) Thanks again in advance for any help on this. Paul On 12 February 2015 at 14:28, Bill Benson wrote: > Paul, why not just set the bound columnwidths property such that the column > you want has a width of 0? That is what I normally do if I take your > meaning. > > On Thu, Feb 12, 2015 at 3:01 AM, Paul Hartland < > paul.hartland at googlemail.com > > wrote: > > > To all, > > > > I have only really developed in MS Access and Visual Basic 6.0....I am > on a > > learning curve at work where we have Visual Studio Express 2012 installed > > on my machine. I have the following code to populate a combobox : > > > > Dim adtRequestCodes As New SqlDataAdapter() > > Dim dsRequestCodes As New DataSet() > > Try > > Dim cmdPIPRequestCodes As New SqlCommand() > > cmdPIPRequestCodes.Connection = pADOPIPConn > > cmdPIPRequestCodes.CommandText = "phPIP_RequestCodes" > > cmdPIPRequestCodes.CommandType = CommandType.StoredProcedure > > adtRequestCodes.SelectCommand = cmdPIPRequestCodes > > adtRequestCodes.Fill(dsRequestCodes) > > adtRequestCodes.Dispose() > > cmdPIPRequestCodes.Dispose() > > Me.cmbRequestCodes.DataSource = dsRequestCodes.Tables(0) > > Me.cmbRequestCodes.ValueMember = "ReasonID" > > Me.cmbRequestCodes.DisplayMember = "ReasonCode" > > Catch ex As Exception > > MsgBox(ex.Message) > > End Try > > > > This works as it populates the ComboBox. However I have datatable called > > tblPIPRequests which I use to populate textboxes with data using > something > > like ' > > > > Me.txtResolvedBy.DataBindings.Add("Text", tblPIPRequests, > "ResolvedByName") > > '. But can't figure out how to have the combobox show the value of > > RequestCode from the datatable > > > > I.e. in the datatable 'tblPIPRequests' say the 'RequestCode' is 4 I need > > the combobox to show the 'ReasonCode' associated with RequestCode 4 which > > would be 'Incorrect Desription' > > > > > > It may even be that I have set this all up wrong for what I need, I have > > been googling here and there just to get where I am now. > > > > Any help GREATLY appreciated. > > > > -- > > Paul Hartland > > paul.hartland at googlemail.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 > -- Paul Hartland paul.hartland at googlemail.com From charlotte.foust at gmail.com Thu Feb 12 12:34:55 2015 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Thu, 12 Feb 2015 10:34:55 -0800 Subject: [AccessD] OT Visual basic Express 2012 - ComboBox In-Reply-To: References: Message-ID: My VB.Net is rusty, but the way you're setting the selected value should be fine. I'm just not clear on why you need to set a combobox value as selected. Is it to show the user that they're on the right record? In any case, updating the SQL table is a separate step from updating the data table you've built. You generally use an SP that adds a record to the SQL table for that or updates one, because that's all you're doing, appending or updating a record in the back end. As to updating the data table, you've bound the controls to it, so you should be able to just update it, assuming it's a virtual table, and keep working with it. Charlotte On Thu, Feb 12, 2015 at 7:41 AM, Paul Hartland wrote: > Not quite, the combo box works perfect drops down the whole selection list, > if I select one I can show the ValueMember and DisplayMember and if I hard > code something like > > Me.cmbRequestCodes.SelectedValue = 4 then the combo box displays the > correct text 'Incorrect Description' > > I have a data table called 'tblPIPRequests' built as below: > > cmdPIPRequests.Connection = pADOPIPConn > cmdPIPRequests.CommandText = "phPIP_SelectSingleRequest" > cmdPIPRequests.CommandType = CommandType.StoredProcedure > > cmdPIPRequests.Parameters.AddWithValue("intRequestID", pLngPIPRequestID) > > dapPIPRequests.SelectCommand = cmdPIPRequests > > ' Create an instance of a DataSet, and retrieve data from the Requests > table. > dapPIPRequests.FillSchema(datPIPRequests, SchemaType.Source, "PIPRequests") > dapPIPRequests.Fill(datPIPRequests, "PIPRequests") > > tblPIPRequests = datPIPRequests.Tables("PIPRequests") > > drCurrent = tblPIPRequests.Rows.Find(pLngPIPRequestID) > > Now one of the fields that the data table brings back is RequestCode and I > need to assign this to the combo box to show the DisplayMember of the > corresponding RequestCode. I have tried > > Me.cmbRequestCodes.SelectedValue = drCurrent!RequestCode > > Which works, but not sure if this is the correct way to do all this, as I > say I am only just learning VB.net/Express. > > Any help on this is greatly appreciated. > > Also as you can see from the code where I create the data table > 'tblPIPRequests' I use a stored procedure to bring back the results, the > form will allow the user to edit one or two of the fields via bound text > boxes, being bound like below: > > Me.txtResolvedBy.DataBindings.Add("Text", tblPIPRequests, "ResolvedByName") > > What I haven't been able to figure out is, once the user clicks the save > button on the form, how to update the data table 'tblPIPRequests' and the > SQL Datasource. Do I have to change from using a stored procedure to a > basic select statment for the table ? (as I read somewhere that UPDATE, > INSERT & DELETE's would automatically be created !!!!!) > > Thanks again in advance for any help on this. > > Paul > > > On 12 February 2015 at 14:28, Bill Benson wrote: > > > Paul, why not just set the bound columnwidths property such that the > column > > you want has a width of 0? That is what I normally do if I take your > > meaning. > > > > On Thu, Feb 12, 2015 at 3:01 AM, Paul Hartland < > > paul.hartland at googlemail.com > > > wrote: > > > > > To all, > > > > > > I have only really developed in MS Access and Visual Basic 6.0....I am > > on a > > > learning curve at work where we have Visual Studio Express 2012 > installed > > > on my machine. I have the following code to populate a combobox : > > > > > > Dim adtRequestCodes As New SqlDataAdapter() > > > Dim dsRequestCodes As New DataSet() > > > Try > > > Dim cmdPIPRequestCodes As New SqlCommand() > > > cmdPIPRequestCodes.Connection = pADOPIPConn > > > cmdPIPRequestCodes.CommandText = "phPIP_RequestCodes" > > > cmdPIPRequestCodes.CommandType = > CommandType.StoredProcedure > > > adtRequestCodes.SelectCommand = cmdPIPRequestCodes > > > adtRequestCodes.Fill(dsRequestCodes) > > > adtRequestCodes.Dispose() > > > cmdPIPRequestCodes.Dispose() > > > Me.cmbRequestCodes.DataSource = dsRequestCodes.Tables(0) > > > Me.cmbRequestCodes.ValueMember = "ReasonID" > > > Me.cmbRequestCodes.DisplayMember = "ReasonCode" > > > Catch ex As Exception > > > MsgBox(ex.Message) > > > End Try > > > > > > This works as it populates the ComboBox. However I have datatable > called > > > tblPIPRequests which I use to populate textboxes with data using > > something > > > like ' > > > > > > Me.txtResolvedBy.DataBindings.Add("Text", tblPIPRequests, > > "ResolvedByName") > > > '. But can't figure out how to have the combobox show the value of > > > RequestCode from the datatable > > > > > > I.e. in the datatable 'tblPIPRequests' say the 'RequestCode' is 4 I > need > > > the combobox to show the 'ReasonCode' associated with RequestCode 4 > which > > > would be 'Incorrect Desription' > > > > > > > > > It may even be that I have set this all up wrong for what I need, I > have > > > been googling here and there just to get where I am now. > > > > > > Any help GREATLY appreciated. > > > > > > -- > > > Paul Hartland > > > paul.hartland at googlemail.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 > > > > > > -- > Paul Hartland > paul.hartland at googlemail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at googlemail.com Sun Feb 15 17:19:46 2015 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sun, 15 Feb 2015 23:19:46 +0000 Subject: [AccessD] Creating Applications With SQL & Access Message-ID: To all, I am starting to use Visual Studio Express and building some applications to sell, that will use Access (will be moved to SQL in the future) as the backend and some using SQL Server Express as the backend, now I am sure I looked into this some time ago and as long as I included certain files the machine the application was installed on wouldn't require SQL Server or MS Access to be installed on them....Is this true, or have I been dreaming. Many thanks in advance for any help on this. -- Paul Hartland paul.hartland at googlemail.com From paul.hartland at googlemail.com Sun Feb 15 17:21:14 2015 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sun, 15 Feb 2015 23:21:14 +0000 Subject: [AccessD] OT Visual basic Express 2012 - ComboBox In-Reply-To: References: Message-ID: Ah eventually sorted this thank you for all replies, think I go code blind sometimes lol On 12 February 2015 at 18:34, Charlotte Foust wrote: > My VB.Net is rusty, but the way you're setting the selected value should be > fine. I'm just not clear on why you need to set a combobox value as > selected. Is it to show the user that they're on the right record? > > In any case, updating the SQL table is a separate step from updating the > data table you've built. You generally use an SP that adds a record to the > SQL table for that or updates one, because that's all you're doing, > appending or updating a record in the back end. As to updating the data > table, you've bound the controls to it, so you should be able to just > update it, assuming it's a virtual table, and keep working with it. > > Charlotte > > On Thu, Feb 12, 2015 at 7:41 AM, Paul Hartland < > paul.hartland at googlemail.com > > wrote: > > > Not quite, the combo box works perfect drops down the whole selection > list, > > if I select one I can show the ValueMember and DisplayMember and if I > hard > > code something like > > > > Me.cmbRequestCodes.SelectedValue = 4 then the combo box displays the > > correct text 'Incorrect Description' > > > > I have a data table called 'tblPIPRequests' built as below: > > > > cmdPIPRequests.Connection = pADOPIPConn > > cmdPIPRequests.CommandText = "phPIP_SelectSingleRequest" > > cmdPIPRequests.CommandType = CommandType.StoredProcedure > > > > cmdPIPRequests.Parameters.AddWithValue("intRequestID", pLngPIPRequestID) > > > > dapPIPRequests.SelectCommand = cmdPIPRequests > > > > ' Create an instance of a DataSet, and retrieve data from the Requests > > table. > > dapPIPRequests.FillSchema(datPIPRequests, SchemaType.Source, > "PIPRequests") > > dapPIPRequests.Fill(datPIPRequests, "PIPRequests") > > > > tblPIPRequests = datPIPRequests.Tables("PIPRequests") > > > > drCurrent = tblPIPRequests.Rows.Find(pLngPIPRequestID) > > > > Now one of the fields that the data table brings back is RequestCode and > I > > need to assign this to the combo box to show the DisplayMember of the > > corresponding RequestCode. I have tried > > > > Me.cmbRequestCodes.SelectedValue = drCurrent!RequestCode > > > > Which works, but not sure if this is the correct way to do all this, as I > > say I am only just learning VB.net/Express. > > > > Any help on this is greatly appreciated. > > > > Also as you can see from the code where I create the data table > > 'tblPIPRequests' I use a stored procedure to bring back the results, the > > form will allow the user to edit one or two of the fields via bound text > > boxes, being bound like below: > > > > Me.txtResolvedBy.DataBindings.Add("Text", tblPIPRequests, > "ResolvedByName") > > > > What I haven't been able to figure out is, once the user clicks the save > > button on the form, how to update the data table 'tblPIPRequests' and the > > SQL Datasource. Do I have to change from using a stored procedure to a > > basic select statment for the table ? (as I read somewhere that UPDATE, > > INSERT & DELETE's would automatically be created !!!!!) > > > > Thanks again in advance for any help on this. > > > > Paul > > > > > > On 12 February 2015 at 14:28, Bill Benson > wrote: > > > > > Paul, why not just set the bound columnwidths property such that the > > column > > > you want has a width of 0? That is what I normally do if I take your > > > meaning. > > > > > > On Thu, Feb 12, 2015 at 3:01 AM, Paul Hartland < > > > paul.hartland at googlemail.com > > > > wrote: > > > > > > > To all, > > > > > > > > I have only really developed in MS Access and Visual Basic 6.0....I > am > > > on a > > > > learning curve at work where we have Visual Studio Express 2012 > > installed > > > > on my machine. I have the following code to populate a combobox : > > > > > > > > Dim adtRequestCodes As New SqlDataAdapter() > > > > Dim dsRequestCodes As New DataSet() > > > > Try > > > > Dim cmdPIPRequestCodes As New SqlCommand() > > > > cmdPIPRequestCodes.Connection = pADOPIPConn > > > > cmdPIPRequestCodes.CommandText = "phPIP_RequestCodes" > > > > cmdPIPRequestCodes.CommandType = > > CommandType.StoredProcedure > > > > adtRequestCodes.SelectCommand = cmdPIPRequestCodes > > > > adtRequestCodes.Fill(dsRequestCodes) > > > > adtRequestCodes.Dispose() > > > > cmdPIPRequestCodes.Dispose() > > > > Me.cmbRequestCodes.DataSource = dsRequestCodes.Tables(0) > > > > Me.cmbRequestCodes.ValueMember = "ReasonID" > > > > Me.cmbRequestCodes.DisplayMember = "ReasonCode" > > > > Catch ex As Exception > > > > MsgBox(ex.Message) > > > > End Try > > > > > > > > This works as it populates the ComboBox. However I have datatable > > called > > > > tblPIPRequests which I use to populate textboxes with data using > > > something > > > > like ' > > > > > > > > Me.txtResolvedBy.DataBindings.Add("Text", tblPIPRequests, > > > "ResolvedByName") > > > > '. But can't figure out how to have the combobox show the value of > > > > RequestCode from the datatable > > > > > > > > I.e. in the datatable 'tblPIPRequests' say the 'RequestCode' is 4 I > > need > > > > the combobox to show the 'ReasonCode' associated with RequestCode 4 > > which > > > > would be 'Incorrect Desription' > > > > > > > > > > > > It may even be that I have set this all up wrong for what I need, I > > have > > > > been googling here and there just to get where I am now. > > > > > > > > Any help GREATLY appreciated. > > > > > > > > -- > > > > Paul Hartland > > > > paul.hartland at googlemail.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 > > > > > > > > > > > -- > > Paul Hartland > > paul.hartland at googlemail.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 > -- Paul Hartland paul.hartland at googlemail.com From fuller.artful at gmail.com Sun Feb 15 22:22:04 2015 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 15 Feb 2015 23:22:04 -0500 Subject: [AccessD] Creating Applications With SQL & Access In-Reply-To: References: Message-ID: In the case of Access, since you're not using it as a front end, you don't need the run-time; the mdb or accdb is enough. In the case of SQL Express, you'll need to install that on each client's machine/server and there's a free version of SSMS, which may or may not be bundled with your download, depending on which one you choose. Your clients will typically have no need of SSMS, but you might want it there in case you have to troubleshoot or something. That aside, just include the SQL Express package you downloaded in your own setup package and that's it, you're done. Arthur On Sun, Feb 15, 2015 at 6:19 PM, Paul Hartland wrote: > To all, > > I am starting to use Visual Studio Express and building some applications > to sell, that will use Access (will be moved to SQL in the future) as the > backend and some using SQL Server Express as the backend, now I am sure I > looked into this some time ago and as long as I included certain files the > machine the application was installed on wouldn't require SQL Server or MS > Access to be installed on them....Is this true, or have I been dreaming. > > Many thanks in advance for any help on this. > > -- > Paul Hartland > paul.hartland at googlemail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Arthur From bensonforums at gmail.com Sun Feb 15 22:59:43 2015 From: bensonforums at gmail.com (Bill Benson) Date: Sun, 15 Feb 2015 23:59:43 -0500 Subject: [AccessD] Creating Applications With SQL & Access In-Reply-To: References: Message-ID: If you are building things to sell, you might want to have a look at the MS BizSpark program which will for no cost, allow you to download the fully loaded development tools from MS, that used to be a part of the paid subscriptions. It has been very nice and the people at BizSpark are quite courteous and helpful. On Sun, Feb 15, 2015 at 11:22 PM, Arthur Fuller wrote: > In the case of Access, since you're not using it as a front end, you don't > need the run-time; the mdb or accdb is enough. In the case of SQL Express, > you'll need to install that on each client's machine/server and there's a > free version of SSMS, which may or may not be bundled with your download, > depending on which one you choose. Your clients will typically have no need > of SSMS, but you might want it there in case you have to troubleshoot or > something. That aside, just include the SQL Express package you downloaded > in your own setup package and that's it, you're done. > > Arthur > > On Sun, Feb 15, 2015 at 6:19 PM, Paul Hartland < > paul.hartland at googlemail.com > > wrote: > > > To all, > > > > I am starting to use Visual Studio Express and building some applications > > to sell, that will use Access (will be moved to SQL in the future) as the > > backend and some using SQL Server Express as the backend, now I am sure I > > looked into this some time ago and as long as I included certain files > the > > machine the application was installed on wouldn't require SQL Server or > MS > > Access to be installed on them....Is this true, or have I been dreaming. > > > > Many thanks in advance for any help on this. > > > > -- > > Paul Hartland > > paul.hartland at googlemail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at googlemail.com Sun Feb 15 23:45:34 2015 From: paul.hartland at googlemail.com (Paul Hartland) Date: Mon, 16 Feb 2015 05:45:34 +0000 Subject: [AccessD] Creating Applications With SQL & Access In-Reply-To: References: Message-ID: Thank you for the replies, helpful as always, best list I ever encountered ;) On 16 February 2015 at 04:59, Bill Benson wrote: > If you are building things to sell, you might want to have a look at the MS > BizSpark program which will for no cost, allow you to download the fully > loaded development tools from MS, that used to be a part of the paid > subscriptions. It has been very nice and the people at BizSpark are quite > courteous and helpful. > > On Sun, Feb 15, 2015 at 11:22 PM, Arthur Fuller > wrote: > > > In the case of Access, since you're not using it as a front end, you > don't > > need the run-time; the mdb or accdb is enough. In the case of SQL > Express, > > you'll need to install that on each client's machine/server and there's a > > free version of SSMS, which may or may not be bundled with your download, > > depending on which one you choose. Your clients will typically have no > need > > of SSMS, but you might want it there in case you have to troubleshoot or > > something. That aside, just include the SQL Express package you > downloaded > > in your own setup package and that's it, you're done. > > > > Arthur > > > > On Sun, Feb 15, 2015 at 6:19 PM, Paul Hartland < > > paul.hartland at googlemail.com > > > wrote: > > > > > To all, > > > > > > I am starting to use Visual Studio Express and building some > applications > > > to sell, that will use Access (will be moved to SQL in the future) as > the > > > backend and some using SQL Server Express as the backend, now I am > sure I > > > looked into this some time ago and as long as I included certain files > > the > > > machine the application was installed on wouldn't require SQL Server or > > MS > > > Access to be installed on them....Is this true, or have I been > dreaming. > > > > > > Many thanks in advance for any help on this. > > > > > > -- > > > Paul Hartland > > > paul.hartland at googlemail.com > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > -- > > Arthur > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Paul Hartland paul.hartland at googlemail.com From df.waters at outlook.com Mon Feb 16 08:32:07 2015 From: df.waters at outlook.com (Dan Waters) Date: Mon, 16 Feb 2015 08:32:07 -0600 Subject: [AccessD] Creating Applications With SQL & Access In-Reply-To: References: Message-ID: Hi Paul, Another thing that might be helpful to you is the Visual Studio Community Edition. From what I can tell, this is essentially (or exactly?) the same as Visual Studio Professional (~ $500), except that for individual developers or organizations where there are 5 or fewer developers, the community edition is free. Download here: http://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx Also, there is database advisors list named dba-VB. This is the place for discussions on using Visual Studio, although many folks on Access-D use VS anyway. However, I do think that the name dba-VB might be outdated. We might consider adding a list named dba-VS (for Visual Studio) to cover all programming within that application. Have fun! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Sunday, February 15, 2015 23:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Creating Applications With SQL & Access Thank you for the replies, helpful as always, best list I ever encountered ;) On 16 February 2015 at 04:59, Bill Benson wrote: > If you are building things to sell, you might want to have a look at > the MS BizSpark program which will for no cost, allow you to download > the fully loaded development tools from MS, that used to be a part of > the paid subscriptions. It has been very nice and the people at > BizSpark are quite courteous and helpful. > From df.waters at outlook.com Mon Feb 16 08:35:58 2015 From: df.waters at outlook.com (Dan Waters) Date: Mon, 16 Feb 2015 08:35:58 -0600 Subject: [AccessD] Add New List for Visual Studio? Message-ID: Everyone: I'd like to suggest adding a new list. This would be named dba-VS, for Visual Studio. A lot of us are now programming using what is MS's primary development tool, and I think this warrants a specific list. Any thoughts? Thanks! Dan From rockysmolin at bchacc.com Mon Feb 16 08:40:43 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 16 Feb 2015 06:40:43 -0800 Subject: [AccessD] [dba-Tech] Add New List for Visual Studio? In-Reply-To: References: Message-ID: <727A17CF72A24B53B26045D8B5BC1851@HAL9007> I think that's a good idea. It's a very low-cost thing to test. If you're right about the demand, it will extend the usefulness of dba which needs in any event to evolve to respond to changing technology. Rocky -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, February 16, 2015 6:36 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; 'Discussion of Hardware and Software issues'; dba-vb at databaseadvisors.com; 'Discussion of Hardware and Software issues' Subject: [dba-Tech] Add New List for Visual Studio? Everyone: I'd like to suggest adding a new list. This would be named dba-VS, for Visual Studio. A lot of us are now programming using what is MS's primary development tool, and I think this warrants a specific list. Any thoughts? Thanks! Dan _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com From jeff.developer at gmail.com Mon Feb 16 09:10:44 2015 From: jeff.developer at gmail.com (Jeff) Date: Mon, 16 Feb 2015 09:10:44 -0600 Subject: [AccessD] [dba-Tech] Add New List for Visual Studio? In-Reply-To: References: Message-ID: <9A7896E4-1962-4C47-9FC5-76A8CF186E84@gmail.com> First of all, I want to state that I am not opposed to this idea, but I think we had discussed this before and decided to use the DBA-vb list for visual studio until/unless there was a need for a separate list? Sent from my iPhone > On Feb 16, 2015, at 8:35 AM, Dan Waters wrote: > > Everyone: > > > > I'd like to suggest adding a new list. This would be named dba-VS, for > Visual Studio. > > > > A lot of us are now programming using what is MS's primary development tool, > and I think this warrants a specific list. > > > > Any thoughts? > > > > Thanks! > > Dan > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Feb 16 10:16:35 2015 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 16 Feb 2015 11:16:35 -0500 Subject: [AccessD] Creating Applications With SQL & Access In-Reply-To: References: Message-ID: Bill, Thanks for the tip about BizSpark. I hadn't heard of it previously, and just signed up. Dan, I agree with your suggestion that the list name should change from dba-vb to dba-vs. Arthur From jamesbutton at blueyonder.co.uk Mon Feb 16 11:50:41 2015 From: jamesbutton at blueyonder.co.uk (James Button) Date: Mon, 16 Feb 2015 17:50:41 -0000 Subject: [AccessD] [dba-Tech] Add New List for Visual Studio? In-Reply-To: <727A17CF72A24B53B26045D8B5BC1851@HAL9007> References: <727A17CF72A24B53B26045D8B5BC1851@HAL9007> Message-ID: Maybe better to have the VisualStudio bit in plain - that way more people are likely to find it when looking for visual studio forums .. Then again, is the dba bit more or less relevant to a forum for visual studio developers. JimB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 16, 2015 2:41 PM To: 'Discussion of Hardware and Software issues'; 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: Re: [AccessD] [dba-Tech] Add New List for Visual Studio? I think that's a good idea. It's a very low-cost thing to test. If you're right about the demand, it will extend the usefulness of dba which needs in any event to evolve to respond to changing technology. Rocky -----Original Message----- From: dba-tech-bounces at databaseadvisors.com [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, February 16, 2015 6:36 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; 'Discussion of Hardware and Software issues'; dba-vb at databaseadvisors.com; 'Discussion of Hardware and Software issues' Subject: [dba-Tech] Add New List for Visual Studio? Everyone: I'd like to suggest adding a new list. This would be named dba-VS, for Visual Studio. A lot of us are now programming using what is MS's primary development tool, and I think this warrants a specific list. Any thoughts? Thanks! Dan _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at googlemail.com Mon Feb 16 12:37:14 2015 From: paul.hartland at googlemail.com (Paul Hartland) Date: Mon, 16 Feb 2015 18:37:14 +0000 Subject: [AccessD] Creating Applications With SQL & Access In-Reply-To: References: Message-ID: I never seem to get any replies from dba-VB, thought we had lost it, will have to give it another try :) On 16 February 2015 at 16:16, Arthur Fuller wrote: > Bill, > > Thanks for the tip about BizSpark. I hadn't heard of it previously, and > just signed up. > > Dan, > > I agree with your suggestion that the list name should change from dba-vb > to dba-vs. > > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Paul Hartland paul.hartland at googlemail.com From TSeptav at Uniserve.com Wed Feb 18 13:58:04 2015 From: TSeptav at Uniserve.com (Tony Septav) Date: Wed, 18 Feb 2015 13:58:04 -0600 Subject: [AccessD] Way way way off topic Message-ID: <201502181958.t1IJwEKs012337@databaseadvisors.com> Hey All Sorry but I thought this would give you a moment to not be so serious and have a good laugh. It is that time of year again when you start getting the darnest stuff coming throuugh your Email. In the the last 2 days here are couple that snuck through. Strange trick makes girls fuck you. Send Bulk Email World Wide For The Best Business Leads I just laughed and yes they have been deleted. Anyway hope it makes someone smile. Tony Septav Nanaimo, BC Canada From michael at mattysconsulting.com Wed Feb 18 15:19:13 2015 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 18 Feb 2015 16:19:13 -0500 Subject: [AccessD] Way way way off topic In-Reply-To: <201502181958.t1IJwEKs012337@databaseadvisors.com> References: <201502181958.t1IJwEKs012337@databaseadvisors.com> Message-ID: <004b01d04bc0$8f2bf0d0$ad83d270$@mattysconsulting.com> This isn't the OT list, Tony. You've fired people for mistakes like that. Maybe you need a vacation? Mike Mattys -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Wednesday, February 18, 2015 2:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Way way way off topic Hey All Sorry but I thought this would give you a moment to not be so serious and have a good laugh. It is that time of year again when you start getting the darnest stuff coming throuugh your Email. In the the last 2 days here are couple that snuck through. [--] ````````````````````````````` Send Bulk Email World Wide For The Best Business Leads I just laughed and yes they have been deleted. Anyway hope it makes someone smile. Tony Septav Nanaimo, BC Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Feb 18 15:38:01 2015 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 18 Feb 2015 15:38:01 -0600 Subject: [AccessD] Way way way off topic In-Reply-To: <201502181958.t1IJwEKs012337@databaseadvisors.com> References: <201502181958.t1IJwEKs012337@databaseadvisors.com> Message-ID: Watch the language please Tony. GK On Wed, Feb 18, 2015 at 1:58 PM, Tony Septav wrote: > Hey All > > Sorry but I thought this would give you a moment to not be so serious and > have a good laugh. It is that time of year again when you start getting the > darnest stuff coming throuugh your Email. In the the last 2 days here are > couple that snuck through. > > > > Strange trick makes girls ----- you. > > Send Bulk Email World Wide For The Best Business Leads > > > > I just laughed and yes they have been deleted. > > > > Anyway hope it makes someone smile. > > > > Tony Septav > > Nanaimo, BC > > Canada > > > > > > -- > 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 TSeptav at Uniserve.com Wed Feb 18 17:38:28 2015 From: TSeptav at Uniserve.com (Tony Septav) Date: Wed, 18 Feb 2015 17:38:28 -0600 Subject: [AccessD] Way way way off topic In-Reply-To: Message-ID: <201502182338.t1INcana012996@databaseadvisors.com> Hey Gary Not me, I do not like smuck language, but that is what I received. I am just as offended as you are. But just trying to make a point, nothing is private anymore. Who do these people think they are???? Tony Septav Nanaimo, BC Canada -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: February-18-15 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Way way way off topic Watch the language please Tony. GK On Wed, Feb 18, 2015 at 1:58 PM, Tony Septav wrote: > Hey All > > Sorry but I thought this would give you a moment to not be so serious and > have a good laugh. It is that time of year again when you start getting the > darnest stuff coming throuugh your Email. In the the last 2 days here are > couple that snuck through. > > > > Strange trick makes girls ----- you. > > Send Bulk Email World Wide For The Best Business Leads > > > > I just laughed and yes they have been deleted. > > > > Anyway hope it makes someone smile. > > > > Tony Septav > > Nanaimo, BC > > Canada > > > > > > -- > 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 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.5645 / Virus Database: 4284/9138 - Release Date: 02/18/15 From TSeptav at Uniserve.com Wed Feb 18 17:41:29 2015 From: TSeptav at Uniserve.com (Tony Septav) Date: Wed, 18 Feb 2015 17:41:29 -0600 Subject: [AccessD] Way way way off topic In-Reply-To: Message-ID: <201502182341.t1INfZpK013031@databaseadvisors.com> Hey Gary Sorry, sorry sorry. But it just bugs me. No more way way way off topics comments. Maybe in bad taste. Tony Septav Nanaimo, BC Canada -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: February-18-15 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Way way way off topic Watch the language please Tony. GK On Wed, Feb 18, 2015 at 1:58 PM, Tony Septav wrote: > Hey All > > Sorry but I thought this would give you a moment to not be so serious and > have a good laugh. It is that time of year again when you start getting the > darnest stuff coming throuugh your Email. In the the last 2 days here are > couple that snuck through. > > > > Strange trick makes girls ----- you. > > Send Bulk Email World Wide For The Best Business Leads > > > > I just laughed and yes they have been deleted. > > > > Anyway hope it makes someone smile. > > > > Tony Septav > > Nanaimo, BC > > Canada > > > > > > -- > 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 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.5645 / Virus Database: 4284/9138 - Release Date: 02/18/15 From TSeptav at Uniserve.com Wed Feb 18 17:55:34 2015 From: TSeptav at Uniserve.com (Tony Septav) Date: Wed, 18 Feb 2015 17:55:34 -0600 Subject: [AccessD] Way way way off topic In-Reply-To: <004b01d04bc0$8f2bf0d0$ad83d270$@mattysconsulting.com> Message-ID: <201502182355.t1INte7M013098@databaseadvisors.com> Hey Mattys A vacation???? What is that? Tony Septav Nanaimo, BC Canada -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: February-18-15 3:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Way way way off topic This isn't the OT list, Tony. You've fired people for mistakes like that. Maybe you need a vacation? Mike Mattys -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Wednesday, February 18, 2015 2:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Way way way off topic Hey All Sorry but I thought this would give you a moment to not be so serious and have a good laugh. It is that time of year again when you start getting the darnest stuff coming throuugh your Email. In the the last 2 days here are couple that snuck through. [--] ````````````````````````````` Send Bulk Email World Wide For The Best Business Leads I just laughed and yes they have been deleted. Anyway hope it makes someone smile. Tony Septav Nanaimo, BC 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 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.5645 / Virus Database: 4284/9138 - Release Date: 02/18/15 From jbartow at winhaven.net Wed Feb 18 23:07:21 2015 From: jbartow at winhaven.net (John R Bartow) Date: Wed, 18 Feb 2015 23:07:21 -0600 Subject: [AccessD] Way way way off topic In-Reply-To: <201502181958.t1IJwEKs012337@databaseadvisors.com> References: <201502181958.t1IJwEKs012337@databaseadvisors.com> Message-ID: <040b01d04c01$f116dcb0$d3449610$@winhaven.net> Tony, This is the most inappropriate posting I've ever seen on any of our lists. I've asked you to join DBA-OT if you want to post off topic things. Even there this would be deemed inappropriate. John B -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Wednesday, February 18, 2015 1:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Way way way off topic Hey All Sorry but I thought this would give you a moment to not be so serious and have a good laugh. It is that time of year again when you start getting the darnest stuff coming throuugh your Email. In the the last 2 days here are couple that snuck through. Strange trick makes girls fuck you. Send Bulk Email World Wide For The Best Business Leads I just laughed and yes they have been deleted. Anyway hope it makes someone smile. Tony Septav Nanaimo, BC Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Wed Feb 18 23:52:33 2015 From: jwcolby at gmail.com (John W. Colby) Date: Thu, 19 Feb 2015 00:52:33 -0500 Subject: [AccessD] Way way way off topic In-Reply-To: <040b01d04c01$f116dcb0$d3449610$@winhaven.net> References: <201502181958.t1IJwEKs012337@databaseadvisors.com> <040b01d04c01$f116dcb0$d3449610$@winhaven.net> Message-ID: <54E57A21.10701@gmail.com> OK, I'm gonna say that Tony has been publicly flogged, and IMHO it is time to put this to bed. Thanks, John W. Colby On 2/19/2015 12:07 AM, John R Bartow wrote: > Tony, > This is the most inappropriate posting I've ever seen on any of our lists. > I've asked you to join DBA-OT if you want to post off topic things. Even > there this would be deemed inappropriate. > > John B > > From jerbach.db at gmail.com Thu Feb 19 14:01:33 2015 From: jerbach.db at gmail.com (Janet Erbach) Date: Thu, 19 Feb 2015 14:01:33 -0600 Subject: [AccessD] Backend database corruption Message-ID: Hello! It's been years since I've addressed this group, so please be patient with me while I get back into the swing of this. I've been an Access developer for the last 15 years or so. Until recently I created straightforward apps used on a small group of hardwired networked computers that had 5 or 6 users in the app at the same time. Last year I took a job with a large manufacturing plant, and just deployed a very complex app that I co-wrote with one of the access-fluent production supervisors. It is supposed to run non-stop on 20+ machines, all with WIFI connections. It writes machine production data to a set of front-end tables; every 15 minutes the app checks to see if there is network connectivity - if there is, the front-end table data is posted to the back-end tables on the network, the front-end tables are emptied, and the loop begins again. The app worked pretty well when it was running on one or two machines. Now that it's up on 20 machines, the back end is corrupting multiple times during the day - which, of course, brings the whole show to a halt. The error log seems to indicate that loss of a network connection during the back-end write operation proceeds the corruption. I have two questions. Will hard wiring the network connection to these machines go a long way towards stopping the corruption? Is there anything else that could be contributing to this that I need to be aware of? Thank you for your help. Janet Erbach From ssharkins at gmail.com Thu Feb 19 14:31:10 2015 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 19 Feb 2015 15:31:10 -0500 Subject: [AccessD] Backend database corruption Message-ID: Janet; < http://www.techrepublic.com/blog/10-things/10-ways-to-prevent-access-database-corruption/ > Wifi connections are a known problem, but you know, I would've expected an improvement by now. Susan H. > Last year I took a job with a large manufacturing plant, and just deployed > a very complex app that I co-wrote with one of the access-fluent production > supervisors. It is supposed to run non-stop on 20+ machines, all with WIFI > connections. > From rockysmolin at bchacc.com Thu Feb 19 14:36:44 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 19 Feb 2015 12:36:44 -0800 Subject: [AccessD] Backend database corruption In-Reply-To: References: Message-ID: <7CED3285789A4512935097EAF594199B@HAL9007> I would think hardwiring would be a reasonable tactic at least to rule out corruption due to sketchy wireless transmission if not to actually solve the problem. Especially in a manufacturing environment where's there's liable to be lots of EMF with surges and pulses. The other suspect might be the wireless router. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Thursday, February 19, 2015 12:02 PM To: Database Advisors Subject: [AccessD] Backend database corruption Hello! It's been years since I've addressed this group, so please be patient with me while I get back into the swing of this. I've been an Access developer for the last 15 years or so. Until recently I created straightforward apps used on a small group of hardwired networked computers that had 5 or 6 users in the app at the same time. Last year I took a job with a large manufacturing plant, and just deployed a very complex app that I co-wrote with one of the access-fluent production supervisors. It is supposed to run non-stop on 20+ machines, all with WIFI connections. It writes machine production data to a set of front-end tables; every 15 minutes the app checks to see if there is network connectivity - if there is, the front-end table data is posted to the back-end tables on the network, the front-end tables are emptied, and the loop begins again. The app worked pretty well when it was running on one or two machines. Now that it's up on 20 machines, the back end is corrupting multiple times during the day - which, of course, brings the whole show to a halt. The error log seems to indicate that loss of a network connection during the back-end write operation proceeds the corruption. I have two questions. Will hard wiring the network connection to these machines go a long way towards stopping the corruption? Is there anything else that could be contributing to this that I need to be aware of? Thank you for your help. Janet Erbach -- 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 Feb 19 14:42:33 2015 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 20 Feb 2015 07:42:33 +1100 Subject: [AccessD] Backend database corruption In-Reply-To: References: Message-ID: <54E64AB9.8702.98FC708@stuart.lexacorp.com.pg> I've seen this before :( 20 machines with WIF connections all writing to the same BE is a recipe for problems. They all have to share the same limited bandwidth so you will get dropped packets if several are trying to send large amounts of data at the same time. (Especially if your "every 15 minutes" is by the clock and all 20 machines are trying to do the update at the same time!) Hard wiring with certainly make a huge difference. On 19 Feb 2015 at 14:01, Janet Erbach wrote: > Hello! > > It's been years since I've addressed this group, so please be patient > with me while I get back into the swing of this. > > I've been an Access developer for the last 15 years or so. Until > recently I created straightforward apps used on a small group of > hardwired networked computers that had 5 or 6 users in the app at the > same time. > > Last year I took a job with a large manufacturing plant, and just > deployed a very complex app that I co-wrote with one of the > access-fluent production supervisors. It is supposed to run non-stop > on 20+ machines, all with WIFI connections. It writes machine > production data to a set of front-end tables; every 15 minutes the > app checks to see if there is network connectivity - if there is, the > front-end table data is posted to the back-end tables on the network, > the front-end tables are emptied, and the loop begins again. > > The app worked pretty well when it was running on one or two machines. > Now that it's up on 20 machines, the back end is corrupting multiple > times during the day - which, of course, brings the whole show to a > halt. The error log seems to indicate that loss of a network > connection during the back-end write operation proceeds the > corruption. > > I have two questions. Will hard wiring the network connection to > these machines go a long way towards stopping the corruption? Is > there anything else that could be contributing to this that I need to > be aware of? > > Thank you for your help. > > Janet Erbach > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Feb 19 14:43:28 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 19 Feb 2015 12:43:28 -0800 Subject: [AccessD] Backend database corruption In-Reply-To: References: Message-ID: <73444C57954B410991647402403DA989@HAL9007> Maybe they haven't upgraded their wireless hardware for a long time. I've done a lot of manufacturing plants and seen a lot of really old hardware. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 19, 2015 12:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backend database corruption Janet; < http://www.techrepublic.com/blog/10-things/10-ways-to-prevent-access-databas e-corruption/ > Wifi connections are a known problem, but you know, I would've expected an improvement by now. Susan H. > Last year I took a job with a large manufacturing plant, and just > deployed a very complex app that I co-wrote with one of the > access-fluent production supervisors. It is supposed to run non-stop > on 20+ machines, all with WIFI connections. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at outlook.com Thu Feb 19 14:43:21 2015 From: df.waters at outlook.com (Dan Waters) Date: Thu, 19 Feb 2015 14:43:21 -0600 Subject: [AccessD] Backend database corruption In-Reply-To: References: Message-ID: Hi Janet, I use this mechanism to speed data updates - I think this is a fairly well-known technique among experienced developers. Call this procedure when your FE opens and pass in the word "Connect" to get started. Because this is a static database variable, the connection between the FE and BE stays open. __________________________________ Public Sub PipelineToMDBBE(stgConnectDisconnect As String) '-- Purpose: This will open/close a handle to the BE.mdb data file. _ Do not explicitly close this database variable. _ It is here to maintain a connection between FE and BE for better performance. Static dbsBE As DAO.Database Dim stgBEFullPath As String '-- Connect If stgConnectDisconnect = "Connect" Then stgBEFullPath = "FullPathToBEFile" Set dbsBE = DBEngine(0).OpenDatabase(stgBEFullPath) End If '-- Disconnect If stgConnectDisconnect = "Disconnect" Then On Error Resume Next dbsBE.Close Set dbsBE = Nothing On Error GoTo 0 End If End Sub ____________________________ Also, I would suggest spacing out the updates. If all the PC's are updating the BE tables at the same time, that could be an issue. Perhaps time the FE's so that they update a minute apart. And - this might be a good application to use a SQL Server BE. You can use SQL Express (free). You'll use ODBC table links instead of Access table links - everything else is the same. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Thursday, February 19, 2015 14:02 PM To: Database Advisors Subject: [AccessD] Backend database corruption Hello! It's been years since I've addressed this group, so please be patient with me while I get back into the swing of this. I've been an Access developer for the last 15 years or so. Until recently I created straightforward apps used on a small group of hardwired networked computers that had 5 or 6 users in the app at the same time. Last year I took a job with a large manufacturing plant, and just deployed a very complex app that I co-wrote with one of the access-fluent production supervisors. It is supposed to run non-stop on 20+ machines, all with WIFI connections. It writes machine production data to a set of front-end tables; every 15 minutes the app checks to see if there is network connectivity - if there is, the front-end table data is posted to the back-end tables on the network, the front-end tables are emptied, and the loop begins again. The app worked pretty well when it was running on one or two machines. Now that it's up on 20 machines, the back end is corrupting multiple times during the day - which, of course, brings the whole show to a halt. The error log seems to indicate that loss of a network connection during the back-end write operation proceeds the corruption. I have two questions. Will hard wiring the network connection to these machines go a long way towards stopping the corruption? Is there anything else that could be contributing to this that I need to be aware of? Thank you for your help. Janet Erbach -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Feb 19 14:46:04 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 19 Feb 2015 12:46:04 -0800 Subject: [AccessD] Backend database corruption In-Reply-To: <54E64AB9.8702.98FC708@stuart.lexacorp.com.pg> References: <54E64AB9.8702.98FC708@stuart.lexacorp.com.pg> Message-ID: Janet: Could the updates be staggered so they're not all going at once? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, February 19, 2015 12:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backend database corruption I've seen this before :( 20 machines with WIF connections all writing to the same BE is a recipe for problems. They all have to share the same limited bandwidth so you will get dropped packets if several are trying to send large amounts of data at the same time. (Especially if your "every 15 minutes" is by the clock and all 20 machines are trying to do the update at the same time!) Hard wiring with certainly make a huge difference. On 19 Feb 2015 at 14:01, Janet Erbach wrote: > Hello! > > It's been years since I've addressed this group, so please be patient > with me while I get back into the swing of this. > > I've been an Access developer for the last 15 years or so. Until > recently I created straightforward apps used on a small group of > hardwired networked computers that had 5 or 6 users in the app at the > same time. > > Last year I took a job with a large manufacturing plant, and just > deployed a very complex app that I co-wrote with one of the > access-fluent production supervisors. It is supposed to run non-stop > on 20+ machines, all with WIFI connections. It writes machine > production data to a set of front-end tables; every 15 minutes the > app checks to see if there is network connectivity - if there is, the > front-end table data is posted to the back-end tables on the network, > the front-end tables are emptied, and the loop begins again. > > The app worked pretty well when it was running on one or two machines. > Now that it's up on 20 machines, the back end is corrupting multiple > times during the day - which, of course, brings the whole show to a > halt. The error log seems to indicate that loss of a network > connection during the back-end write operation proceeds the > corruption. > > I have two questions. Will hard wiring the network connection to > these machines go a long way towards stopping the corruption? Is > there anything else that could be contributing to this that I need to > be aware of? > > Thank you for your help. > > Janet Erbach > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 ssharkins at gmail.com Thu Feb 19 14:48:11 2015 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 19 Feb 2015 15:48:11 -0500 Subject: [AccessD] Backend database corruption Message-ID: And just look at me -- still using at least one XP system -- okay, not hardware, but you're right. Well, yes, hardware, because that system's about 12 years old! Susan H. On Thu, Feb 19, 2015 at 3:43 PM, Rocky Smolin wrote: > Maybe they haven't upgraded their wireless hardware for a long time. I've > done a lot of manufacturing plants and seen a lot of really old hardware. > > R > > From jamesbutton at blueyonder.co.uk Thu Feb 19 14:50:35 2015 From: jamesbutton at blueyonder.co.uk (James Button) Date: Thu, 19 Feb 2015 20:50:35 -0000 Subject: [AccessD] Backend database corruption In-Reply-To: References: Message-ID: It seems to me, from the description posted that the primary concern should be the robustness of the transfer process Whatever process is implemented it should cope with loss of connection, And in my time as a systems tester I would have gone to substantial effort to generate failures in various combinations. So, while hard wiring connections may well, and should deal with excessive dropout, which can be caused by blockage of the (near) line-of-site of the transmitter receivers, (people walking by) or something as simple as a fan motor producing interference, a powered door, road traffic, or a fridge pump putting 'noise' onto the power supplies to devices. And - in a manufacturing environment there are lots of sources of interference to the electrical supplies and to the transmission signals. Certainly a starting point would be to hard-wire the connections. Then augment that with a logging facility recording the start and end times of each upload process to see if they are overlapping with the processing of each others data. With 20+ systems feeding the back end, is there a robust locking facility to ensure that only 1 set of data is 'imported' at any time, and that data is (pre)processed before the import or process facility starts on the next set of data. Another consideration is the locking structure within the database that is applicable to the apps data. In the past when dealing with probably similar needs I designed input to be flat files presented at the back end by a messaging facility - queue handling or auto-process of email attachments where the input handling facility created files with input timestamp details in the filenames. The alternative to that being to have the sending systems include their (possibly wrong timestamp) in the filename with their own unique device operator id and batch-sequence number That means that data batches can be uniquely identified and traced back, the batches of data will be processed in sequence generated by each source and can be re-processed in the same order against a restore of a backup instance of the database JimB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Thursday, February 19, 2015 8:02 PM To: Database Advisors Subject: [AccessD] Backend database corruption Hello! It's been years since I've addressed this group, so please be patient with me while I get back into the swing of this. I've been an Access developer for the last 15 years or so. Until recently I created straightforward apps used on a small group of hardwired networked computers that had 5 or 6 users in the app at the same time. Last year I took a job with a large manufacturing plant, and just deployed a very complex app that I co-wrote with one of the access-fluent production supervisors. It is supposed to run non-stop on 20+ machines, all with WIFI connections. It writes machine production data to a set of front-end tables; every 15 minutes the app checks to see if there is network connectivity - if there is, the front-end table data is posted to the back-end tables on the network, the front-end tables are emptied, and the loop begins again. The app worked pretty well when it was running on one or two machines. Now that it's up on 20 machines, the back end is corrupting multiple times during the day - which, of course, brings the whole show to a halt. The error log seems to indicate that loss of a network connection during the back-end write operation proceeds the corruption. I have two questions. Will hard wiring the network connection to these machines go a long way towards stopping the corruption? Is there anything else that could be contributing to this that I need to be aware of? Thank you for your help. Janet Erbach -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Thu Feb 19 15:06:03 2015 From: jwcolby at gmail.com (John W. Colby) Date: Thu, 19 Feb 2015 16:06:03 -0500 Subject: [AccessD] Backend database corruption In-Reply-To: References: Message-ID: <54E6503B.7050202@gmail.com> Loss of connection while writing to an Access DB is a known issue, never fixed, and probably unfixable. Don't use Wifi / WAN with an Access BE. The best option is to move the BE to a SQL Server BE. That will absolutely solve this issue. If you must continue to use Access as the BE, then write CSVs to a directory on the server and have an Access app RUNNING ON THE SERVER watch for these CSVs and import them into the table. At least if the write to the CSV file is interrupted, it does not corrupt the BE. John W. Colby On 2/19/2015 3:01 PM, Janet Erbach wrote: > Hello! > > It's been years since I've addressed this group, so please be patient with > me while I get back into the swing of this. > > I've been an Access developer for the last 15 years or so. Until recently > I created straightforward apps used on a small group of hardwired networked > computers that had 5 or 6 users in the app at the same time. > > Last year I took a job with a large manufacturing plant, and just deployed > a very complex app that I co-wrote with one of the access-fluent production > supervisors. It is supposed to run non-stop on 20+ machines, all with WIFI > connections. It writes machine production data to a set of front-end > tables; every 15 minutes the app checks to see if there is network > connectivity - if there is, the front-end table data is posted to the > back-end tables on the network, the front-end tables are emptied, and the > loop begins again. > > The app worked pretty well when it was running on one or two machines. Now > that it's up on 20 machines, the back end is corrupting multiple times > during the day - which, of course, brings the whole show to a halt. The > error log seems to indicate that loss of a network connection during the > back-end write operation proceeds the corruption. > > I have two questions. Will hard wiring the network connection to these > machines go a long way towards stopping the corruption? Is there anything > else that could be contributing to this that I need to be aware of? > > Thank you for your help. > > Janet Erbach From DMcGillivray at ctc.ca.gov Thu Feb 19 15:34:46 2015 From: DMcGillivray at ctc.ca.gov (McGillivray, Don) Date: Thu, 19 Feb 2015 21:34:46 +0000 Subject: [AccessD] Backend database corruption In-Reply-To: <54E6503B.7050202@gmail.com> References: <54E6503B.7050202@gmail.com> Message-ID: And if you go the CSV route, be sure that your app on the server has a means of determining when a CSV is complete and ready for import. Years ago I built a system that imported data into an Access BE from fixed-width text files produced by automated mail inserting machines. Each input file would contain tens of thousands of records, and I had to deal with the problem of a large file being "present" in the drop zone but possibly still being written to when detected. If I remember correctly, I dealt with it by capturing each file's size on either side of a brief interval. Files that were the same size on both sides of the pause were considered ready, and the others were left for the next import cycle. I had to experiment a bit to find the appropriate pause interval. There are probably smarter ways to do this, but it worked . . . -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, February 19, 2015 1:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backend database corruption Loss of connection while writing to an Access DB is a known issue, never fixed, and probably unfixable. Don't use Wifi / WAN with an Access BE. The best option is to move the BE to a SQL Server BE. That will absolutely solve this issue. If you must continue to use Access as the BE, then write CSVs to a directory on the server and have an Access app RUNNING ON THE SERVER watch for these CSVs and import them into the table. At least if the write to the CSV file is interrupted, it does not corrupt the BE. John W. Colby From darryl at whittleconsulting.com.au Thu Feb 19 16:25:00 2015 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Thu, 19 Feb 2015 22:25:00 +0000 Subject: [AccessD] Backend database corruption In-Reply-To: <54E6503B.7050202@gmail.com> References: <54E6503B.7050202@gmail.com> Message-ID: Yes. John is spot on. These would be my primary solutions to this issue as well. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, 20 February 2015 8:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backend database corruption Loss of connection while writing to an Access DB is a known issue, never fixed, and probably unfixable. Don't use Wifi / WAN with an Access BE. The best option is to move the BE to a SQL Server BE. That will absolutely solve this issue. If you must continue to use Access as the BE, then write CSVs to a directory on the server and have an Access app RUNNING ON THE SERVER watch for these CSVs and import them into the table. At least if the write to the CSV file is interrupted, it does not corrupt the BE. John W. Colby On 2/19/2015 3:01 PM, Janet Erbach wrote: > Hello! > > It's been years since I've addressed this group, so please be patient > with me while I get back into the swing of this. > > I've been an Access developer for the last 15 years or so. Until > recently I created straightforward apps used on a small group of > hardwired networked computers that had 5 or 6 users in the app at the same time. > > Last year I took a job with a large manufacturing plant, and just > deployed a very complex app that I co-wrote with one of the > access-fluent production supervisors. It is supposed to run non-stop > on 20+ machines, all with WIFI connections. It writes machine > production data to a set of front-end tables; every 15 minutes the > app checks to see if there is network connectivity - if there is, the > front-end table data is posted to the back-end tables on the network, > the front-end tables are emptied, and the loop begins again. > > The app worked pretty well when it was running on one or two machines. > Now that it's up on 20 machines, the back end is corrupting multiple > times during the day - which, of course, brings the whole show to a > halt. The error log seems to indicate that loss of a network > connection during the back-end write operation proceeds the corruption. > > I have two questions. Will hard wiring the network connection to > these machines go a long way towards stopping the corruption? Is > there anything else that could be contributing to this that I need to be aware of? > > Thank you for your help. > > Janet Erbach -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Thu Feb 19 19:08:05 2015 From: jwcolby at gmail.com (John W. Colby) Date: Thu, 19 Feb 2015 20:08:05 -0500 Subject: [AccessD] Backend database corruption In-Reply-To: References: <54E6503B.7050202@gmail.com> Message-ID: <54E688F5.3050601@gmail.com> Yes, if you do go the CSV rout (or other data file), do yourself a favor and perform a line count and checksum which are written into the file. Better still, just go to SQL Server. This is free, easy and way powerful, and will absolutely prevent the corruption issues. John W. Colby On 2/19/2015 4:34 PM, McGillivray, Don wrote: > And if you go the CSV route, be sure that your app on the server has a means of determining when a CSV is complete and ready for import. Years ago I built a system that imported data into an Access BE from fixed-width text files produced by automated mail inserting machines. Each input file would contain tens of thousands of records, and I had to deal with the problem of a large file being "present" in the drop zone but possibly still being written to when detected. If I remember correctly, I dealt with it by capturing each file's size on either side of a brief interval. Files that were the same size on both sides of the pause were considered ready, and the others were left for the next import cycle. I had to experiment a bit to find the appropriate pause interval. There are probably smarter ways to do this, but it worked . . . > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Thursday, February 19, 2015 1:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Backend database corruption > > Loss of connection while writing to an Access DB is a known issue, never fixed, and probably unfixable. > > Don't use Wifi / WAN with an Access BE. > > The best option is to move the BE to a SQL Server BE. That will absolutely solve this issue. If you must continue to use Access as the BE, then write CSVs to a directory on the server and have an Access app RUNNING ON THE SERVER watch for these CSVs and import them into the table. At least if the write to the CSV file is interrupted, it does not corrupt the BE. > > John W. Colby > > From ssharkins at gmail.com Thu Feb 19 19:17:33 2015 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 19 Feb 2015 20:17:33 -0500 Subject: [AccessD] Backend database corruption Message-ID: I was wondering if someone would recommend SQL Server Express. Janet it's free, and you're definitely up to the learning curve. Susan H. On Thu, Feb 19, 2015 at 8:08 PM, John W. Colby wrote: > Yes, if you do go the CSV rout (or other data file), do yourself a favor > and perform a line count and checksum which are written into the file. > > Better still, just go to SQL Server. This is free, easy and way powerful, > and will absolutely prevent the corruption issues. > > John W. Colby > > O From jamesbutton at blueyonder.co.uk Fri Feb 20 06:08:10 2015 From: jamesbutton at blueyonder.co.uk (James Button) Date: Fri, 20 Feb 2015 12:08:10 -0000 Subject: [AccessD] Backend database corruption In-Reply-To: References: Message-ID: I'll add a bit from some annoying experience - NTFS file system holds all sorts of 'stuff' on one aggregated heap - the MFT and that can become so large that it not only won't fit into the memory cache the OS allocates, but can also take an annoyingly long time to get the details of a folder, or even a single file. So do setup your processing to firstly not indicate to the processing facility that a file is there as the file is being written. Have the file created with a name that the creating facility uses, and then renamed to a name that the reading facility will be 'informed of' after that, and make sure the file is not deep into a folder structure, or on a partition that has many 10's, let alone 100's of thousands of files. FAT was so much simpler - all the names of files in a folder held in 1 'file' separated from other folder sets. JimB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, February 20, 2015 1:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backend database corruption I was wondering if someone would recommend SQL Server Express. Janet it's free, and you're definitely up to the learning curve. Susan H. On Thu, Feb 19, 2015 at 8:08 PM, John W. Colby wrote: > Yes, if you do go the CSV rout (or other data file), do yourself a favor > and perform a line count and checksum which are written into the file. > > Better still, just go to SQL Server. This is free, easy and way powerful, > and will absolutely prevent the corruption issues. > > John W. Colby > > O -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jerbach.db at gmail.com Fri Feb 20 13:01:24 2015 From: jerbach.db at gmail.com (Janet Erbach) Date: Fri, 20 Feb 2015 13:01:24 -0600 Subject: [AccessD] Backend database corruption In-Reply-To: References: <54E6503B.7050202@gmail.com> Message-ID: THANK YOU ALL for your responses - this is all very helpful. I'm going to push for hard wiring all of the connections as soon as possible; I also like the idea of logging when the write operations are happening to see how much overlapping traffic there is. I think the CSV approach is very interesting too, and will bring that up in a meeting next week along with presenting the SQL backend option. I think we would try the CSV approach first. It would be difficult to convert to a SQL backend, I think, on the 20 hours a week that they've alotted me...especially since more than half of that time is via remote connection. Again - thank you all. I am much relieved to have a few options to pursue! On Thu, Feb 19, 2015 at 4:25 PM, Darryl Collins < darryl at whittleconsulting.com.au> wrote: > Yes. John is spot on. These would be my primary solutions to this issue > as well. > > Cheers > Darryl. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Friday, 20 February 2015 8:06 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Backend database corruption > > Loss of connection while writing to an Access DB is a known issue, never > fixed, and probably unfixable. > > Don't use Wifi / WAN with an Access BE. > > The best option is to move the BE to a SQL Server BE. That will > absolutely solve this issue. If you must continue to use Access as the BE, > then write CSVs to a directory on the server and have an Access app RUNNING > ON THE SERVER watch for these CSVs and import them into the table. At > least if the write to the CSV file is interrupted, it does not corrupt the > BE. > > John W. Colby > > On 2/19/2015 3:01 PM, Janet Erbach wrote: > > Hello! > > > > It's been years since I've addressed this group, so please be patient > > with me while I get back into the swing of this. > > > > I've been an Access developer for the last 15 years or so. Until > > recently I created straightforward apps used on a small group of > > hardwired networked computers that had 5 or 6 users in the app at the > same time. > > > > Last year I took a job with a large manufacturing plant, and just > > deployed a very complex app that I co-wrote with one of the > > access-fluent production supervisors. It is supposed to run non-stop > > on 20+ machines, all with WIFI connections. It writes machine > > production data to a set of front-end tables; every 15 minutes the > > app checks to see if there is network connectivity - if there is, the > > front-end table data is posted to the back-end tables on the network, > > the front-end tables are emptied, and the loop begins again. > > > > The app worked pretty well when it was running on one or two machines. > > Now that it's up on 20 machines, the back end is corrupting multiple > > times during the day - which, of course, brings the whole show to a > > halt. The error log seems to indicate that loss of a network > > connection during the back-end write operation proceeds the corruption. > > > > I have two questions. Will hard wiring the network connection to > > these machines go a long way towards stopping the corruption? Is > > there anything else that could be contributing to this that I need to be > aware of? > > > > Thank you for your help. > > > > Janet Erbach > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 df.waters at outlook.com Fri Feb 20 13:38:15 2015 From: df.waters at outlook.com (Dan Waters) Date: Fri, 20 Feb 2015 13:38:15 -0600 Subject: [AccessD] Backend database corruption In-Reply-To: References: <54E6503B.7050202@gmail.com> Message-ID: Hi Janet, One more thing I was thinking of is to set up error trapping and recording in the FE apps in the procedures where the data transfer is happening. You can set up an procedure that looks for an unsent error and sends that to you by email so you get a timely notice of when an error happened, along with the error code and especially the description, and the specific PC's name. You can search on error descriptions to get a fuller meaning, and that can help prove/disprove an idea of what's going wrong. If this all happens on one or two problem PC's, you'll know! Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Friday, February 20, 2015 13:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backend database corruption THANK YOU ALL for your responses - this is all very helpful. I'm going to push for hard wiring all of the connections as soon as possible; I also like the idea of logging when the write operations are happening to see how much overlapping traffic there is. I think the CSV approach is very interesting too, and will bring that up in a meeting next week along with presenting the SQL backend option. I think we would try the CSV approach first. It would be difficult to convert to a SQL backend, I think, on the 20 hours a week that they've alotted me...especially since more than half of that time is via remote connection. Again - thank you all. I am much relieved to have a few options to pursue! On Thu, Feb 19, 2015 at 4:25 PM, Darryl Collins < darryl at whittleconsulting.com.au> wrote: > Yes. John is spot on. These would be my primary solutions to this > issue as well. > > Cheers > Darryl. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Friday, 20 February 2015 8:06 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Backend database corruption > > Loss of connection while writing to an Access DB is a known issue, > never fixed, and probably unfixable. > > Don't use Wifi / WAN with an Access BE. > > The best option is to move the BE to a SQL Server BE. That will > absolutely solve this issue. If you must continue to use Access as > the BE, then write CSVs to a directory on the server and have an > Access app RUNNING ON THE SERVER watch for these CSVs and import them > into the table. At least if the write to the CSV file is interrupted, > it does not corrupt the BE. > > John W. Colby > > On 2/19/2015 3:01 PM, Janet Erbach wrote: > > Hello! > > > > It's been years since I've addressed this group, so please be > > patient with me while I get back into the swing of this. > > > > I've been an Access developer for the last 15 years or so. Until > > recently I created straightforward apps used on a small group of > > hardwired networked computers that had 5 or 6 users in the app at > > the > same time. > > > > Last year I took a job with a large manufacturing plant, and just > > deployed a very complex app that I co-wrote with one of the > > access-fluent production supervisors. It is supposed to run > > non-stop on 20+ machines, all with WIFI connections. It writes > > machine production data to a set of front-end tables; every 15 > > minutes the app checks to see if there is network connectivity - if > > there is, the front-end table data is posted to the back-end tables > > on the network, the front-end tables are emptied, and the loop begins again. > > > > The app worked pretty well when it was running on one or two machines. > > Now that it's up on 20 machines, the back end is corrupting multiple > > times during the day - which, of course, brings the whole show to a > > halt. The error log seems to indicate that loss of a network > > connection during the back-end write operation proceeds the corruption. > > > > I have two questions. Will hard wiring the network connection to > > these machines go a long way towards stopping the corruption? Is > > there anything else that could be contributing to this that I need > > to be > aware of? > > > > Thank you for your help. > > > > Janet Erbach > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 accessd at shaw.ca Fri Feb 20 13:49:55 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 20 Feb 2015 12:49:55 -0700 (MST) Subject: [AccessD] Backend database corruption In-Reply-To: Message-ID: <137827448.4789128.1424461795923.JavaMail.root@shaw.ca> Hi Janet: Nice to hear from you...is this too late for comment? Assuming no, let me add to the discussion. Most people on this list have heard me preach on the topic more often that not. To start with, on any major applications, developed in Access, I for one, would and never used DAO data connection. As all of you pointed out it is just too unstable, especially in a heavy work environment. You can use ADO. The protocol is on all Windows from Win95 to Win8.x and I believe on Win10, but I haven't checked yet. It is rugged, fast and completely recoverable from. It matters not how large, distributed or complex the application is. If you want to learn more or want help just ask. Jim ----- Original Message ----- From: "Janet Erbach" To: "Access Developers discussion and problem solving" Sent: Friday, February 20, 2015 11:01:24 AM Subject: Re: [AccessD] Backend database corruption THANK YOU ALL for your responses - this is all very helpful. I'm going to push for hard wiring all of the connections as soon as possible; I also like the idea of logging when the write operations are happening to see how much overlapping traffic there is. I think the CSV approach is very interesting too, and will bring that up in a meeting next week along with presenting the SQL backend option. I think we would try the CSV approach first. It would be difficult to convert to a SQL backend, I think, on the 20 hours a week that they've alotted me...especially since more than half of that time is via remote connection. Again - thank you all. I am much relieved to have a few options to pursue! On Thu, Feb 19, 2015 at 4:25 PM, Darryl Collins < darryl at whittleconsulting.com.au> wrote: > Yes. John is spot on. These would be my primary solutions to this issue > as well. > > Cheers > Darryl. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Friday, 20 February 2015 8:06 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Backend database corruption > > Loss of connection while writing to an Access DB is a known issue, never > fixed, and probably unfixable. > > Don't use Wifi / WAN with an Access BE. > > The best option is to move the BE to a SQL Server BE. That will > absolutely solve this issue. If you must continue to use Access as the BE, > then write CSVs to a directory on the server and have an Access app RUNNING > ON THE SERVER watch for these CSVs and import them into the table. At > least if the write to the CSV file is interrupted, it does not corrupt the > BE. > > John W. Colby > > On 2/19/2015 3:01 PM, Janet Erbach wrote: > > Hello! > > > > It's been years since I've addressed this group, so please be patient > > with me while I get back into the swing of this. > > > > I've been an Access developer for the last 15 years or so. Until > > recently I created straightforward apps used on a small group of > > hardwired networked computers that had 5 or 6 users in the app at the > same time. > > > > Last year I took a job with a large manufacturing plant, and just > > deployed a very complex app that I co-wrote with one of the > > access-fluent production supervisors. It is supposed to run non-stop > > on 20+ machines, all with WIFI connections. It writes machine > > production data to a set of front-end tables; every 15 minutes the > > app checks to see if there is network connectivity - if there is, the > > front-end table data is posted to the back-end tables on the network, > > the front-end tables are emptied, and the loop begins again. > > > > The app worked pretty well when it was running on one or two machines. > > Now that it's up on 20 machines, the back end is corrupting multiple > > times during the day - which, of course, brings the whole show to a > > halt. The error log seems to indicate that loss of a network > > connection during the back-end write operation proceeds the corruption. > > > > I have two questions. Will hard wiring the network connection to > > these machines go a long way towards stopping the corruption? Is > > there anything else that could be contributing to this that I need to be > aware of? > > > > Thank you for your help. > > > > Janet Erbach > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jerbach.db at gmail.com Fri Feb 20 16:22:46 2015 From: jerbach.db at gmail.com (Janet Erbach) Date: Fri, 20 Feb 2015 16:22:46 -0600 Subject: [AccessD] Backend database corruption In-Reply-To: <137827448.4789128.1424461795923.JavaMail.root@shaw.ca> References: <137827448.4789128.1424461795923.JavaMail.root@shaw.ca> Message-ID: Jim - I would, indeed like to learn more. All of my connections are DAO... Thank you! On Fri, Feb 20, 2015 at 1:49 PM, Jim Lawrence wrote: > Hi Janet: > > Nice to hear from you...is this too late for comment? Assuming no, let me > add to the discussion. > > Most people on this list have heard me preach on the topic more often that > not. To start with, on any major applications, developed in Access, I for > one, would and never used DAO data connection. As all of you pointed out it > is just too unstable, especially in a heavy work environment. > > You can use ADO. The protocol is on all Windows from Win95 to Win8.x and I > believe on Win10, but I haven't checked yet. It is rugged, fast and > completely recoverable from. It matters not how large, distributed or > complex the application is. > > If you want to learn more or want help just ask. > > Jim > > ----- Original Message ----- > From: "Janet Erbach" > To: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com> > Sent: Friday, February 20, 2015 11:01:24 AM > Subject: Re: [AccessD] Backend database corruption > > THANK YOU ALL for your responses - this is all very helpful. I'm going to > push for hard wiring all of the connections as soon as possible; I also > like the idea of logging when the write operations are happening to see how > much overlapping traffic there is. > > I think the CSV approach is very interesting too, and will bring that up in > a meeting next week along with presenting the SQL backend option. I think > we would try the CSV approach first. It would be difficult to convert to a > SQL backend, I think, on the 20 hours a week that they've alotted > me...especially since more than half of that time is via remote connection. > > Again - thank you all. I am much relieved to have a few options to pursue! > > > > On Thu, Feb 19, 2015 at 4:25 PM, Darryl Collins < > darryl at whittleconsulting.com.au> wrote: > > > Yes. John is spot on. These would be my primary solutions to this issue > > as well. > > > > Cheers > > Darryl. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto: > > accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > > Sent: Friday, 20 February 2015 8:06 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Backend database corruption > > > > Loss of connection while writing to an Access DB is a known issue, never > > fixed, and probably unfixable. > > > > Don't use Wifi / WAN with an Access BE. > > > > The best option is to move the BE to a SQL Server BE. That will > > absolutely solve this issue. If you must continue to use Access as the > BE, > > then write CSVs to a directory on the server and have an Access app > RUNNING > > ON THE SERVER watch for these CSVs and import them into the table. At > > least if the write to the CSV file is interrupted, it does not corrupt > the > > BE. > > > > John W. Colby > > > > On 2/19/2015 3:01 PM, Janet Erbach wrote: > > > Hello! > > > > > > It's been years since I've addressed this group, so please be patient > > > with me while I get back into the swing of this. > > > > > > I've been an Access developer for the last 15 years or so. Until > > > recently I created straightforward apps used on a small group of > > > hardwired networked computers that had 5 or 6 users in the app at the > > same time. > > > > > > Last year I took a job with a large manufacturing plant, and just > > > deployed a very complex app that I co-wrote with one of the > > > access-fluent production supervisors. It is supposed to run non-stop > > > on 20+ machines, all with WIFI connections. It writes machine > > > production data to a set of front-end tables; every 15 minutes the > > > app checks to see if there is network connectivity - if there is, the > > > front-end table data is posted to the back-end tables on the network, > > > the front-end tables are emptied, and the loop begins again. > > > > > > The app worked pretty well when it was running on one or two machines. > > > Now that it's up on 20 machines, the back end is corrupting multiple > > > times during the day - which, of course, brings the whole show to a > > > halt. The error log seems to indicate that loss of a network > > > connection during the back-end write operation proceeds the corruption. > > > > > > I have two questions. Will hard wiring the network connection to > > > these machines go a long way towards stopping the corruption? Is > > > there anything else that could be contributing to this that I need to > be > > aware of? > > > > > > Thank you for your help. > > > > > > Janet Erbach > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 jerbach.db at gmail.com Fri Feb 20 16:24:20 2015 From: jerbach.db at gmail.com (Janet Erbach) Date: Fri, 20 Feb 2015 16:24:20 -0600 Subject: [AccessD] Backend database corruption In-Reply-To: References: <54E6503B.7050202@gmail.com> Message-ID: Dan - How do you look for an unsent error? I do have a pretty good error logging routine, but I may be missing something. My error logging does show connections dropping on a variety of machines - which is pretty common out on the shop floor. Janet On Fri, Feb 20, 2015 at 1:38 PM, Dan Waters wrote: > Hi Janet, > > One more thing I was thinking of is to set up error trapping and recording > in the FE apps in the procedures where the data transfer is happening. You > can set up an procedure that looks for an unsent error and sends that to > you > by email so you get a timely notice of when an error happened, along with > the error code and especially the description, and the specific PC's name. > You can search on error descriptions to get a fuller meaning, and that can > help prove/disprove an idea of what's going wrong. If this all happens on > one or two problem PC's, you'll know! > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach > Sent: Friday, February 20, 2015 13:01 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Backend database corruption > > THANK YOU ALL for your responses - this is all very helpful. I'm going to > push for hard wiring all of the connections as soon as possible; I also > like the idea of logging when the write operations are happening to see how > much overlapping traffic there is. > > I think the CSV approach is very interesting too, and will bring that up in > a meeting next week along with presenting the SQL backend option. I think > we would try the CSV approach first. It would be difficult to convert to a > SQL backend, I think, on the 20 hours a week that they've alotted > me...especially since more than half of that time is via remote connection. > > Again - thank you all. I am much relieved to have a few options to pursue! > > > > On Thu, Feb 19, 2015 at 4:25 PM, Darryl Collins < > darryl at whittleconsulting.com.au> wrote: > > > Yes. John is spot on. These would be my primary solutions to this > > issue as well. > > > > Cheers > > Darryl. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto: > > accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > > Sent: Friday, 20 February 2015 8:06 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Backend database corruption > > > > Loss of connection while writing to an Access DB is a known issue, > > never fixed, and probably unfixable. > > > > Don't use Wifi / WAN with an Access BE. > > > > The best option is to move the BE to a SQL Server BE. That will > > absolutely solve this issue. If you must continue to use Access as > > the BE, then write CSVs to a directory on the server and have an > > Access app RUNNING ON THE SERVER watch for these CSVs and import them > > into the table. At least if the write to the CSV file is interrupted, > > it does not corrupt the BE. > > > > John W. Colby > > > > On 2/19/2015 3:01 PM, Janet Erbach wrote: > > > Hello! > > > > > > It's been years since I've addressed this group, so please be > > > patient with me while I get back into the swing of this. > > > > > > I've been an Access developer for the last 15 years or so. Until > > > recently I created straightforward apps used on a small group of > > > hardwired networked computers that had 5 or 6 users in the app at > > > the > > same time. > > > > > > Last year I took a job with a large manufacturing plant, and just > > > deployed a very complex app that I co-wrote with one of the > > > access-fluent production supervisors. It is supposed to run > > > non-stop on 20+ machines, all with WIFI connections. It writes > > > machine production data to a set of front-end tables; every 15 > > > minutes the app checks to see if there is network connectivity - if > > > there is, the front-end table data is posted to the back-end tables > > > on the network, the front-end tables are emptied, and the loop begins > again. > > > > > > The app worked pretty well when it was running on one or two machines. > > > Now that it's up on 20 machines, the back end is corrupting multiple > > > times during the day - which, of course, brings the whole show to a > > > halt. The error log seems to indicate that loss of a network > > > connection during the back-end write operation proceeds the corruption. > > > > > > I have two questions. Will hard wiring the network connection to > > > these machines go a long way towards stopping the corruption? Is > > > there anything else that could be contributing to this that I need > > > to be > > aware of? > > > > > > Thank you for your help. > > > > > > Janet Erbach > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 jimdettman at verizon.net Fri Feb 20 16:41:00 2015 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 20 Feb 2015 17:41:00 -0500 Subject: [AccessD] Backend database corruption In-Reply-To: <137827448.4789128.1424461795923.JavaMail.root@shaw.ca> References: <137827448.4789128.1424461795923.JavaMail.root@shaw.ca> Message-ID: I would reply exactly the opposite: DAO is a far better choice when dealing with a JET based file. But even so, using ADO in this case will gain nothing; the problem stems from JET running on the client and touching the DB remotely. The problem is at a level lower that than the data access library. The other Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 20, 2015 02:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backend database corruption Hi Janet: Nice to hear from you...is this too late for comment? Assuming no, let me add to the discussion. Most people on this list have heard me preach on the topic more often that not. To start with, on any major applications, developed in Access, I for one, would and never used DAO data connection. As all of you pointed out it is just too unstable, especially in a heavy work environment. You can use ADO. The protocol is on all Windows from Win95 to Win8.x and I believe on Win10, but I haven't checked yet. It is rugged, fast and completely recoverable from. It matters not how large, distributed or complex the application is. If you want to learn more or want help just ask. Jim ----- Original Message ----- From: "Janet Erbach" To: "Access Developers discussion and problem solving" Sent: Friday, February 20, 2015 11:01:24 AM Subject: Re: [AccessD] Backend database corruption THANK YOU ALL for your responses - this is all very helpful. I'm going to push for hard wiring all of the connections as soon as possible; I also like the idea of logging when the write operations are happening to see how much overlapping traffic there is. I think the CSV approach is very interesting too, and will bring that up in a meeting next week along with presenting the SQL backend option. I think we would try the CSV approach first. It would be difficult to convert to a SQL backend, I think, on the 20 hours a week that they've alotted me...especially since more than half of that time is via remote connection. Again - thank you all. I am much relieved to have a few options to pursue! On Thu, Feb 19, 2015 at 4:25 PM, Darryl Collins < darryl at whittleconsulting.com.au> wrote: > Yes. John is spot on. These would be my primary solutions to this issue > as well. > > Cheers > Darryl. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Friday, 20 February 2015 8:06 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Backend database corruption > > Loss of connection while writing to an Access DB is a known issue, never > fixed, and probably unfixable. > > Don't use Wifi / WAN with an Access BE. > > The best option is to move the BE to a SQL Server BE. That will > absolutely solve this issue. If you must continue to use Access as the BE, > then write CSVs to a directory on the server and have an Access app RUNNING > ON THE SERVER watch for these CSVs and import them into the table. At > least if the write to the CSV file is interrupted, it does not corrupt the > BE. > > John W. Colby > > On 2/19/2015 3:01 PM, Janet Erbach wrote: > > Hello! > > > > It's been years since I've addressed this group, so please be patient > > with me while I get back into the swing of this. > > > > I've been an Access developer for the last 15 years or so. Until > > recently I created straightforward apps used on a small group of > > hardwired networked computers that had 5 or 6 users in the app at the > same time. > > > > Last year I took a job with a large manufacturing plant, and just > > deployed a very complex app that I co-wrote with one of the > > access-fluent production supervisors. It is supposed to run non-stop > > on 20+ machines, all with WIFI connections. It writes machine > > production data to a set of front-end tables; every 15 minutes the > > app checks to see if there is network connectivity - if there is, the > > front-end table data is posted to the back-end tables on the network, > > the front-end tables are emptied, and the loop begins again. > > > > The app worked pretty well when it was running on one or two machines. > > Now that it's up on 20 machines, the back end is corrupting multiple > > times during the day - which, of course, brings the whole show to a > > halt. The error log seems to indicate that loss of a network > > connection during the back-end write operation proceeds the corruption. > > > > I have two questions. Will hard wiring the network connection to > > these machines go a long way towards stopping the corruption? Is > > there anything else that could be contributing to this that I need to be > aware of? > > > > Thank you for your help. > > > > Janet Erbach > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 df.waters at outlook.com Fri Feb 20 16:46:49 2015 From: df.waters at outlook.com (Dan Waters) Date: Fri, 20 Feb 2015 16:46:49 -0600 Subject: [AccessD] Backend database corruption In-Reply-To: References: <54E6503B.7050202@gmail.com> Message-ID: Hi Janet, What I do is add a checkbox column (named ErrorSent) to the error log table. When the error is logged, that column is left = False. When the app starts up, a procedure will run looking for any rows where ErrorSent = False. You'll need an error log report which uses a query as it's recordsource. That query will only select any rows where ErrorSent = False. Send an email with that report attached. When that's done, set any unchecked ErrorSent columns = True. You could also set this to run immediately after the data transactions instead of on startup to be notified immediately. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Friday, February 20, 2015 16:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backend database corruption Dan - How do you look for an unsent error? I do have a pretty good error logging routine, but I may be missing something. My error logging does show connections dropping on a variety of machines - which is pretty common out on the shop floor. Janet On Fri, Feb 20, 2015 at 1:38 PM, Dan Waters wrote: > Hi Janet, > > One more thing I was thinking of is to set up error trapping and > recording in the FE apps in the procedures where the data transfer is > happening. You can set up an procedure that looks for an unsent error > and sends that to you by email so you get a timely notice of when an > error happened, along with the error code and especially the > description, and the specific PC's name. > You can search on error descriptions to get a fuller meaning, and that > can help prove/disprove an idea of what's going wrong. If this all > happens on one or two problem PC's, you'll know! > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet > Erbach > Sent: Friday, February 20, 2015 13:01 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Backend database corruption > > THANK YOU ALL for your responses - this is all very helpful. I'm > going to push for hard wiring all of the connections as soon as > possible; I also like the idea of logging when the write operations > are happening to see how much overlapping traffic there is. > > I think the CSV approach is very interesting too, and will bring that > up in a meeting next week along with presenting the SQL backend > option. I think we would try the CSV approach first. It would be > difficult to convert to a SQL backend, I think, on the 20 hours a week > that they've alotted me...especially since more than half of that time is via remote connection. > > Again - thank you all. I am much relieved to have a few options to pursue! > > > > On Thu, Feb 19, 2015 at 4:25 PM, Darryl Collins < > darryl at whittleconsulting.com.au> wrote: > > > Yes. John is spot on. These would be my primary solutions to this > > issue as well. > > > > Cheers > > Darryl. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto: > > accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > > Sent: Friday, 20 February 2015 8:06 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Backend database corruption > > > > Loss of connection while writing to an Access DB is a known issue, > > never fixed, and probably unfixable. > > > > Don't use Wifi / WAN with an Access BE. > > > > The best option is to move the BE to a SQL Server BE. That will > > absolutely solve this issue. If you must continue to use Access as > > the BE, then write CSVs to a directory on the server and have an > > Access app RUNNING ON THE SERVER watch for these CSVs and import > > them into the table. At least if the write to the CSV file is > > interrupted, it does not corrupt the BE. > > > > John W. Colby > > > > On 2/19/2015 3:01 PM, Janet Erbach wrote: > > > Hello! > > > > > > It's been years since I've addressed this group, so please be > > > patient with me while I get back into the swing of this. > > > > > > I've been an Access developer for the last 15 years or so. Until > > > recently I created straightforward apps used on a small group of > > > hardwired networked computers that had 5 or 6 users in the app at > > > the > > same time. > > > > > > Last year I took a job with a large manufacturing plant, and just > > > deployed a very complex app that I co-wrote with one of the > > > access-fluent production supervisors. It is supposed to run > > > non-stop on 20+ machines, all with WIFI connections. It writes > > > machine production data to a set of front-end tables; every 15 > > > minutes the app checks to see if there is network connectivity - > > > if there is, the front-end table data is posted to the back-end > > > tables on the network, the front-end tables are emptied, and the > > > loop begins > again. > > > > > > The app worked pretty well when it was running on one or two machines. > > > Now that it's up on 20 machines, the back end is corrupting > > > multiple times during the day - which, of course, brings the whole > > > show to a halt. The error log seems to indicate that loss of a > > > network connection during the back-end write operation proceeds the corruption. > > > > > > I have two questions. Will hard wiring the network connection to > > > these machines go a long way towards stopping the corruption? Is > > > there anything else that could be contributing to this that I need > > > to be > > aware of? > > > > > > Thank you for your help. > > > > > > Janet Erbach > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 fuller.artful at gmail.com Fri Feb 20 17:16:14 2015 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 20 Feb 2015 18:16:14 -0500 Subject: [AccessD] Backend database corruption In-Reply-To: References: <54E6503B.7050202@gmail.com> Message-ID: Janet, I'll repeat what someone wrote earlier in this thread: the best solution is to opt for a real database such as SQL Server Express or MySQL. Both are free. Both will solve the intermittent-connectivity problem. Both also provide stored procedures, which are ultimately the way to go; but you can take it in two steps: 1) Move all your named queries to the DBMS, as Views, and while you're at it, create Views to stand in for all your bound-forms' data sources. (It's a best practice in real databases never to permit direct access to tables; hence the Views, which are very easy to create.) 2) If and when time permits, look into replacing the Views with Stored Procedures. That will result in optimal performance and stability, but again there's no pressing rush on that conversion. Also, bear in mind that Access Queries that use Group By and/or Order By are performed on the client machine, whereas SQL Views are performed on the server and the final results are sent to the client. That can result in a significant increase in performance. Arthur ? From stuart at lexacorp.com.pg Fri Feb 20 17:28:00 2015 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 21 Feb 2015 10:28:00 +1100 Subject: [AccessD] Backend database corruption In-Reply-To: <54E6503B.7050202@gmail.com> References: , <54E6503B.7050202@gmail.com> Message-ID: <54E7C300.9201.F4DA1BB@stuart.lexacorp.com.pg> That's the way I'd do it too. -- Stuart On 19 Feb 2015 at 16:06, John W. Colby wrote: > If you must continue to use Access as > the BE, then write CSVs to a directory on the server and have an > Access app RUNNING ON THE SERVER watch for these CSVs and import them > into the table. At least if the write to the CSV file is interrupted, > it does not corrupt the BE. > > John W. Colby > From stuart at lexacorp.com.pg Fri Feb 20 17:33:47 2015 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 21 Feb 2015 10:33:47 +1100 Subject: [AccessD] Backend database corruption In-Reply-To: References: , <54E6503B.7050202@gmail.com>, Message-ID: <54E7C45B.27169.F52EE35@stuart.lexacorp.com.pg> Some other methods. 1. Write a small "guard file" before you start the upload and delete it once the upload is complete. Could be just an empty file with an appropriate file name to identify the file being uploaded. Don't process an upload if its "guard file" exists 2. Try to open the file for exclusive access from you import routine. You shouldn't be able to while the file is still open and being written to. 3. Write the file to a temporary file name and rename it using a standard convention once fully written. Only process files with an appropriate file name. -- Stuart On 19 Feb 2015 at 21:34, McGillivray, Don wrote: > And if you go the CSV route, be sure that your app on the server has a > means of determining when a CSV is complete and ready for import. > Years ago I built a system that imported data into an Access BE from > fixed-width text files produced by automated mail inserting machines. > Each input file would contain tens of thousands of records, and I had > to deal with the problem of a large file being "present" in the drop > zone but possibly still being written to when detected. If I remember > correctly, I dealt with it by capturing each file's size on either > side of a brief interval. Files that were the same size on both sides > of the pause were considered ready, and the others were left for the > next import cycle. I had to experiment a bit to find the appropriate > pause interval. There are probably smarter ways to do this, but it > worked . . . > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby Sent: Thursday, February 19, 2015 1:06 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Backend database > corruption > > Loss of connection while writing to an Access DB is a known issue, > never fixed, and probably unfixable. > > Don't use Wifi / WAN with an Access BE. > > The best option is to move the BE to a SQL Server BE. That will > absolutely solve this issue. If you must continue to use Access as > the BE, then write CSVs to a directory on the server and have an > Access app RUNNING ON THE SERVER watch for these CSVs and import them > into the table. At least if the write to the CSV file is interrupted, > it does not corrupt the BE. > > John W. Colby > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From TSeptav at Uniserve.com Fri Feb 20 23:06:28 2015 From: TSeptav at Uniserve.com (Tony Septav) Date: Fri, 20 Feb 2015 23:06:28 -0600 Subject: [AccessD] ACCESS DB Message-ID: <201502210506.t1L56fXD020930@databaseadvisors.com> Hey All I have been on the original and this current list for 23 years. But things have changed. You are a remarkable and mind numbing group of individuals. I am leaving with no regrets and thank you for the memories. HAPPY TRAILS to all of you. Gosh now I just have to figure out with thefew neurons left in this old fart's brain how to unsubscribe. TS From tinanfields at torchlake.com Sat Feb 21 08:45:15 2015 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 21 Feb 2015 09:45:15 -0500 Subject: [AccessD] Backend database corruption In-Reply-To: <54E6503B.7050202@gmail.com> References: <54E6503B.7050202@gmail.com> Message-ID: <54E899FB.6010609@torchlake.com> Absolutely - loss of connection while writing - go boom. Also, transmitting data between different OSs. That experience happened here a good ten years or more ago - Win 98 and Win XP and Win 2K machines sharing a database. Different kinds of NICs (at least one doing a self-check periodically, breaking connection for the self-check), different Oss, and the Access databases being used simply got fried. At the playhouse, it was one database. At a publishing house, it was five databases before the issue got figured out. TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/19/2015 4:06 PM, John W. Colby wrote: > Loss of connection while writing to an Access DB is a known issue, > never fixed, and probably unfixable. > > Don't use Wifi / WAN with an Access BE. > > The best option is to move the BE to a SQL Server BE. That will > absolutely solve this issue. If you must continue to use Access as > the BE, then write CSVs to a directory on the server and have an > Access app RUNNING ON THE SERVER watch for these CSVs and import them > into the table. At least if the write to the CSV file is interrupted, > it does not corrupt the BE. > > John W. Colby > > On 2/19/2015 3:01 PM, Janet Erbach wrote: >> Hello! >> >> It's been years since I've addressed this group, so please be patient >> with >> me while I get back into the swing of this. >> >> I've been an Access developer for the last 15 years or so. Until >> recently >> I created straightforward apps used on a small group of hardwired >> networked >> computers that had 5 or 6 users in the app at the same time. >> >> Last year I took a job with a large manufacturing plant, and just >> deployed >> a very complex app that I co-wrote with one of the access-fluent >> production >> supervisors. It is supposed to run non-stop on 20+ machines, all >> with WIFI >> connections. It writes machine production data to a set of front-end >> tables; every 15 minutes the app checks to see if there is network >> connectivity - if there is, the front-end table data is posted to the >> back-end tables on the network, the front-end tables are emptied, and >> the >> loop begins again. >> >> The app worked pretty well when it was running on one or two >> machines. Now >> that it's up on 20 machines, the back end is corrupting multiple times >> during the day - which, of course, brings the whole show to a halt. The >> error log seems to indicate that loss of a network connection during the >> back-end write operation proceeds the corruption. >> >> I have two questions. Will hard wiring the network connection to these >> machines go a long way towards stopping the corruption? Is there >> anything >> else that could be contributing to this that I need to be aware of? >> >> Thank you for your help. >> >> Janet Erbach > From jwcolby at gmail.com Sat Feb 21 11:47:07 2015 From: jwcolby at gmail.com (John W. Colby) Date: Sat, 21 Feb 2015 12:47:07 -0500 Subject: [AccessD] Backend database corruption In-Reply-To: <54E899FB.6010609@torchlake.com> References: <54E6503B.7050202@gmail.com> <54E899FB.6010609@torchlake.com> Message-ID: <54E8C49B.6010807@gmail.com> Interesting. What did the OS itself have to do with things? Did one specific OS cause the disconnect during self check? John W. Colby On 2/21/2015 9:45 AM, Tina Norris Fields wrote: > Absolutely - loss of connection while writing - go boom. Also, > transmitting data between different OSs. That experience happened > here a good ten years or more ago - Win 98 and Win XP and Win 2K > machines sharing a database. Different kinds of NICs (at least one > doing a self-check periodically, breaking connection for the > self-check), different Oss, and the Access databases being used simply > got fried. At the playhouse, it was one database. At a publishing > house, it was five databases before the issue got figured out. > TNF > > Tina Norris Fields > tinanfields-at-torchlake-dot-com > 231-322-2787 > > On 2/19/2015 4:06 PM, John W. Colby wrote: >> Loss of connection while writing to an Access DB is a known issue, >> never fixed, and probably unfixable. >> >> Don't use Wifi / WAN with an Access BE. >> >> The best option is to move the BE to a SQL Server BE. That will >> absolutely solve this issue. If you must continue to use Access as >> the BE, then write CSVs to a directory on the server and have an >> Access app RUNNING ON THE SERVER watch for these CSVs and import them >> into the table. At least if the write to the CSV file is >> interrupted, it does not corrupt the BE. >> >> John W. Colby >> >> On 2/19/2015 3:01 PM, Janet Erbach wrote: >>> Hello! >>> >>> It's been years since I've addressed this group, so please be >>> patient with >>> me while I get back into the swing of this. >>> >>> I've been an Access developer for the last 15 years or so. Until >>> recently >>> I created straightforward apps used on a small group of hardwired >>> networked >>> computers that had 5 or 6 users in the app at the same time. >>> >>> Last year I took a job with a large manufacturing plant, and just >>> deployed >>> a very complex app that I co-wrote with one of the access-fluent >>> production >>> supervisors. It is supposed to run non-stop on 20+ machines, all >>> with WIFI >>> connections. It writes machine production data to a set of front-end >>> tables; every 15 minutes the app checks to see if there is network >>> connectivity - if there is, the front-end table data is posted to the >>> back-end tables on the network, the front-end tables are emptied, >>> and the >>> loop begins again. >>> >>> The app worked pretty well when it was running on one or two >>> machines. Now >>> that it's up on 20 machines, the back end is corrupting multiple times >>> during the day - which, of course, brings the whole show to a halt. >>> The >>> error log seems to indicate that loss of a network connection during >>> the >>> back-end write operation proceeds the corruption. >>> >>> I have two questions. Will hard wiring the network connection to these >>> machines go a long way towards stopping the corruption? Is there >>> anything >>> else that could be contributing to this that I need to be aware of? >>> >>> Thank you for your help. >>> >>> Janet Erbach >> > From jwcolby at gmail.com Sat Feb 21 11:48:36 2015 From: jwcolby at gmail.com (John W. Colby) Date: Sat, 21 Feb 2015 12:48:36 -0500 Subject: [AccessD] ACCESS DB In-Reply-To: <201502210506.t1L56fXD020930@databaseadvisors.com> References: <201502210506.t1L56fXD020930@databaseadvisors.com> Message-ID: <54E8C4F4.2030306@gmail.com> Hey Tony, all the best with that wiener wagon! ;) John W. Colby On 2/21/2015 12:06 AM, Tony Septav wrote: > Hey All > > I have been on the original and this current list for 23 years. But things > have changed. > > You are a remarkable and mind numbing group of individuals. > > I am leaving with no regrets and thank you for the memories. > > HAPPY TRAILS to all of you. > > > > Gosh now I just have to figure out with thefew neurons left in this old > fart's brain how to unsubscribe. > > > > TS > From accessd at shaw.ca Sat Feb 21 12:11:49 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 21 Feb 2015 11:11:49 -0700 (MST) Subject: [AccessD] Backend database corruption In-Reply-To: <54E899FB.6010609@torchlake.com> Message-ID: <403867552.5516376.1424542309964.JavaMail.root@shaw.ca> The local and provincial government's IT departments, back in the late '90s, gave an edict that there could be no DAO databases...I guess too much important data was lost over the years since the early '90s. I for one was pleased to hear this turn of events as it tended to stop the proliferation of these really badly designed projects and with every data loss, it was another nail in the MS Access coffin. Unfortunately, this rule came too late and I believe was one of the major factors that removed MS Access development from the business world. Considering that ADO IDE database connections, design and a good SQL DB BE, would have solved the problems right from the getgo. I believe if MS had been so inclined MS Access still would have been a major player within offices...an opportunity lost, IMHO. Jim ----- Original Message ----- From: "Tina Norris Fields" To: "Access Developers discussion and problem solving" Sent: Saturday, February 21, 2015 6:45:15 AM Subject: Re: [AccessD] Backend database corruption Absolutely - loss of connection while writing - go boom. Also, transmitting data between different OSs. That experience happened here a good ten years or more ago - Win 98 and Win XP and Win 2K machines sharing a database. Different kinds of NICs (at least one doing a self-check periodically, breaking connection for the self-check), different Oss, and the Access databases being used simply got fried. At the playhouse, it was one database. At a publishing house, it was five databases before the issue got figured out. TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/19/2015 4:06 PM, John W. Colby wrote: > Loss of connection while writing to an Access DB is a known issue, > never fixed, and probably unfixable. > > Don't use Wifi / WAN with an Access BE. > > The best option is to move the BE to a SQL Server BE. That will > absolutely solve this issue. If you must continue to use Access as > the BE, then write CSVs to a directory on the server and have an > Access app RUNNING ON THE SERVER watch for these CSVs and import them > into the table. At least if the write to the CSV file is interrupted, > it does not corrupt the BE. > > John W. Colby > > On 2/19/2015 3:01 PM, Janet Erbach wrote: >> Hello! >> >> It's been years since I've addressed this group, so please be patient >> with >> me while I get back into the swing of this. >> >> I've been an Access developer for the last 15 years or so. Until >> recently >> I created straightforward apps used on a small group of hardwired >> networked >> computers that had 5 or 6 users in the app at the same time. >> >> Last year I took a job with a large manufacturing plant, and just >> deployed >> a very complex app that I co-wrote with one of the access-fluent >> production >> supervisors. It is supposed to run non-stop on 20+ machines, all >> with WIFI >> connections. It writes machine production data to a set of front-end >> tables; every 15 minutes the app checks to see if there is network >> connectivity - if there is, the front-end table data is posted to the >> back-end tables on the network, the front-end tables are emptied, and >> the >> loop begins again. >> >> The app worked pretty well when it was running on one or two >> machines. Now >> that it's up on 20 machines, the back end is corrupting multiple times >> during the day - which, of course, brings the whole show to a halt. The >> error log seems to indicate that loss of a network connection during the >> back-end write operation proceeds the corruption. >> >> I have two questions. Will hard wiring the network connection to these >> machines go a long way towards stopping the corruption? Is there >> anything >> else that could be contributing to this that I need to be aware of? >> >> Thank you for your help. >> >> Janet Erbach > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Feb 21 13:12:42 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 21 Feb 2015 11:12:42 -0800 Subject: [AccessD] Shortcuts Again Message-ID: <27DA81972816438EA06DFE53FAA85811@HAL9007> Dear List: I had a problem with two shortcuts on a menu having the same letter - S. When I look at it in design view the shortcuts are different - G and O. When I go back to form view they revert to S. I tried the Save an text and Load from text trick. Starting with a form with & in front of the S in both command buttons, I export to text, change the ampersands to G and O. Then Load from text. In design view, AOK. Form view - they revert to S underlined. So, I'm totally stumped. What to do? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin From jwcolby at gmail.com Sat Feb 21 13:23:44 2015 From: jwcolby at gmail.com (John W. Colby) Date: Sat, 21 Feb 2015 14:23:44 -0500 Subject: [AccessD] Shortcuts Again In-Reply-To: <27DA81972816438EA06DFE53FAA85811@HAL9007> References: <27DA81972816438EA06DFE53FAA85811@HAL9007> Message-ID: <54E8DB40.9000001@gmail.com> I would get rid of one shortcut. Look at what is displayed when the form opens. Get that working. Add the second shortcut. If necessary get rid of both, view to make sure they are gone. Add back in. John W. Colby On 2/21/2015 2:12 PM, Rocky Smolin wrote: > Dear List: > > I had a problem with two shortcuts on a menu having the same letter - S. > When I look at it in design view the shortcuts are different - G and O. > When I go back to form view they revert to S. > > I tried the Save an text and Load from text trick. Starting with a form > with & in front of the S in both command buttons, I export to text, change > the ampersands to G and O. Then Load from text. In design view, AOK. Form > view - they revert to S underlined. > > So, I'm totally stumped. What to do? > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.bchacc.com > www.e-z-mrp.com > Skype: rocky.smolin > > From rockysmolin at bchacc.com Sat Feb 21 13:30:18 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 21 Feb 2015 11:30:18 -0800 Subject: [AccessD] Shortcuts Again In-Reply-To: <27DA81972816438EA06DFE53FAA85811@HAL9007> References: <27DA81972816438EA06DFE53FAA85811@HAL9007> Message-ID: Never mind. I figured it out. It wasn't Access - it was me. You see for this app, which is distributed, I have language tables with all the control captions and message boxes so I can do translations on the fly and it's easy to add a new language. So the translation for the command button Sales orders is &Sales Orders. It doesn't matter what I put in the for, the caption on the button is going to be replaced by what's in the table. Which is...wait for it...&Sales Orders. Of all the things I considered as to why the shortcut was reverting back to S, I forgot about the translation. Oh well, time to retire... Rocky Smolin Beach Access Software 858-259-4334 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, February 21, 2015 11:13 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Shortcuts Again Dear List: I had a problem with two shortcuts on a menu having the same letter - S. When I look at it in design view the shortcuts are different - G and O. When I go back to form view they revert to S. I tried the Save an text and Load from text trick. Starting with a form with & in front of the S in both command buttons, I export to text, change the ampersands to G and O. Then Load from text. In design view, AOK. Form view - they revert to S underlined. So, I'm totally stumped. What to do? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Sat Feb 21 14:00:23 2015 From: jwcolby at gmail.com (John W. Colby) Date: Sat, 21 Feb 2015 15:00:23 -0500 Subject: [AccessD] Shortcuts Again In-Reply-To: References: <27DA81972816438EA06DFE53FAA85811@HAL9007> Message-ID: <54E8E3D7.7060106@gmail.com> It did sound like a run time substitution of some sort. I thought you had retired. John W. Colby On 2/21/2015 2:30 PM, Rocky Smolin wrote: > Never mind. I figured it out. It wasn't Access - it was me. > > You see for this app, which is distributed, I have language tables with all > the control captions and message boxes so I can do translations on the fly > and it's easy to add a new language. > > So the translation for the command button Sales orders is &Sales Orders. It > doesn't matter what I put in the for, the caption on the button is going to > be replaced by what's in the table. Which is...wait for it...&Sales Orders. > > Of all the things I considered as to why the shortcut was reverting back to > S, I forgot about the translation. > > Oh well, time to retire... > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.bchacc.com > www.e-z-mrp.com > Skype: rocky.smolin > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Saturday, February 21, 2015 11:13 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Shortcuts Again > > Dear List: > > I had a problem with two shortcuts on a menu having the same letter - S. > When I look at it in design view the shortcuts are different - G and O. > When I go back to form view they revert to S. > > I tried the Save an text and Load from text trick. Starting with a form > with & in front of the S in both command buttons, I export to text, change > the ampersands to G and O. Then Load from text. In design view, AOK. Form > view - they revert to S underlined. > > So, I'm totally stumped. What to do? > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.bchacc.com www.e-z-mrp.com > > Skype: rocky.smolin > > From rockysmolin at bchacc.com Sun Feb 22 00:45:13 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 21 Feb 2015 22:45:13 -0800 Subject: [AccessD] Shortcuts Again In-Reply-To: <54E8E3D7.7060106@gmail.com> References: <27DA81972816438EA06DFE53FAA85811@HAL9007> <54E8E3D7.7060106@gmail.com> Message-ID: <624A9D0B320F4BE1AA53A649D8F4506D@HAL9007> I failed. :) Actually I happened into a couple of interesting gigs last year so that gives me the illusion of productivity. And the guy that acquired my system sells it to people who need custom mods or data converted - stuff like that. It's all good - I get more cycling time and play more music. And the climate is benign. No complaints. How's that little boy? Not so little any more I'll wager. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 21, 2015 12:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shortcuts Again It did sound like a run time substitution of some sort. I thought you had retired. John W. Colby On 2/21/2015 2:30 PM, Rocky Smolin wrote: > Never mind. I figured it out. It wasn't Access - it was me. > > You see for this app, which is distributed, I have language tables > with all the control captions and message boxes so I can do > translations on the fly and it's easy to add a new language. > > So the translation for the command button Sales orders is &Sales > Orders. It doesn't matter what I put in the for, the caption on the > button is going to be replaced by what's in the table. Which is...wait for it...&Sales Orders. > > Of all the things I considered as to why the shortcut was reverting > back to S, I forgot about the translation. > > Oh well, time to retire... > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.bchacc.com > www.e-z-mrp.com > Skype: rocky.smolin > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Saturday, February 21, 2015 11:13 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Shortcuts Again > > Dear List: > > I had a problem with two shortcuts on a menu having the same letter - S. > When I look at it in design view the shortcuts are different - G and O. > When I go back to form view they revert to S. > > I tried the Save an text and Load from text trick. Starting with a > form with & in front of the S in both command buttons, I export to > text, change the ampersands to G and O. Then Load from text. In > design view, AOK. Form view - they revert to S underlined. > > So, I'm totally stumped. What to do? > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.bchacc.com www.e-z-mrp.com > > Skype: rocky.smolin > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Sun Feb 22 06:14:10 2015 From: jwcolby at gmail.com (John W. Colby) Date: Sun, 22 Feb 2015 07:14:10 -0500 Subject: [AccessD] Shortcuts Again In-Reply-To: <624A9D0B320F4BE1AA53A649D8F4506D@HAL9007> References: <27DA81972816438EA06DFE53FAA85811@HAL9007> <54E8E3D7.7060106@gmail.com> <624A9D0B320F4BE1AA53A649D8F4506D@HAL9007> Message-ID: <54E9C812.5040804@gmail.com> >How's that little boy? Not so little any more I'll wager. He's a young man now. He'll be 14 next month. John W. Colby On 2/22/2015 1:45 AM, Rocky Smolin wrote: > I failed. :) Actually I happened into a couple of interesting gigs last > year so that gives me the illusion of productivity. > > And the guy that acquired my system sells it to people who need custom mods > or data converted - stuff like that. > > It's all good - I get more cycling time and play more music. And the climate > is benign. No complaints. > > How's that little boy? Not so little any more I'll wager. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Saturday, February 21, 2015 12:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Shortcuts Again > > It did sound like a run time substitution of some sort. > > I thought you had retired. > > John W. Colby > > On 2/21/2015 2:30 PM, Rocky Smolin wrote: >> Never mind. I figured it out. It wasn't Access - it was me. >> >> You see for this app, which is distributed, I have language tables >> with all the control captions and message boxes so I can do >> translations on the fly and it's easy to add a new language. >> >> So the translation for the command button Sales orders is &Sales >> Orders. It doesn't matter what I put in the for, the caption on the >> button is going to be replaced by what's in the table. Which is...wait > for it...&Sales Orders. >> Of all the things I considered as to why the shortcut was reverting >> back to S, I forgot about the translation. >> >> Oh well, time to retire... >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.bchacc.com >> www.e-z-mrp.com >> Skype: rocky.smolin >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> Smolin >> Sent: Saturday, February 21, 2015 11:13 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Shortcuts Again >> >> Dear List: >> >> I had a problem with two shortcuts on a menu having the same letter - S. >> When I look at it in design view the shortcuts are different - G and O. >> When I go back to form view they revert to S. >> >> I tried the Save an text and Load from text trick. Starting with a >> form with & in front of the S in both command buttons, I export to >> text, change the ampersands to G and O. Then Load from text. In >> design view, AOK. Form view - they revert to S underlined. >> >> So, I'm totally stumped. What to do? >> >> MTIA >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.bchacc.com www.e-z-mrp.com >> >> Skype: rocky.smolin >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tinanfields at torchlake.com Sun Feb 22 10:51:49 2015 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 22 Feb 2015 11:51:49 -0500 Subject: [AccessD] Backend database corruption In-Reply-To: <54E8C49B.6010807@gmail.com> References: <54E6503B.7050202@gmail.com> <54E899FB.6010609@torchlake.com> <54E8C49B.6010807@gmail.com> Message-ID: <54EA0925.1060703@torchlake.com> John, I'm not completely sure. But, the difficulty occurred between boxes running Win 98 and Win XP. Perhaps it was really only the NICs that were causing the problem. But, the playhouse setup was that the database resided on a Win XP machine and was being accessed by two other boxes, one was Win 98, the other was Win XP. This was not a split database, the whole database resided on the director's desk. The office assistant and the children's theater director had to access the database remotely over the network. All had been working well, I am told (I did not set this up, I inherited an existing setup). All of a sudden, one day, the database could not be opened. Upon examination, I learned that the database file was now a tiny fraction of what it had been. There appeared to be no data resident. Further investigation turned up reports from others that Access databases across networks between boxes with different OSs, were getting hosed. Then, there was that NIC that periodically broke the connection to run a self-check. Somebody else will know much more than I about this. We have now reached the limit of my understanding of the situation. :-) TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/21/2015 12:47 PM, John W. Colby wrote: > Interesting. What did the OS itself have to do with things? Did one > specific OS cause the disconnect during self check? > > John W. Colby > > On 2/21/2015 9:45 AM, Tina Norris Fields wrote: >> Absolutely - loss of connection while writing - go boom. Also, >> transmitting data between different OSs. That experience happened >> here a good ten years or more ago - Win 98 and Win XP and Win 2K >> machines sharing a database. Different kinds of NICs (at least one >> doing a self-check periodically, breaking connection for the >> self-check), different Oss, and the Access databases being used >> simply got fried. At the playhouse, it was one database. At a >> publishing house, it was five databases before the issue got figured >> out. >> TNF >> >> Tina Norris Fields >> tinanfields-at-torchlake-dot-com >> 231-322-2787 >> >> On 2/19/2015 4:06 PM, John W. Colby wrote: >>> Loss of connection while writing to an Access DB is a known issue, >>> never fixed, and probably unfixable. >>> >>> Don't use Wifi / WAN with an Access BE. >>> >>> The best option is to move the BE to a SQL Server BE. That will >>> absolutely solve this issue. If you must continue to use Access as >>> the BE, then write CSVs to a directory on the server and have an >>> Access app RUNNING ON THE SERVER watch for these CSVs and import >>> them into the table. At least if the write to the CSV file is >>> interrupted, it does not corrupt the BE. >>> >>> John W. Colby >>> From fuller.artful at gmail.com Sun Feb 22 11:28:26 2015 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 22 Feb 2015 12:28:26 -0500 Subject: [AccessD] Backend database corruption In-Reply-To: <54EA0925.1060703@torchlake.com> References: <54E6503B.7050202@gmail.com> <54E899FB.6010609@torchlake.com> <54E8C49B.6010807@gmail.com> <54EA0925.1060703@torchlake.com> Message-ID: Tina, Are you still working on this project? If not, then suggestions are academic. If so, then the first thing to do is split the database! Put a Front End on each client station and leave the BE where it is. IMO, next thing to do is convert the BE to either SQL Express or MySQL. Incidentally, a company called Bullzip offers a pair of great tools that convert Access databases to either MS SQL or MySQL -- and they are free. Once the database is converted, set up a new instance of the FE that uses ODBC to connect to the new database. Depending on the complexity of the Access BE, converting the FE to address the new database can be trivial (where forms and reports are bound directly to tables), or more involved (converting Select data sources to named queries, which will arrive in the new BE as Views). In the case of SQL Express, you'll need SSMS (the database manager) or SQL Bench (the MySQL database manager). While "graduating" to a real DBMS on the back end, you can leave the current (split) database in place, until you get the new system working. Splitting the old database will help significantly in preventing corruption. And as previously mentioned, you have to replace the wi-fi with wired connections. Migrating the current DB to a real DBMS won't take long, really. Arthur ? From tinanfields at torchlake.com Sun Feb 22 13:57:26 2015 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 22 Feb 2015 14:57:26 -0500 Subject: [AccessD] Backend database corruption In-Reply-To: References: <54E6503B.7050202@gmail.com> <54E899FB.6010609@torchlake.com> <54E8C49B.6010807@gmail.com> <54EA0925.1060703@torchlake.com> Message-ID: <54EA34A6.4010601@torchlake.com> Hi Arthur, Not still working on this one. But, I do have another one that I inherited, and it does need to be split. I will make use of all the guidance I can get from my AccessD colleagues in order to get that one done right. Thanks for the advice and information. TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/22/2015 12:28 PM, Arthur Fuller wrote: > Tina, > > Are you still working on this project? If not, then suggestions are > academic. If so, then the first thing to do is split the database! Put a > Front End on each client station and leave the BE where it is. > > IMO, next thing to do is convert the BE to either SQL Express or MySQL. > Incidentally, a company called Bullzip offers a > pair of great tools that convert Access databases to either MS SQL or MySQL > -- and they are free. Once the database is converted, set up a new instance > of the FE that uses ODBC to connect to the new database. > > Depending on the complexity of the Access BE, converting the FE to address > the new database can be trivial (where forms and reports are bound directly > to tables), or more involved (converting Select data sources to named > queries, which will arrive in the new BE as Views). > > In the case of SQL Express, you'll need SSMS (the database manager) or SQL > Bench (the MySQL database manager). > > While "graduating" to a real DBMS on the back end, you can leave the > current (split) database in place, until you get the new system working. > Splitting the old database will help significantly in preventing > corruption. And as previously mentioned, you have to replace the wi-fi with > wired connections. > > Migrating the current DB to a real DBMS won't take long, really. > > Arthur > ? From accessd at shaw.ca Sun Feb 22 17:41:33 2015 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 22 Feb 2015 16:41:33 -0700 (MST) Subject: [AccessD] Backend database corruption In-Reply-To: Message-ID: <523794030.6325552.1424648493794.JavaMail.root@shaw.ca> Hi Janet: I am not ignoring you, it is that I will have to dig up some samples to show you that may be helpful. Jim ----- Original Message ----- From: "Janet Erbach" To: "Access Developers discussion and problem solving" Sent: Friday, February 20, 2015 2:22:46 PM Subject: Re: [AccessD] Backend database corruption Jim - I would, indeed like to learn more. All of my connections are DAO... Thank you! On Fri, Feb 20, 2015 at 1:49 PM, Jim Lawrence wrote: > Hi Janet: > > Nice to hear from you...is this too late for comment? Assuming no, let me > add to the discussion. > > Most people on this list have heard me preach on the topic more often that > not. To start with, on any major applications, developed in Access, I for > one, would and never used DAO data connection. As all of you pointed out it > is just too unstable, especially in a heavy work environment. > > You can use ADO. The protocol is on all Windows from Win95 to Win8.x and I > believe on Win10, but I haven't checked yet. It is rugged, fast and > completely recoverable from. It matters not how large, distributed or > complex the application is. > > If you want to learn more or want help just ask. > > Jim > > ----- Original Message ----- > From: "Janet Erbach" > To: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com> > Sent: Friday, February 20, 2015 11:01:24 AM > Subject: Re: [AccessD] Backend database corruption > > THANK YOU ALL for your responses - this is all very helpful. I'm going to > push for hard wiring all of the connections as soon as possible; I also > like the idea of logging when the write operations are happening to see how > much overlapping traffic there is. > > I think the CSV approach is very interesting too, and will bring that up in > a meeting next week along with presenting the SQL backend option. I think > we would try the CSV approach first. It would be difficult to convert to a > SQL backend, I think, on the 20 hours a week that they've alotted > me...especially since more than half of that time is via remote connection. > > Again - thank you all. I am much relieved to have a few options to pursue! > > > > On Thu, Feb 19, 2015 at 4:25 PM, Darryl Collins < > darryl at whittleconsulting.com.au> wrote: > > > Yes. John is spot on. These would be my primary solutions to this issue > > as well. > > > > Cheers > > Darryl. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto: > > accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > > Sent: Friday, 20 February 2015 8:06 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Backend database corruption > > > > Loss of connection while writing to an Access DB is a known issue, never > > fixed, and probably unfixable. > > > > Don't use Wifi / WAN with an Access BE. > > > > The best option is to move the BE to a SQL Server BE. That will > > absolutely solve this issue. If you must continue to use Access as the > BE, > > then write CSVs to a directory on the server and have an Access app > RUNNING > > ON THE SERVER watch for these CSVs and import them into the table. At > > least if the write to the CSV file is interrupted, it does not corrupt > the > > BE. > > > > John W. Colby > > > > On 2/19/2015 3:01 PM, Janet Erbach wrote: > > > Hello! > > > > > > It's been years since I've addressed this group, so please be patient > > > with me while I get back into the swing of this. > > > > > > I've been an Access developer for the last 15 years or so. Until > > > recently I created straightforward apps used on a small group of > > > hardwired networked computers that had 5 or 6 users in the app at the > > same time. > > > > > > Last year I took a job with a large manufacturing plant, and just > > > deployed a very complex app that I co-wrote with one of the > > > access-fluent production supervisors. It is supposed to run non-stop > > > on 20+ machines, all with WIFI connections. It writes machine > > > production data to a set of front-end tables; every 15 minutes the > > > app checks to see if there is network connectivity - if there is, the > > > front-end table data is posted to the back-end tables on the network, > > > the front-end tables are emptied, and the loop begins again. > > > > > > The app worked pretty well when it was running on one or two machines. > > > Now that it's up on 20 machines, the back end is corrupting multiple > > > times during the day - which, of course, brings the whole show to a > > > halt. The error log seems to indicate that loss of a network > > > connection during the back-end write operation proceeds the corruption. > > > > > > I have two questions. Will hard wiring the network connection to > > > these machines go a long way towards stopping the corruption? Is > > > there anything else that could be contributing to this that I need to > be > > aware of? > > > > > > Thank you for your help. > > > > > > Janet Erbach > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 jimdettman at verizon.net Mon Feb 23 08:17:04 2015 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 23 Feb 2015 09:17:04 -0500 Subject: [AccessD] Backend database corruption In-Reply-To: <54E7C45B.27169.F52EE35@stuart.lexacorp.com.pg> References: , <54E6503B.7050202@gmail.com>, <54E7C45B.27169.F52EE35@stuart.lexacorp.com.pg> Message-ID: <94A7153BE0E74D4687DFF03E7940F1F5@XPS> +1 on #1. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 20, 2015 06:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backend database corruption Some other methods. 1. Write a small "guard file" before you start the upload and delete it once the upload is complete. Could be just an empty file with an appropriate file name to identify the file being uploaded. Don't process an upload if its "guard file" exists 2. Try to open the file for exclusive access from you import routine. You shouldn't be able to while the file is still open and being written to. 3. Write the file to a temporary file name and rename it using a standard convention once fully written. Only process files with an appropriate file name. -- Stuart On 19 Feb 2015 at 21:34, McGillivray, Don wrote: > And if you go the CSV route, be sure that your app on the server has a > means of determining when a CSV is complete and ready for import. > Years ago I built a system that imported data into an Access BE from > fixed-width text files produced by automated mail inserting machines. > Each input file would contain tens of thousands of records, and I had > to deal with the problem of a large file being "present" in the drop > zone but possibly still being written to when detected. If I remember > correctly, I dealt with it by capturing each file's size on either > side of a brief interval. Files that were the same size on both sides > of the pause were considered ready, and the others were left for the > next import cycle. I had to experiment a bit to find the appropriate > pause interval. There are probably smarter ways to do this, but it > worked . . . > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby Sent: Thursday, February 19, 2015 1:06 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Backend database > corruption > > Loss of connection while writing to an Access DB is a known issue, > never fixed, and probably unfixable. > > Don't use Wifi / WAN with an Access BE. > > The best option is to move the BE to a SQL Server BE. That will > absolutely solve this issue. If you must continue to use Access as > the BE, then write CSVs to a directory on the server and have an > Access app RUNNING ON THE SERVER watch for these CSVs and import them > into the table. At least if the write to the CSV file is interrupted, > it does not corrupt the BE. > > John W. Colby > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Mon Feb 23 08:24:21 2015 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 23 Feb 2015 14:24:21 +0000 Subject: [AccessD] Backend database corruption Message-ID: Hi all A variation of 1. that TradeShift uses for FTP upload: 0. Write a small "pilot file" once the upload is complete. Could be just an empty file with an appropriate file name to identify the file being uploaded. Don't process an upload if its "pilot file" doesn't exist. /gustav -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Jim Dettman Sendt: 23. februar 2015 15:17 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Backend database corruption +1 on #1. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 20, 2015 06:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backend database corruption Some other methods. 1. Write a small "guard file" before you start the upload and delete it once the upload is complete. Could be just an empty file with an appropriate file name to identify the file being uploaded. Don't process an upload if its "guard file" exists 2. Try to open the file for exclusive access from you import routine. You shouldn't be able to while the file is still open and being written to. 3. Write the file to a temporary file name and rename it using a standard convention once fully written. Only process files with an appropriate file name. -- Stuart On 19 Feb 2015 at 21:34, McGillivray, Don wrote: > And if you go the CSV route, be sure that your app on the server has a > means of determining when a CSV is complete and ready for import. > Years ago I built a system that imported data into an Access BE from > fixed-width text files produced by automated mail inserting machines. > Each input file would contain tens of thousands of records, and I had > to deal with the problem of a large file being "present" in the drop > zone but possibly still being written to when detected. If I remember > correctly, I dealt with it by capturing each file's size on either > side of a brief interval. Files that were the same size on both sides > of the pause were considered ready, and the others were left for the > next import cycle. I had to experiment a bit to find the appropriate > pause interval. There are probably smarter ways to do this, but it > worked . . . > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby Sent: Thursday, February 19, 2015 1:06 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Backend database > corruption > > Loss of connection while writing to an Access DB is a known issue, > never fixed, and probably unfixable. > > Don't use Wifi / WAN with an Access BE. > > The best option is to move the BE to a SQL Server BE. That will > absolutely solve this issue. If you must continue to use Access as > the BE, then write CSVs to a directory on the server and have an > Access app RUNNING ON THE SERVER watch for these CSVs and import them > into the table. At least if the write to the CSV file is interrupted, > it does not corrupt the BE. > > John W. Colby From jerbach.db at gmail.com Mon Feb 23 09:01:50 2015 From: jerbach.db at gmail.com (Janet Erbach) Date: Mon, 23 Feb 2015 09:01:50 -0600 Subject: [AccessD] Backend database corruption In-Reply-To: <523794030.6325552.1424648493794.JavaMail.root@shaw.ca> References: <523794030.6325552.1424648493794.JavaMail.root@shaw.ca> Message-ID: :) On Sun, Feb 22, 2015 at 5:41 PM, Jim Lawrence wrote: > Hi Janet: > > I am not ignoring you, it is that I will have to dig up some samples to > show you that may be helpful. > > Jim > > ----- Original Message ----- > From: "Janet Erbach" > To: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com> > Sent: Friday, February 20, 2015 2:22:46 PM > Subject: Re: [AccessD] Backend database corruption > > Jim - > > I would, indeed like to learn more. All of my connections are DAO... > > Thank you! > > On Fri, Feb 20, 2015 at 1:49 PM, Jim Lawrence wrote: > > > Hi Janet: > > > > Nice to hear from you...is this too late for comment? Assuming no, let me > > add to the discussion. > > > > Most people on this list have heard me preach on the topic more often > that > > not. To start with, on any major applications, developed in Access, I for > > one, would and never used DAO data connection. As all of you pointed out > it > > is just too unstable, especially in a heavy work environment. > > > > You can use ADO. The protocol is on all Windows from Win95 to Win8.x and > I > > believe on Win10, but I haven't checked yet. It is rugged, fast and > > completely recoverable from. It matters not how large, distributed or > > complex the application is. > > > > If you want to learn more or want help just ask. > > > > Jim > > > > ----- Original Message ----- > > From: "Janet Erbach" > > To: "Access Developers discussion and problem solving" < > > accessd at databaseadvisors.com> > > Sent: Friday, February 20, 2015 11:01:24 AM > > Subject: Re: [AccessD] Backend database corruption > > > > THANK YOU ALL for your responses - this is all very helpful. I'm going > to > > push for hard wiring all of the connections as soon as possible; I also > > like the idea of logging when the write operations are happening to see > how > > much overlapping traffic there is. > > > > I think the CSV approach is very interesting too, and will bring that up > in > > a meeting next week along with presenting the SQL backend option. I > think > > we would try the CSV approach first. It would be difficult to convert to > a > > SQL backend, I think, on the 20 hours a week that they've alotted > > me...especially since more than half of that time is via remote > connection. > > > > Again - thank you all. I am much relieved to have a few options to > pursue! > > > > > > > > On Thu, Feb 19, 2015 at 4:25 PM, Darryl Collins < > > darryl at whittleconsulting.com.au> wrote: > > > > > Yes. John is spot on. These would be my primary solutions to this > issue > > > as well. > > > > > > Cheers > > > Darryl. > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com [mailto: > > > accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > > > Sent: Friday, 20 February 2015 8:06 AM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Backend database corruption > > > > > > Loss of connection while writing to an Access DB is a known issue, > never > > > fixed, and probably unfixable. > > > > > > Don't use Wifi / WAN with an Access BE. > > > > > > The best option is to move the BE to a SQL Server BE. That will > > > absolutely solve this issue. If you must continue to use Access as the > > BE, > > > then write CSVs to a directory on the server and have an Access app > > RUNNING > > > ON THE SERVER watch for these CSVs and import them into the table. At > > > least if the write to the CSV file is interrupted, it does not corrupt > > the > > > BE. > > > > > > John W. Colby > > > > > > On 2/19/2015 3:01 PM, Janet Erbach wrote: > > > > Hello! > > > > > > > > It's been years since I've addressed this group, so please be patient > > > > with me while I get back into the swing of this. > > > > > > > > I've been an Access developer for the last 15 years or so. Until > > > > recently I created straightforward apps used on a small group of > > > > hardwired networked computers that had 5 or 6 users in the app at the > > > same time. > > > > > > > > Last year I took a job with a large manufacturing plant, and just > > > > deployed a very complex app that I co-wrote with one of the > > > > access-fluent production supervisors. It is supposed to run non-stop > > > > on 20+ machines, all with WIFI connections. It writes machine > > > > production data to a set of front-end tables; every 15 minutes the > > > > app checks to see if there is network connectivity - if there is, the > > > > front-end table data is posted to the back-end tables on the network, > > > > the front-end tables are emptied, and the loop begins again. > > > > > > > > The app worked pretty well when it was running on one or two > machines. > > > > Now that it's up on 20 machines, the back end is corrupting multiple > > > > times during the day - which, of course, brings the whole show to a > > > > halt. The error log seems to indicate that loss of a network > > > > connection during the back-end write operation proceeds the > corruption. > > > > > > > > I have two questions. Will hard wiring the network connection to > > > > these machines go a long way towards stopping the corruption? Is > > > > there anything else that could be contributing to this that I need to > > be > > > aware of? > > > > > > > > Thank you for your help. > > > > > > > > Janet Erbach > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/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 jerbach.db at gmail.com Mon Feb 23 13:36:52 2015 From: jerbach.db at gmail.com (Janet Erbach) Date: Mon, 23 Feb 2015 13:36:52 -0600 Subject: [AccessD] Shortcuts Again In-Reply-To: <624A9D0B320F4BE1AA53A649D8F4506D@HAL9007> References: <27DA81972816438EA06DFE53FAA85811@HAL9007> <54E8E3D7.7060106@gmail.com> <624A9D0B320F4BE1AA53A649D8F4506D@HAL9007> Message-ID: More music, Rocky? More music is GOOD. Where are you playing? Janet On Sun, Feb 22, 2015 at 12:45 AM, Rocky Smolin wrote: > I failed. :) Actually I happened into a couple of interesting gigs last > year so that gives me the illusion of productivity. > > And the guy that acquired my system sells it to people who need custom mods > or data converted - stuff like that. > > It's all good - I get more cycling time and play more music. And the > climate > is benign. No complaints. > > How's that little boy? Not so little any more I'll wager. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Saturday, February 21, 2015 12:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Shortcuts Again > > It did sound like a run time substitution of some sort. > > I thought you had retired. > > John W. Colby > > On 2/21/2015 2:30 PM, Rocky Smolin wrote: > > Never mind. I figured it out. It wasn't Access - it was me. > > > > You see for this app, which is distributed, I have language tables > > with all the control captions and message boxes so I can do > > translations on the fly and it's easy to add a new language. > > > > So the translation for the command button Sales orders is &Sales > > Orders. It doesn't matter what I put in the for, the caption on the > > button is going to be replaced by what's in the table. Which is...wait > for it...&Sales Orders. > > > > Of all the things I considered as to why the shortcut was reverting > > back to S, I forgot about the translation. > > > > Oh well, time to retire... > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin > > Sent: Saturday, February 21, 2015 11:13 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Shortcuts Again > > > > Dear List: > > > > I had a problem with two shortcuts on a menu having the same letter - S. > > When I look at it in design view the shortcuts are different - G and O. > > When I go back to form view they revert to S. > > > > I tried the Save an text and Load from text trick. Starting with a > > form with & in front of the S in both command buttons, I export to > > text, change the ampersands to G and O. Then Load from text. In > > design view, AOK. Form view - they revert to S underlined. > > > > So, I'm totally stumped. What to do? > > > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.bchacc.com www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Mon Feb 23 13:40:24 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 23 Feb 2015 11:40:24 -0800 Subject: [AccessD] Shortcuts Again In-Reply-To: References: <27DA81972816438EA06DFE53FAA85811@HAL9007><54E8E3D7.7060106@gmail.com><624A9D0B320F4BE1AA53A649D8F4506D@HAL9007> Message-ID: Everywhere. :) Last week a Mardi Gras party with the Dixieland Band, a jazz standards gig Friday night, and Saturday Cuban with a 14 piece Cuban band. All paid, too!!!! Plus various jams for fun. IOW, as much as possible. :) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Monday, February 23, 2015 11:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shortcuts Again More music, Rocky? More music is GOOD. Where are you playing? Janet On Sun, Feb 22, 2015 at 12:45 AM, Rocky Smolin wrote: > I failed. :) Actually I happened into a couple of interesting gigs > last year so that gives me the illusion of productivity. > > And the guy that acquired my system sells it to people who need custom > mods or data converted - stuff like that. > > It's all good - I get more cycling time and play more music. And the > climate is benign. No complaints. > > How's that little boy? Not so little any more I'll wager. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby > Sent: Saturday, February 21, 2015 12:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Shortcuts Again > > It did sound like a run time substitution of some sort. > > I thought you had retired. > > John W. Colby > > On 2/21/2015 2:30 PM, Rocky Smolin wrote: > > Never mind. I figured it out. It wasn't Access - it was me. > > > > You see for this app, which is distributed, I have language tables > > with all the control captions and message boxes so I can do > > translations on the fly and it's easy to add a new language. > > > > So the translation for the command button Sales orders is &Sales > > Orders. It doesn't matter what I put in the for, the caption on the > > button is going to be replaced by what's in the table. Which > > is...wait > for it...&Sales Orders. > > > > Of all the things I considered as to why the shortcut was reverting > > back to S, I forgot about the translation. > > > > Oh well, time to retire... > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin > > Sent: Saturday, February 21, 2015 11:13 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Shortcuts Again > > > > Dear List: > > > > I had a problem with two shortcuts on a menu having the same letter - S. > > When I look at it in design view the shortcuts are different - G and O. > > When I go back to form view they revert to S. > > > > I tried the Save an text and Load from text trick. Starting with a > > form with & in front of the S in both command buttons, I export to > > text, change the ampersands to G and O. Then Load from text. In > > design view, AOK. Form view - they revert to S underlined. > > > > So, I'm totally stumped. What to do? > > > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.bchacc.com www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jerbach.db at gmail.com Mon Feb 23 14:39:24 2015 From: jerbach.db at gmail.com (Janet Erbach) Date: Mon, 23 Feb 2015 14:39:24 -0600 Subject: [AccessD] Shortcuts Again In-Reply-To: References: <27DA81972816438EA06DFE53FAA85811@HAL9007> <54E8E3D7.7060106@gmail.com> <624A9D0B320F4BE1AA53A649D8F4506D@HAL9007> Message-ID: Good for you. Paid gigs are always welcome, and it sounds like the variety you're getting is great too. I've got my 2 girl choir accompanist jobs as well as an every other weekend church gig. I love the girl choir job, but since we rehearse for 2 main concerts each year the material is the same from week to week. The church gig gives me the freedom to play whatever I want for the prelude - whether it's the theme from a Hayo Miazaki movie like "How'ls Moving Castle" or arias like "Nessun Dorma" from "Turandot". But that's about all the variety I get! On Mon, Feb 23, 2015 at 1:40 PM, Rocky Smolin wrote: > Everywhere. :) Last week a Mardi Gras party with the Dixieland Band, a jazz > standards gig Friday night, and Saturday Cuban with a 14 piece Cuban band. > All paid, too!!!! > > Plus various jams for fun. IOW, as much as possible. :) > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach > Sent: Monday, February 23, 2015 11:37 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Shortcuts Again > > More music, Rocky? More music is GOOD. Where are you playing? > > Janet > > On Sun, Feb 22, 2015 at 12:45 AM, Rocky Smolin > wrote: > > > I failed. :) Actually I happened into a couple of interesting gigs > > last year so that gives me the illusion of productivity. > > > > And the guy that acquired my system sells it to people who need custom > > mods or data converted - stuff like that. > > > > It's all good - I get more cycling time and play more music. And the > > climate is benign. No complaints. > > > > How's that little boy? Not so little any more I'll wager. > > > > R > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > > Colby > > Sent: Saturday, February 21, 2015 12:00 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Shortcuts Again > > > > It did sound like a run time substitution of some sort. > > > > I thought you had retired. > > > > John W. Colby > > > > On 2/21/2015 2:30 PM, Rocky Smolin wrote: > > > Never mind. I figured it out. It wasn't Access - it was me. > > > > > > You see for this app, which is distributed, I have language tables > > > with all the control captions and message boxes so I can do > > > translations on the fly and it's easy to add a new language. > > > > > > So the translation for the command button Sales orders is &Sales > > > Orders. It doesn't matter what I put in the for, the caption on the > > > button is going to be replaced by what's in the table. Which > > > is...wait > > for it...&Sales Orders. > > > > > > Of all the things I considered as to why the shortcut was reverting > > > back to S, I forgot about the translation. > > > > > > Oh well, time to retire... > > > > > > Rocky Smolin > > > Beach Access Software > > > 858-259-4334 > > > www.bchacc.com > > > www.e-z-mrp.com > > > Skype: rocky.smolin > > > > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > > Smolin > > > Sent: Saturday, February 21, 2015 11:13 AM > > > To: 'Access Developers discussion and problem solving' > > > Subject: [AccessD] Shortcuts Again > > > > > > Dear List: > > > > > > I had a problem with two shortcuts on a menu having the same letter - > S. > > > When I look at it in design view the shortcuts are different - G and O. > > > When I go back to form view they revert to S. > > > > > > I tried the Save an text and Load from text trick. Starting with a > > > form with & in front of the S in both command buttons, I export to > > > text, change the ampersands to G and O. Then Load from text. In > > > design view, AOK. Form view - they revert to S underlined. > > > > > > So, I'm totally stumped. What to do? > > > > > > MTIA > > > > > > Rocky Smolin > > > Beach Access Software > > > 858-259-4334 > > > www.bchacc.com www.e-z-mrp.com > > > > > > Skype: rocky.smolin > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Mon Feb 23 17:08:27 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 23 Feb 2015 15:08:27 -0800 Subject: [AccessD] Shortcuts Again In-Reply-To: References: <27DA81972816438EA06DFE53FAA85811@HAL9007><54E8E3D7.7060106@gmail.com><624A9D0B320F4BE1AA53A649D8F4506D@HAL9007> Message-ID: <8BD729CC07BF4EC182D774368EB2103D@HAL9007> You go, girl. :) r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Monday, February 23, 2015 12:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shortcuts Again Good for you. Paid gigs are always welcome, and it sounds like the variety you're getting is great too. I've got my 2 girl choir accompanist jobs as well as an every other weekend church gig. I love the girl choir job, but since we rehearse for 2 main concerts each year the material is the same from week to week. The church gig gives me the freedom to play whatever I want for the prelude - whether it's the theme from a Hayo Miazaki movie like "How'ls Moving Castle" or arias like "Nessun Dorma" from "Turandot". But that's about all the variety I get! On Mon, Feb 23, 2015 at 1:40 PM, Rocky Smolin wrote: > Everywhere. :) Last week a Mardi Gras party with the Dixieland Band, a > jazz standards gig Friday night, and Saturday Cuban with a 14 piece Cuban band. > All paid, too!!!! > > Plus various jams for fun. IOW, as much as possible. :) > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet > Erbach > Sent: Monday, February 23, 2015 11:37 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Shortcuts Again > > More music, Rocky? More music is GOOD. Where are you playing? > > Janet > > On Sun, Feb 22, 2015 at 12:45 AM, Rocky Smolin > > wrote: > > > I failed. :) Actually I happened into a couple of interesting gigs > > last year so that gives me the illusion of productivity. > > > > And the guy that acquired my system sells it to people who need > > custom mods or data converted - stuff like that. > > > > It's all good - I get more cycling time and play more music. And the > > climate is benign. No complaints. > > > > How's that little boy? Not so little any more I'll wager. > > > > R > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > > Colby > > Sent: Saturday, February 21, 2015 12:00 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Shortcuts Again > > > > It did sound like a run time substitution of some sort. > > > > I thought you had retired. > > > > John W. Colby > > > > On 2/21/2015 2:30 PM, Rocky Smolin wrote: > > > Never mind. I figured it out. It wasn't Access - it was me. > > > > > > You see for this app, which is distributed, I have language tables > > > with all the control captions and message boxes so I can do > > > translations on the fly and it's easy to add a new language. > > > > > > So the translation for the command button Sales orders is &Sales > > > Orders. It doesn't matter what I put in the for, the caption on > > > the button is going to be replaced by what's in the table. Which > > > is...wait > > for it...&Sales Orders. > > > > > > Of all the things I considered as to why the shortcut was > > > reverting back to S, I forgot about the translation. > > > > > > Oh well, time to retire... > > > > > > Rocky Smolin > > > Beach Access Software > > > 858-259-4334 > > > www.bchacc.com > > > www.e-z-mrp.com > > > Skype: rocky.smolin > > > > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > > Smolin > > > Sent: Saturday, February 21, 2015 11:13 AM > > > To: 'Access Developers discussion and problem solving' > > > Subject: [AccessD] Shortcuts Again > > > > > > Dear List: > > > > > > I had a problem with two shortcuts on a menu having the same > > > letter - > S. > > > When I look at it in design view the shortcuts are different - G and O. > > > When I go back to form view they revert to S. > > > > > > I tried the Save an text and Load from text trick. Starting with > > > a form with & in front of the S in both command buttons, I export > > > to text, change the ampersands to G and O. Then Load from text. > > > In design view, AOK. Form view - they revert to S underlined. > > > > > > So, I'm totally stumped. What to do? > > > > > > MTIA > > > > > > Rocky Smolin > > > Beach Access Software > > > 858-259-4334 > > > www.bchacc.com www.e-z-mrp.com > > > > > > Skype: rocky.smolin > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 bradm at blackforestltd.com Fri Feb 27 07:24:31 2015 From: bradm at blackforestltd.com (Brad Marks) Date: Fri, 27 Feb 2015 13:24:31 +0000 Subject: [AccessD] How to Open Notepad (Maximized) to view a CSV file In-Reply-To: References: <727A17CF72A24B53B26045D8B5BC1851@HAL9007>, Message-ID: <1425043480964.1956@blackforestltd.com> All, I have an Access 2007 application that needs to open a CSV file with notepad (Maximized) instead of Excel. I have done some experimenting with both Shell and Application.FollowHyperlink with commands like this. Shell "notepad.exe C:\Test.csv" Application.FollowHyperlink ?C:\Test.csv" Shell opens the file with Notepad, but it is not maximized Application.FollowHyperlink will open the file maximized, but it opens it in Excel and I need it to be opened with Notepad. Is there a VBA instruction that will open a CSV file with Notepad with a Maximized screen? Thanks Brad From paul.hartland at googlemail.com Fri Feb 27 07:29:50 2015 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 27 Feb 2015 13:29:50 +0000 Subject: [AccessD] How to Open Notepad (Maximized) to view a CSV file In-Reply-To: <1425043480964.1956@blackforestltd.com> References: <727A17CF72A24B53B26045D8B5BC1851@HAL9007> <1425043480964.1956@blackforestltd.com> Message-ID: I use this code, opens any file Private Declare Function apiShellExecute Lib "shell32.dll" _ Alias "ShellExecuteA" _ (ByVal hWnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal nShowCmd As Long) _ As Long '***App Window Constants*** Public Const WIN_NORMAL = 1 'Open Normal Public Const WIN_MAX = 3 'Open Maximized Public Const WIN_MIN = 2 'Open Minimized '***Error Codes*** Private Const ERROR_SUCCESS = 32& Private Const ERROR_NO_ASSOC = 31& Private Const ERROR_OUT_OF_MEM = 0& Private Const ERROR_FILE_NOT_FOUND = 2& Private Const ERROR_PATH_NOT_FOUND = 3& Private Const ERROR_BAD_FORMAT = 11& '***************Usage Examples*********************** 'Open a folder: ?fHandleFile("C:\TEMP\",WIN_NORMAL) 'Call Email app: ?fHandleFile("mailto:dash10 at hotmail.com",WIN_NORMAL) 'Open URL: ?fHandleFile("http://home.att.net/~dashish", WIN_NORMAL) 'Handle Unknown extensions (call Open With Dialog): ' ?fHandleFile("C:\TEMP\TestThis",Win_Normal) 'Start Access instance: ' ?fHandleFile("I:\mdbs\CodeNStuff.mdb", Win_NORMAL) '**************************************************** Function fHandleFile(stFile As String, lShowHow As Long) Dim lRet As Long, varTaskID As Variant Dim stRet As String 'First try ShellExecute lRet = apiShellExecute(hWndAccessApp, vbNullString, _ stFile, vbNullString, vbNullString, lShowHow) If lRet > ERROR_SUCCESS Then stRet = vbNullString lRet = -1 Else Select Case lRet Case ERROR_NO_ASSOC: 'Try the OpenWith dialog varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " _ & stFile, WIN_NORMAL) lRet = (varTaskID <> 0) Case ERROR_OUT_OF_MEM: stRet = "Error: Out of Memory/Resources. Couldn't Execute!" Case ERROR_FILE_NOT_FOUND: stRet = "Error: File not found. Couldn't Execute!" Case ERROR_PATH_NOT_FOUND: stRet = "Error: Path not found. Couldn't Execute!" Case ERROR_BAD_FORMAT: stRet = "Error: Bad File Format. Couldn't Execute!" Case Else: End Select End If fHandleFile = lRet & _ IIf(stRet = "", vbNullString, ", " & stRet) End Function '************ Code End ********** So you would call fHandleFile("C:\Test.csv", WIN_MAX) On 27 February 2015 at 13:24, Brad Marks wrote: > All, > > I have an Access 2007 application that needs to open a CSV file with > notepad (Maximized) instead of Excel. > > I have done some experimenting with both Shell and > Application.FollowHyperlink with commands like this. > > > Shell "notepad.exe C:\Test.csv" > > > Application.FollowHyperlink ?C:\Test.csv" > > > > > Shell opens the file with Notepad, but it is not maximized > > Application.FollowHyperlink will open the file maximized, but it opens it > in Excel and I need it to be opened with Notepad. > > Is there a VBA instruction that will open a CSV file with Notepad with a > Maximized screen? > > Thanks > > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Paul Hartland paul.hartland at googlemail.com From jbodin at sbor.com Fri Feb 27 08:25:37 2015 From: jbodin at sbor.com (John Bodin) Date: Fri, 27 Feb 2015 14:25:37 +0000 Subject: [AccessD] How to Open Notepad (Maximized) to view a CSV file In-Reply-To: <1425043480964.1956@blackforestltd.com> References: <727A17CF72A24B53B26045D8B5BC1851@HAL9007>, <1425043480964.1956@blackforestltd.com> Message-ID: Hi Brad, there are parameters to the Shell that you can use for max/min/focus/nofocus. Here's the syntax for maximized with focus: shell("C:\Windows\Notepad.Exe C:\Temp\Foo.Txt",vbMaximizedFocus) HTH, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, February 27, 2015 8:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] How to Open Notepad (Maximized) to view a CSV file All, I have an Access 2007 application that needs to open a CSV file with notepad (Maximized) instead of Excel. I have done some experimenting with both Shell and Application.FollowHyperlink with commands like this. Shell "notepad.exe C:\Test.csv" Application.FollowHyperlink "C:\Test.csv" Shell opens the file with Notepad, but it is not maximized Application.FollowHyperlink will open the file maximized, but it opens it in Excel and I need it to be opened with Notepad. Is there a VBA instruction that will open a CSV file with Notepad with a Maximized screen? Thanks Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jerbach.db at gmail.com Fri Feb 27 08:44:36 2015 From: jerbach.db at gmail.com (Janet Erbach) Date: Fri, 27 Feb 2015 08:44:36 -0600 Subject: [AccessD] Automatic Update Function Message-ID: Hello all - Do any of you have a favorite approach/module that you use to automatically update the front end on the user's machine? My monster application from WIFI hell has had auto update issues as well as corruption issues. My co-worker that developed part of the app with me wrote an auto update module that Creates a batch file on the fly Closes Access Runs the batch file to copy the new front end to the user's machine and then re-opens access At least that's what's supposed to happen...there have been a number of times that I've been suspicious about whether or not this auto update is somehow triggering back-end corruption too, although I don't know why it would. There have been many times when the app is up and running fine on 10 machines and when the 11th machine starts up and goes into auto-update mode the whole thing comes crashing down. Maybe that's just coincidence. BTW, I'm implementing the 'write to CSV' option today to try and stop the corruption... Janet Erbach From bradm at blackforestltd.com Fri Feb 27 08:48:49 2015 From: bradm at blackforestltd.com (Brad Marks) Date: Fri, 27 Feb 2015 14:48:49 +0000 Subject: [AccessD] How to Open Notepad (Maximized) to view a CSV file In-Reply-To: References: <727A17CF72A24B53B26045D8B5BC1851@HAL9007>, <1425043480964.1956@blackforestltd.com>, Message-ID: <1425048539916.40926@blackforestltd.com> John and Paul, (I almost wrote John, Paul, George, and Ringo :-) Thanks for the help, I appreciate it. I now have it working nicely, plus I learned something new this morning. Thanks again, Brad ________________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Bodin Sent: Friday, February 27, 2015 8:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Open Notepad (Maximized) to view a CSV file Hi Brad, there are parameters to the Shell that you can use for max/min/focus/nofocus. Here's the syntax for maximized with focus: shell("C:\Windows\Notepad.Exe C:\Temp\Foo.Txt",vbMaximizedFocus) HTH, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, February 27, 2015 8:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] How to Open Notepad (Maximized) to view a CSV file All, I have an Access 2007 application that needs to open a CSV file with notepad (Maximized) instead of Excel. I have done some experimenting with both Shell and Application.FollowHyperlink with commands like this. Shell "notepad.exe C:\Test.csv" Application.FollowHyperlink "C:\Test.csv" Shell opens the file with Notepad, but it is not maximized Application.FollowHyperlink will open the file maximized, but it opens it in Excel and I need it to be opened with Notepad. Is there a VBA instruction that will open a CSV file with Notepad with a Maximized screen? Thanks Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jamesbutton at blueyonder.co.uk Fri Feb 27 09:25:20 2015 From: jamesbutton at blueyonder.co.uk (James Button) Date: Fri, 27 Feb 2015 15:25:20 -0000 Subject: [AccessD] Automatic Update Function In-Reply-To: References: Message-ID: My first consideration would be to check that the app has properly closed, and has actually finished tidy-up work processing before the download starts. Then, there is also the problem with ensuring the download has actually completed, and all the files registered, and any views, or extracted data entries cleared out before the app is restarted, and the restart locks the user out until the base data environment is setup. Then - why would you need to close the app - a more usual process is for the app to be started from a batch process that would check a keyset (in a flat .txt type file ) on the client machine matches the current one on the server/storage location, and if different, then redo the download of the entire front-end. Yes - that may take a while but the alternative is to have to be very sure that all the bits of the new version are included in the download. Then - there is checking that the client system is actually a full match for the sourcing system - and the other systems. ----------------------------- I am currently having to ship just 1 client of a group a 2003 version of an app that runs under 2007/2010 on all environments. That 1 client system reports the shipped 2010 file needs repairing and then, after 'repairing the 2010 download fails. If I convert the app to a 2003 file, and ship that - the client can upgrade it back to 2010 and all works! And .. all the client systems are maintained by a central support site - so should (Ha!) have the same setup! JimB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Friday, February 27, 2015 2:45 PM To: Database Advisors Subject: [AccessD] Automatic Update Function Hello all - Do any of you have a favorite approach/module that you use to automatically update the front end on the user's machine? My monster application from WIFI hell has had auto update issues as well as corruption issues. My co-worker that developed part of the app with me wrote an auto update module that Creates a batch file on the fly Closes Access Runs the batch file to copy the new front end to the user's machine and then re-opens access At least that's what's supposed to happen...there have been a number of times that I've been suspicious about whether or not this auto update is somehow triggering back-end corruption too, although I don't know why it would. There have been many times when the app is up and running fine on 10 machines and when the 11th machine starts up and goes into auto-update mode the whole thing comes crashing down. Maybe that's just coincidence. BTW, I'm implementing the 'write to CSV' option today to try and stop the corruption... Janet Erbach -- 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 Feb 27 09:34:45 2015 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Fri, 27 Feb 2015 15:34:45 +0000 Subject: [AccessD] Automatic Update Function In-Reply-To: References: Message-ID: My update process works as follows: The application front end has a table which holds the version number. When it starts up the application looks at a particular folder where the most recent version sits and checks if the version number is greater than the one the user is currently running. If there is a new version, the application then calls an existing vbscript which is stored in the same place as the application latest version file. The running, older copy of the application then shuts itself down. The vbscript then checks the folder where the user's copy of the application resides and sits in a loop waiting for the laccdb file to disappear. When that happens the script then copies the new version into place and launches it. If the loop waiting for the lock file to go away takes longer than 60 seconds it gives up and displays a message to the user. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Friday, February 27, 2015 9:45 AM To: Database Advisors Subject: [AccessD] Automatic Update Function Hello all - Do any of you have a favorite approach/module that you use to automatically update the front end on the user's machine? My monster application from WIFI hell has had auto update issues as well as corruption issues. My co-worker that developed part of the app with me wrote an auto update module that Creates a batch file on the fly Closes Access Runs the batch file to copy the new front end to the user's machine and then re-opens access At least that's what's supposed to happen...there have been a number of times that I've been suspicious about whether or not this auto update is somehow triggering back-end corruption too, although I don't know why it would. There have been many times when the app is up and running fine on 10 machines and when the 11th machine starts up and goes into auto-update mode the whole thing comes crashing down. Maybe that's just coincidence. BTW, I'm implementing the 'write to CSV' option today to try and stop the corruption... Janet Erbach -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Fri Feb 27 09:43:27 2015 From: jwcolby at gmail.com (John W. Colby) Date: Fri, 27 Feb 2015 10:43:27 -0500 Subject: [AccessD] Automatic Update Function In-Reply-To: References: Message-ID: <54F0909F.6050301@gmail.com> I used a simpler method. A batch file on the user's machine just copies the FE down from a server location to the local machine and fires it up. If I make a change I place the new version in that dir and tell everyone to get out and back in. This does mean that everyone always copies the file every time they start the app but the overhead isn't usually so great that it makes a huge difference. John W. Colby On 2/27/2015 10:34 AM, Heenan, Lambert wrote: > My update process works as follows: > > The application front end has a table which holds the version number. When it starts up the application looks at a particular folder where the most recent version sits and checks if the version number is greater than the one the user is currently running. > > If there is a new version, the application then calls an existing vbscript which is stored in the same place as the application latest version file. The running, older copy of the application then shuts itself down. > > The vbscript then checks the folder where the user's copy of the application resides and sits in a loop waiting for the laccdb file to disappear. When that happens the script then copies the new version into place and launches it. > > > If the loop waiting for the lock file to go away takes longer than 60 seconds it gives up and displays a message to the user. > > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach > Sent: Friday, February 27, 2015 9:45 AM > To: Database Advisors > Subject: [AccessD] Automatic Update Function > > Hello all - > > Do any of you have a favorite approach/module that you use to automatically update the front end on the user's machine? My monster application from WIFI hell has had auto update issues as well as corruption issues. > > My co-worker that developed part of the app with me wrote an auto update module that > > Creates a batch file on the fly > Closes Access > Runs the batch file to copy the new front end to the user's machine and then re-opens access > > At least that's what's supposed to happen...there have been a number of times that I've been suspicious about whether or not this auto update is somehow triggering back-end corruption too, although I don't know why it would. There have been many times when the app is up and running fine on > 10 machines and when the 11th machine starts up and goes into auto-update mode the whole thing comes crashing down. Maybe that's just coincidence. > > BTW, I'm implementing the 'write to CSV' option today to try and stop the corruption... > > Janet Erbach > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at verizon.net Fri Feb 27 09:48:07 2015 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 27 Feb 2015 10:48:07 -0500 Subject: [AccessD] Automatic Update Function In-Reply-To: References: Message-ID: <56A13F9EEB88408C8DCC1FA6241397FC@XPS> You can't beat Tony Towes AutoFE Updater. http://autofeupdater.com/ While it's no longer free, the price is reasonable for everything it does. You'd spend far more trying to develop all that, especially if you deal with a lot of different environments. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Friday, February 27, 2015 09:45 AM To: Database Advisors Subject: [AccessD] Automatic Update Function Hello all - Do any of you have a favorite approach/module that you use to automatically update the front end on the user's machine? My monster application from WIFI hell has had auto update issues as well as corruption issues. My co-worker that developed part of the app with me wrote an auto update module that Creates a batch file on the fly Closes Access Runs the batch file to copy the new front end to the user's machine and then re-opens access At least that's what's supposed to happen...there have been a number of times that I've been suspicious about whether or not this auto update is somehow triggering back-end corruption too, although I don't know why it would. There have been many times when the app is up and running fine on 10 machines and when the 11th machine starts up and goes into auto-update mode the whole thing comes crashing down. Maybe that's just coincidence. BTW, I'm implementing the 'write to CSV' option today to try and stop the corruption... Janet Erbach -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Fri Feb 27 11:50:34 2015 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 27 Feb 2015 09:50:34 -0800 Subject: [AccessD] Automatic Update Function In-Reply-To: <54F0909F.6050301@gmail.com> References: <54F0909F.6050301@gmail.com> Message-ID: I do something similar to what JC does, but I don't copy over every time. I number each mdb and check the network version versus the users current version. If it is different, copy it over and launch, otherwise just launch the local copy. I check for different rather that greater because it's possible that a version has to be rolled back. I originally wrote the launcher in vb.net then rewrote it in c#. Works great. On Feb 27, 2015 7:45 AM, "John W. Colby" wrote: > I used a simpler method. A batch file on the user's machine just copies > the FE down from a server location to the local machine and fires it up. > If I make a change I place the new version in that dir and tell everyone to > get out and back in. This does mean that everyone always copies the file > every time they start the app but the overhead isn't usually so great that > it makes a huge difference. > > John W. Colby > > On 2/27/2015 10:34 AM, Heenan, Lambert wrote: > >> My update process works as follows: >> >> The application front end has a table which holds the version number. >> When it starts up the application looks at a particular folder where the >> most recent version sits and checks if the version number is greater than >> the one the user is currently running. >> >> If there is a new version, the application then calls an existing >> vbscript which is stored in the same place as the application latest >> version file. The running, older copy of the application then shuts itself >> down. >> >> The vbscript then checks the folder where the user's copy of the >> application resides and sits in a loop waiting for the laccdb file to >> disappear. When that happens the script then copies the new version into >> place and launches it. >> >> >> If the loop waiting for the lock file to go away takes longer than 60 >> seconds it gives up and displays a message to the user. >> >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces@ >> databaseadvisors.com] On Behalf Of Janet Erbach >> Sent: Friday, February 27, 2015 9:45 AM >> To: Database Advisors >> Subject: [AccessD] Automatic Update Function >> >> Hello all - >> >> Do any of you have a favorite approach/module that you use to >> automatically update the front end on the user's machine? My monster >> application from WIFI hell has had auto update issues as well as corruption >> issues. >> >> My co-worker that developed part of the app with me wrote an auto update >> module that >> >> Creates a batch file on the fly >> Closes Access >> Runs the batch file to copy the new front end to the user's machine and >> then re-opens access >> >> At least that's what's supposed to happen...there have been a number of >> times that I've been suspicious about whether or not this auto update is >> somehow triggering back-end corruption too, although I don't know why it >> would. There have been many times when the app is up and running fine on >> 10 machines and when the 11th machine starts up and goes into auto-update >> mode the whole thing comes crashing down. Maybe that's just coincidence. >> >> BTW, I'm implementing the 'write to CSV' option today to try and stop the >> corruption... >> >> Janet Erbach >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 dw-murphy at cox.net Fri Feb 27 12:05:59 2015 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 27 Feb 2015 10:05:59 -0800 Subject: [AccessD] Access 2010 and Visual Studio 2013 interaction Message-ID: <005801d052b8$0a4a83a0$1edf8ae0$@cox.net> Folks, A few months ago I installed VS 2013 on my development machine. Had been using 2010. Now when working on an Access project, Access 2010, when I open the code window for the first time I get a dialog titled "Visual Studio 2010 (Isolated) - ENU" that says "Please wait while Windows configures Microsoft Visual Studio 2010 Shell (Isolated) - ENU... " I can cancel this window and everything runs as it did before the VS 2013 installation. I did not remove VS 2010 as I still have projects I maintain with it. This isn't a big deal, but it would be nice to know what is causing this? Doug From jamesbutton at blueyonder.co.uk Fri Feb 27 12:58:15 2015 From: jamesbutton at blueyonder.co.uk (James Button) Date: Fri, 27 Feb 2015 18:58:15 -0000 Subject: [AccessD] Automatic Update Function In-Reply-To: References: Message-ID: I'd be wary about the process that has the version in a local store - and the implications of whatever else is in local stores - I'd prefer to have a check before actually starting the application's environment, and 'fix' the facility before the windows OS begins to start it up. Then again I try to work on the basis that idiot-proof is having to deal with improved models getting even more help from the OS and software facility writers all the time, so they don't need any extra help from me! However - the question is what is in the setup managed by Janet and her associates. JimB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 27, 2015 3:35 PM To: 'Database Advisors' Subject: Re: [AccessD] Automatic Update Function My update process works as follows: The application front end has a table which holds the version number. When it starts up the application looks at a particular folder where the most recent version sits and checks if the version number is greater than the one the user is currently running. If there is a new version, the application then calls an existing vbscript which is stored in the same place as the application latest version file. The running, older copy of the application then shuts itself down. The vbscript then checks the folder where the user's copy of the application resides and sits in a loop waiting for the laccdb file to disappear. When that happens the script then copies the new version into place and launches it. If the loop waiting for the lock file to go away takes longer than 60 seconds it gives up and displays a message to the user. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Friday, February 27, 2015 9:45 AM To: Database Advisors Subject: [AccessD] Automatic Update Function Hello all - Do any of you have a favorite approach/module that you use to automatically update the front end on the user's machine? My monster application from WIFI hell has had auto update issues as well as corruption issues. My co-worker that developed part of the app with me wrote an auto update module that Creates a batch file on the fly Closes Access Runs the batch file to copy the new front end to the user's machine and then re-opens access At least that's what's supposed to happen...there have been a number of times that I've been suspicious about whether or not this auto update is somehow triggering back-end corruption too, although I don't know why it would. There have been many times when the app is up and running fine on 10 machines and when the 11th machine starts up and goes into auto-update mode the whole thing comes crashing down. Maybe that's just coincidence. BTW, I'm implementing the 'write to CSV' option today to try and stop the corruption... Janet Erbach -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Feb 27 14:28:56 2015 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 28 Feb 2015 07:28:56 +1100 Subject: [AccessD] Automatic Update Function In-Reply-To: References: Message-ID: <54F0D388.23284.1CE3FD3A@stuart.lexacorp.com.pg> Just back in Port Moresby after three weeks in Bougainville working on electoral roll updates where we had a dozen DPOs working 24/7 using a split Access application. BER.accdb is the front end. This is the contents of a .cmd file that sits on each PC (with a shrotcut to it on the desktop): @copy \\BERMSERV\BERMS\BER.accdb c:\BER @START C:\BER\BER.accdb I can drop a new copy of BER.accdb on the server at anytime. Every time the operator starts the application, they get a new copy of it. It is also handy in avoiding bloat if you use termporary tables in the FE. BTW, don't write to CVS (comma separated values)- that format is a PITA to work with. use Tab separated) -- Stuart On 27 Feb 2015 at 8:44, Janet Erbach wrote: > Hello all - > > Do any of you have a favorite approach/module that you use to > automatically update the front end on the user's machine? My monster > application from WIFI hell has had auto update issues as well as > corruption issues. > > My co-worker that developed part of the app with me wrote an auto > update module that > > Creates a batch file on the fly > Closes Access > Runs the batch file to copy the new front end to the user's machine > and then re-opens access > > At least that's what's supposed to happen...there have been a number > of times that I've been suspicious about whether or not this auto > update is somehow triggering back-end corruption too, although I don't > know why it would. There have been many times when the app is up and > running fine on 10 machines and when the 11th machine starts up and > goes into auto-update mode the whole thing comes crashing down. Maybe > that's just coincidence. > > BTW, I'm implementing the 'write to CSV' option today to try and stop > the corruption... > > Janet Erbach > -- > 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 Feb 27 15:57:41 2015 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Fri, 27 Feb 2015 21:57:41 +0000 Subject: [AccessD] Automatic Update Function In-Reply-To: References: Message-ID: " I'd be wary about the process that has the version in a local store" - why? " - and the implications of whatever else is in local stores " - what implications would those be? More correctly, what are you assuming here? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of James Button Sent: Friday, February 27, 2015 1:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automatic Update Function I'd be wary about the process that has the version in a local store - and the implications of whatever else is in local stores - I'd prefer to have a check before actually starting the application's environment, and 'fix' the facility before the windows OS begins to start it up. Then again I try to work on the basis that idiot-proof is having to deal with improved models getting even more help from the OS and software facility writers all the time, so they don't need any extra help from me! However - the question is what is in the setup managed by Janet and her associates. JimB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 27, 2015 3:35 PM To: 'Database Advisors' Subject: Re: [AccessD] Automatic Update Function My update process works as follows: The application front end has a table which holds the version number. When it starts up the application looks at a particular folder where the most recent version sits and checks if the version number is greater than the one the user is currently running. If there is a new version, the application then calls an existing vbscript which is stored in the same place as the application latest version file. The running, older copy of the application then shuts itself down. The vbscript then checks the folder where the user's copy of the application resides and sits in a loop waiting for the laccdb file to disappear. When that happens the script then copies the new version into place and launches it. If the loop waiting for the lock file to go away takes longer than 60 seconds it gives up and displays a message to the user. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Friday, February 27, 2015 9:45 AM To: Database Advisors Subject: [AccessD] Automatic Update Function Hello all - Do any of you have a favorite approach/module that you use to automatically update the front end on the user's machine? My monster application from WIFI hell has had auto update issues as well as corruption issues. My co-worker that developed part of the app with me wrote an auto update module that Creates a batch file on the fly Closes Access Runs the batch file to copy the new front end to the user's machine and then re-opens access At least that's what's supposed to happen...there have been a number of times that I've been suspicious about whether or not this auto update is somehow triggering back-end corruption too, although I don't know why it would. There have been many times when the app is up and running fine on 10 machines and when the 11th machine starts up and goes into auto-update mode the whole thing comes crashing down. Maybe that's just coincidence. BTW, I'm implementing the 'write to CSV' option today to try and stop the corruption... Janet Erbach -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jamesbutton at blueyonder.co.uk Fri Feb 27 16:35:11 2015 From: jamesbutton at blueyonder.co.uk (James Button) Date: Fri, 27 Feb 2015 22:35:11 -0000 Subject: [AccessD] Automatic Update Function In-Reply-To: References: Message-ID: I am not saying there is any difficult to surmount problems with having data in local database tables, just that I would prefer to be able to totally replace the front-end facility with the batch copy process. Not so much KISS as Keep It Dead Simple - and avoid anything on the local system that is part of the downloaded app, rather than a conditioner to have that local copy completely replaced. Having version details or control values in the tables managed by the app requires the app, or in this case the DBMS to run to check and also to update those values. JimB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 27, 2015 9:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automatic Update Function " I'd be wary about the process that has the version in a local store" - why? " - and the implications of whatever else is in local stores " - what implications would those be? More correctly, what are you assuming here? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of James Button Sent: Friday, February 27, 2015 1:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automatic Update Function I'd be wary about the process that has the version in a local store - and the implications of whatever else is in local stores - I'd prefer to have a check before actually starting the application's environment, and 'fix' the facility before the windows OS begins to start it up. Then again I try to work on the basis that idiot-proof is having to deal with improved models getting even more help from the OS and software facility writers all the time, so they don't need any extra help from me! However - the question is what is in the setup managed by Janet and her associates. JimB -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 27, 2015 3:35 PM To: 'Database Advisors' Subject: Re: [AccessD] Automatic Update Function My update process works as follows: The application front end has a table which holds the version number. When it starts up the application looks at a particular folder where the most recent version sits and checks if the version number is greater than the one the user is currently running. If there is a new version, the application then calls an existing vbscript which is stored in the same place as the application latest version file. The running, older copy of the application then shuts itself down. The vbscript then checks the folder where the user's copy of the application resides and sits in a loop waiting for the laccdb file to disappear. When that happens the script then copies the new version into place and launches it. If the loop waiting for the lock file to go away takes longer than 60 seconds it gives up and displays a message to the user. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach Sent: Friday, February 27, 2015 9:45 AM To: Database Advisors Subject: [AccessD] Automatic Update Function Hello all - Do any of you have a favorite approach/module that you use to automatically update the front end on the user's machine? My monster application from WIFI hell has had auto update issues as well as corruption issues. My co-worker that developed part of the app with me wrote an auto update module that Creates a batch file on the fly Closes Access Runs the batch file to copy the new front end to the user's machine and then re-opens access At least that's what's supposed to happen...there have been a number of times that I've been suspicious about whether or not this auto update is somehow triggering back-end corruption too, although I don't know why it would. There have been many times when the app is up and running fine on 10 machines and when the 11th machine starts up and goes into auto-update mode the whole thing comes crashing down. Maybe that's just coincidence. BTW, I'm implementing the 'write to CSV' option today to try and stop the corruption... Janet Erbach -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dbdoug at gmail.com Fri Feb 27 23:56:41 2015 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 27 Feb 2015 21:56:41 -0800 Subject: [AccessD] Automatic Update Function In-Reply-To: References: Message-ID: Damn you Stuart; why couldn't I (and everyone else) have figured out this solution :) With current network speeds, it's only a 2 second or so lag, you can revert to a previous version, and you don't have to explain Compact & Repair to all your clients. Doug On Fri, Feb 27, 2015 at 1:57 PM, Heenan, Lambert wrote: > " I'd be wary about the process that has the version in a local store" - > why? > > " - and the implications of whatever else is in local stores " - what > implications would those be? More correctly, what are you assuming here? > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of James Button > Sent: Friday, February 27, 2015 1:58 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Automatic Update Function > > I'd be wary about the process that has the version in a local store - and > the implications of whatever else is in local stores - > > I'd prefer to have a check before actually starting the application's > environment, and 'fix' the facility before the windows OS begins to start > it up. > > Then again I try to work on the basis that idiot-proof is having to deal > with improved models getting even more help from the OS and software > facility writers all the time, so they don't need any extra help from me! > > > However - the question is what is in the setup managed by Janet and her > associates. > > JimB > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, February 27, 2015 3:35 PM > To: 'Database Advisors' > Subject: Re: [AccessD] Automatic Update Function > > My update process works as follows: > > The application front end has a table which holds the version number. When > it starts up the application looks at a particular folder where the most > recent version sits and checks if the version number is greater than the > one the user is currently running. > > If there is a new version, the application then calls an existing vbscript > which is stored in the same place as the application latest version file. > The running, older copy of the application then shuts itself down. > > The vbscript then checks the folder where the user's copy of the > application resides and sits in a loop waiting for the laccdb file to > disappear. When that happens the script then copies the new version into > place and launches it. > > > If the loop waiting for the lock file to go away takes longer than 60 > seconds it gives up and displays a message to the user. > > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Janet Erbach > Sent: Friday, February 27, 2015 9:45 AM > To: Database Advisors > Subject: [AccessD] Automatic Update Function > > Hello all - > > Do any of you have a favorite approach/module that you use to > automatically update the front end on the user's machine? My monster > application from WIFI hell has had auto update issues as well as corruption > issues. > > My co-worker that developed part of the app with me wrote an auto update > module that > > Creates a batch file on the fly > Closes Access > Runs the batch file to copy the new front end to the user's machine and > then re-opens access > > At least that's what's supposed to happen...there have been a number of > times that I've been suspicious about whether or not this auto update is > somehow triggering back-end corruption too, although I don't know why it > would. There have been many times when the app is up and running fine on > 10 machines and when the 11th machine starts up and goes into auto-update > mode the whole thing comes crashing down. Maybe that's just coincidence. > > BTW, I'm implementing the 'write to CSV' option today to try and stop the > corruption... > > Janet Erbach > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 09:26:56 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 17:26:56 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <1421580844680.67486@cactus.dk> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk> Message-ID: <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> Hi, There are three fields into the same form [result_zscore_ostiki_piknotita]--> decimal [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo box with record source SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; into [0simperasmata].tip are saved three different values "z", "t" and "zt" what I need is to limit the drop down list the based on [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] values I tried: Private Sub result_zscore_ostiki_piknotita_AfterUpdate() If Not IsNull(result_zscore_ostiki_piknotita) Then Me.simperasma_1.RowSourceType = "0simperasmata" Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip FROM 0simperasmata " & _ WHERE(([0simperasmata].tip) = "z") Else End If End Sub but it doen't work any help please? thank's /kostas From rockysmolin at bchacc.com Sat Feb 28 09:29:56 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 07:29:56 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk> <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> Message-ID: Have you put a break point in that after update module and stepped through it to see if it's executing? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 7:27 AM To: Access Developers discussion and problem solving Subject: [AccessD] limit drop down from another field... Hi, There are three fields into the same form [result_zscore_ostiki_piknotita]--> decimal [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo box with record source SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; into [0simperasmata].tip are saved three different values "z", "t" and "zt" what I need is to limit the drop down list the based on [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] values I tried: Private Sub result_zscore_ostiki_piknotita_AfterUpdate() If Not IsNull(result_zscore_ostiki_piknotita) Then Me.simperasma_1.RowSourceType = "0simperasmata" Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip FROM 0simperasmata " & _ WHERE(([0simperasmata].tip) = "z") Else End If End Sub but it doen't work any help please? thank's /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sat Feb 28 09:35:10 2015 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 28 Feb 2015 10:35:10 -0500 Subject: [AccessD] limit drop down from another field... In-Reply-To: <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg> <8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC> <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk> <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> Message-ID: When you say it doesn't work, do you mean the control isn't populating at all or that it isn't populating as expected? Susan H. On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal > [simperasma_1] --> combo box with record source > SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, > [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip > FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kost36 at otenet.gr Sat Feb 28 09:41:56 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 17:41:56 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> Message-ID: Hi Rocky, yes, it stops on Where /kostas -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 5:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Have you put a break point in that after update module and stepped through it to see if it's executing? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 7:27 AM To: Access Developers discussion and problem solving Subject: [AccessD] limit drop down from another field... Hi, There are three fields into the same form [result_zscore_ostiki_piknotita]--> decimal [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo box with record source SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; into [0simperasmata].tip are saved three different values "z", "t" and "zt" what I need is to limit the drop down list the based on [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] values I tried: Private Sub result_zscore_ostiki_piknotita_AfterUpdate() If Not IsNull(result_zscore_ostiki_piknotita) Then Me.simperasma_1.RowSourceType = "0simperasmata" Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip FROM 0simperasmata " & _ WHERE(([0simperasmata].tip) = "z") Else End If End Sub but it doen't work any help please? thank's /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 09:54:55 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 07:54:55 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> Message-ID: <5D0202C2F1F2467DBD4CD5B488780DCE@HAL9007> And what does the combo box show after executing the .RowSource line? Here's a thing I do when I can't figure out why a piece of SQL isn't working: I put a text box on the form and set the text box = to the combo box row source. Then I copy that SQL statement out of the text box and paste it into the SQL view of a new query. Then look at it in design view and also run it to see what it actually retrieves from the tables. 1/2 the time I find either a typo or it runs but doesn't give me what I thought I was going to get but looking at the design view it becomes obvious. (1/2 the time it doesn't.:)) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 7:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Hi Rocky, yes, it stops on Where /kostas -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 5:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Have you put a break point in that after update module and stepped through it to see if it's executing? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 7:27 AM To: Access Developers discussion and problem solving Subject: [AccessD] limit drop down from another field... Hi, There are three fields into the same form [result_zscore_ostiki_piknotita]--> decimal [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo box with record source SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; into [0simperasmata].tip are saved three different values "z", "t" and "zt" what I need is to limit the drop down list the based on [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] values I tried: Private Sub result_zscore_ostiki_piknotita_AfterUpdate() If Not IsNull(result_zscore_ostiki_piknotita) Then Me.simperasma_1.RowSourceType = "0simperasmata" Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip FROM 0simperasmata " & _ WHERE(([0simperasmata].tip) = "z") Else End If End Sub but it doen't work any help please? thank's /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 10:08:14 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 18:08:14 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC><729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> Message-ID: <88C0C6D1A7B74C52A785BD36F532A970@kost36PC> Hi Suzan, it breaks on line WHERE.... with a compile error Sub or Function not defined /kostas -----?????? ??????----- From: Susan Harkins Sent: Saturday, February 28, 2015 5:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... When you say it doesn't work, do you mean the control isn't populating at all or that it isn't populating as expected? Susan H. On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal > [simperasma_1] --> combo box with record source > SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, > [0simperasmata].tip FROM 0simperasmata ORDER BY > [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip > FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 10:13:45 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 08:13:45 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: <88C0C6D1A7B74C52A785BD36F532A970@kost36PC> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC><729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <88C0C6D1A7B74C52A785BD36F532A970@kost36PC> Message-ID: <97AC8AA30E8048F09EB189E426A2733C@HAL9007> What is 0simperasmata? AFAIK, row Source types are limited to Table/Query, Value List, and Field List. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Hi Suzan, it breaks on line WHERE.... with a compile error Sub or Function not defined /kostas -----?????? ??????----- From: Susan Harkins Sent: Saturday, February 28, 2015 5:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... When you say it doesn't work, do you mean the control isn't populating at all or that it isn't populating as expected? Susan H. On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at gmail.com Sat Feb 28 10:16:54 2015 From: jwcolby at gmail.com (John W. Colby) Date: Sat, 28 Feb 2015 11:16:54 -0500 Subject: [AccessD] limit drop down from another field... In-Reply-To: <5D0202C2F1F2467DBD4CD5B488780DCE@HAL9007> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <5D0202C2F1F2467DBD4CD5B488780DCE@HAL9007> Message-ID: <54F1E9F6.4060306@gmail.com> +1 John W. Colby On 2/28/2015 10:54 AM, Rocky Smolin wrote: > And what does the combo box show after executing the .RowSource line? > > Here's a thing I do when I can't figure out why a piece of SQL isn't > working: I put a text box on the form and set the text box = to the combo > box row source. Then I copy that SQL statement out of the text box and > paste it into the SQL view of a new query. Then look at it in design view > and also run it to see what it actually retrieves from the tables. 1/2 the > time I find either a typo or it runs but doesn't give me what I thought I > was going to get but looking at the design view it becomes obvious. (1/2 > the time it doesn't.:)) > > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 7:42 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Hi Rocky, > yes, it stops on Where > > /kostas > > -----?????? ??????----- > From: Rocky Smolin > Sent: Saturday, February 28, 2015 5:29 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Have you put a break point in that after update module and stepped through > it to see if it's executing? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 7:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo box > with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY > [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip > FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 10:20:32 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 18:20:32 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <97AC8AA30E8048F09EB189E426A2733C@HAL9007> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC><729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><88C0C6D1A7B74C52A785BD36F532A970@kost36PC> <97AC8AA30E8048F09EB189E426A2733C@HAL9007> Message-ID: <44EA757C412C403E9AB8B099896A7E45@kost36PC> ID_symperasmata -> autonumber simperasma --> Short text (250) tip --> Short text (2) /kostas -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 6:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... What is 0simperasmata? AFAIK, row Source types are limited to Table/Query, Value List, and Field List. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Hi Suzan, it breaks on line WHERE.... with a compile error Sub or Function not defined /kostas -----?????? ??????----- From: Susan Harkins Sent: Saturday, February 28, 2015 5:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... When you say it doesn't work, do you mean the control isn't populating at all or that it isn't populating as expected? Susan H. On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 10:27:25 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 18:27:25 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <97AC8AA30E8048F09EB189E426A2733C@HAL9007> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC><729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><88C0C6D1A7B74C52A785BD36F532A970@kost36PC> <97AC8AA30E8048F09EB189E426A2733C@HAL9007> Message-ID: <10A90641FA1042F69CBD750CF43EE9A1@kost36PC> 0simperasmata is a table on which combo simperasma_1 is based record source SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; column Count 3 column widths 0cm /kostas -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 6:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... What is 0simperasmata? AFAIK, row Source types are limited to Table/Query, Value List, and Field List. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Hi Suzan, it breaks on line WHERE.... with a compile error Sub or Function not defined /kostas -----?????? ??????----- From: Susan Harkins Sent: Saturday, February 28, 2015 5:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... When you say it doesn't work, do you mean the control isn't populating at all or that it isn't populating as expected? Susan H. On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 10:55:28 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 08:55:28 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: <10A90641FA1042F69CBD750CF43EE9A1@kost36PC> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC><729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><88C0C6D1A7B74C52A785BD36F532A970@kost36PC><97AC8AA30E8048F09EB189E426A2733C@HAL9007> <10A90641FA1042F69CBD750CF43EE9A1@kost36PC> Message-ID: <3F2C4F95376849BA855E21A60D865109@HAL9007> Then I think your Row Source type has to be Table/Query - no? Try that and see if it will compile. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 8:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... 0simperasmata is a table on which combo simperasma_1 is based record source SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; column Count 3 column widths 0cm /kostas -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 6:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... What is 0simperasmata? AFAIK, row Source types are limited to Table/Query, Value List, and Field List. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Hi Suzan, it breaks on line WHERE.... with a compile error Sub or Function not defined /kostas -----?????? ??????----- From: Susan Harkins Sent: Saturday, February 28, 2015 5:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... When you say it doesn't work, do you mean the control isn't populating at all or that it isn't populating as expected? Susan H. On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 11:07:08 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 19:07:08 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <3F2C4F95376849BA855E21A60D865109@HAL9007> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC><729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><88C0C6D1A7B74C52A785BD36F532A970@kost36PC><97AC8AA30E8048F09EB189E426A2733C@HAL9007><10A90641FA1042F69CBD750CF43EE9A1@kost36PC> <3F2C4F95376849BA855E21A60D865109@HAL9007> Message-ID: <5C062A723B964E8D8A8CAEE407280509@kost36PC> I have already done this... Me.simperasma_1.RowSourceType = "0simperasmata" I can't imagine anything else -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 6:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Then I think your Row Source type has to be Table/Query - no? Try that and see if it will compile. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 8:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... 0simperasmata is a table on which combo simperasma_1 is based record source SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; column Count 3 column widths 0cm /kostas -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 6:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... What is 0simperasmata? AFAIK, row Source types are limited to Table/Query, Value List, and Field List. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Hi Suzan, it breaks on line WHERE.... with a compile error Sub or Function not defined /kostas -----?????? ??????----- From: Susan Harkins Sent: Saturday, February 28, 2015 5:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... When you say it doesn't work, do you mean the control isn't populating at all or that it isn't populating as expected? Susan H. On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 11:09:46 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 09:09:46 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: <5C062A723B964E8D8A8CAEE407280509@kost36PC> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC><729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><88C0C6D1A7B74C52A785BD36F532A970@kost36PC><97AC8AA30E8048F09EB189E426A2733C@HAL9007><10A90641FA1042F69CBD750CF43EE9A1@kost36PC><3F2C4F95376849BA855E21A60D865109@HAL9007> <5C062A723B964E8D8A8CAEE407280509@kost36PC> Message-ID: <643BD0F6082A4A9EA6E9F037D9C14034@HAL9007> Try commenting that line out and setting the RowSource Type property of the combo box to Table/Query R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I have already done this... Me.simperasma_1.RowSourceType = "0simperasmata" I can't imagine anything else -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 6:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Then I think your Row Source type has to be Table/Query - no? Try that and see if it will compile. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 8:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... 0simperasmata is a table on which combo simperasma_1 is based record source SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; column Count 3 column widths 0cm /kostas -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 6:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... What is 0simperasmata? AFAIK, row Source types are limited to Table/Query, Value List, and Field List. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Hi Suzan, it breaks on line WHERE.... with a compile error Sub or Function not defined /kostas -----?????? ??????----- From: Susan Harkins Sent: Saturday, February 28, 2015 5:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... When you say it doesn't work, do you mean the control isn't populating at all or that it isn't populating as expected? Susan H. On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at gmail.com Sat Feb 28 11:13:18 2015 From: jwcolby at gmail.com (John W. Colby) Date: Sat, 28 Feb 2015 12:13:18 -0500 Subject: [AccessD] limit drop down from another field... In-Reply-To: <643BD0F6082A4A9EA6E9F037D9C14034@HAL9007> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC><729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><88C0C6D1A7B74C52A785BD36F532A970@kost36PC><97AC8AA30E8048F09EB189E426A2733C@HAL9007><10A90641FA1042F69CBD750CF43EE9A1@kost36PC><3F2C4F95376849BA855E21A60D865109@HAL9007> <5C062A723B964E8D8A8CAEE407280509@kost36PC> <643BD0F6082A4A9EA6E9F037D9C14034@HAL9007> Message-ID: <54F1F72E.10409@gmail.com> I am thinking that perhaps " 0simperasmata " is the local language equivalent of table/query? John W. Colby On 2/28/2015 12:09 PM, Rocky Smolin wrote: > Try commenting that line out and setting the RowSource Type property of the > combo box to Table/Query > > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > I have already done this... > Me.simperasma_1.RowSourceType = "0simperasmata" > > I can't imagine anything else > > > -----?????? ??????----- > From: Rocky Smolin > Sent: Saturday, February 28, 2015 6:55 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Then I think your Row Source type has to be Table/Query - no? Try that and > see if it will compile. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 8:27 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > 0simperasmata is a table on which combo simperasma_1 is based record source > SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, > [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; > > column Count 3 > column widths 0cm > > /kostas > > -----?????? ??????----- > From: Rocky Smolin > Sent: Saturday, February 28, 2015 6:13 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > What is 0simperasmata? AFAIK, row Source types are limited to Table/Query, > Value List, and Field List. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 8:08 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Hi Suzan, > it breaks on line WHERE.... > with a compile error Sub or Function not defined > > /kostas > > -----?????? ??????----- > From: Susan Harkins > Sent: Saturday, February 28, 2015 5:35 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > When you say it doesn't work, do you mean the control isn't populating at > all or that it isn't populating as expected? > > Susan H. > > On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis > wrote: > >> Hi, >> There are three fields into the same form >> >> [result_zscore_ostiki_piknotita]--> decimal >> [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo >> box with record source SELECT [0simperasmata].ID_symperasmata, >> [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata >> ORDER BY [0simperasmata].simperasma; >> >> into [0simperasmata].tip are saved three different values "z", "t" and >> "zt" >> >> what I need is to limit the drop down list the based on >> [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] >> values >> >> I tried: >> >> Private Sub result_zscore_ostiki_piknotita_AfterUpdate() >> If Not IsNull(result_zscore_ostiki_piknotita) Then >> Me.simperasma_1.RowSourceType = "0simperasmata" >> Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, >> tip FROM 0simperasmata " & _ >> WHERE(([0simperasmata].tip) = "z") >> Else >> End If >> End Sub >> >> but it doen't work >> >> any help please? >> thank's >> /kostas >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 11:31:27 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 19:31:27 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <54F1F72E.10409@gmail.com> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC><729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><88C0C6D1A7B74C52A785BD36F532A970@kost36PC><97AC8AA30E8048F09EB189E426A2733C@HAL9007><10A90641FA1042F69CBD750CF43EE9A1@kost36PC><3F2C4F95376849BA855E21A60D865109@HAL9007> <5C062A723B964E8D8A8CAEE407280509@kost36PC><643BD0F6082A4A9EA6E9F037D9C14034@HAL9007> <54F1F72E.10409@gmail.com> Message-ID: Hi John, yes it's the greekish word for something like "conjectural" but I never use greek language or characters as table names of field names as well so table's title is in latin characters /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 7:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I am thinking that perhaps " 0simperasmata " is the local language equivalent of table/query? John W. Colby On 2/28/2015 12:09 PM, Rocky Smolin wrote: > Try commenting that line out and setting the RowSource Type property of > the > combo box to Table/Query > > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > I have already done this... > Me.simperasma_1.RowSourceType = "0simperasmata" > > I can't imagine anything else > > > -----?????? ??????----- > From: Rocky Smolin > Sent: Saturday, February 28, 2015 6:55 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Then I think your Row Source type has to be Table/Query - no? Try that > and > see if it will compile. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 8:27 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > 0simperasmata is a table on which combo simperasma_1 is based record > source > SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, > [0simperasmata].tip FROM 0simperasmata ORDER BY > [0simperasmata].simperasma; > > column Count 3 > column widths 0cm > > /kostas > > -----?????? ??????----- > From: Rocky Smolin > Sent: Saturday, February 28, 2015 6:13 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > What is 0simperasmata? AFAIK, row Source types are limited to > Table/Query, > Value List, and Field List. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 8:08 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Hi Suzan, > it breaks on line WHERE.... > with a compile error Sub or Function not defined > > /kostas > > -----?????? ??????----- > From: Susan Harkins > Sent: Saturday, February 28, 2015 5:35 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > When you say it doesn't work, do you mean the control isn't populating at > all or that it isn't populating as expected? > > Susan H. > > On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis > wrote: > >> Hi, >> There are three fields into the same form >> >> [result_zscore_ostiki_piknotita]--> decimal >> [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo >> box with record source SELECT [0simperasmata].ID_symperasmata, >> [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata >> ORDER BY [0simperasmata].simperasma; >> >> into [0simperasmata].tip are saved three different values "z", "t" and >> "zt" >> >> what I need is to limit the drop down list the based on >> [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] >> values >> >> I tried: >> >> Private Sub result_zscore_ostiki_piknotita_AfterUpdate() >> If Not IsNull(result_zscore_ostiki_piknotita) Then >> Me.simperasma_1.RowSourceType = "0simperasmata" >> Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, >> tip FROM 0simperasmata " & _ >> WHERE(([0simperasmata].tip) = "z") >> Else >> End If >> End Sub >> >> but it doen't work >> >> any help please? >> thank's >> /kostas >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at outlook.com Sat Feb 28 11:32:10 2015 From: df.waters at outlook.com (Dan Waters) Date: Sat, 28 Feb 2015 11:32:10 -0600 Subject: [AccessD] limit drop down from another field... In-Reply-To: <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk> <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> Message-ID: Hi Kostas, Take a look at this in your text: '0simperasmata' is typed in your example with a leading zero. 'Osimperasmata' is typed with a leading 'O'. At least variables cannot be named with a leading number. I checked and it is possible to name a table in both Access and SQL Server with a leading number - I was surprised! Perhaps changing the leading zero to a leading O might help? Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 9:27 AM To: Access Developers discussion and problem solving Subject: [AccessD] limit drop down from another field... Hi, There are three fields into the same form [result_zscore_ostiki_piknotita]--> decimal [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo box with record source SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; into [0simperasmata].tip are saved three different values "z", "t" and "zt" what I need is to limit the drop down list the based on [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] values I tried: Private Sub result_zscore_ostiki_piknotita_AfterUpdate() If Not IsNull(result_zscore_ostiki_piknotita) Then Me.simperasma_1.RowSourceType = "0simperasmata" Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip FROM 0simperasmata " & _ WHERE(([0simperasmata].tip) = "z") Else End If End Sub but it doen't work any help please? thank's /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Sat Feb 28 12:00:50 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 20:00:50 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> Message-ID: Hi Dan, the original table's name begins with 0 (zero) I renamed it but it also refuses to execute thank's /kostas -----?????? ??????----- From: Dan Waters Sent: Saturday, February 28, 2015 7:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Hi Kostas, Take a look at this in your text: '0simperasmata' is typed in your example with a leading zero. 'Osimperasmata' is typed with a leading 'O'. At least variables cannot be named with a leading number. I checked and it is possible to name a table in both Access and SQL Server with a leading number - I was surprised! Perhaps changing the leading zero to a leading O might help? Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 9:27 AM To: Access Developers discussion and problem solving Subject: [AccessD] limit drop down from another field... Hi, There are three fields into the same form [result_zscore_ostiki_piknotita]--> decimal [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo box with record source SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER BY [0simperasmata].simperasma; into [0simperasmata].tip are saved three different values "z", "t" and "zt" what I need is to limit the drop down list the based on [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] values I tried: Private Sub result_zscore_ostiki_piknotita_AfterUpdate() If Not IsNull(result_zscore_ostiki_piknotita) Then Me.simperasma_1.RowSourceType = "0simperasmata" Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip FROM 0simperasmata " & _ WHERE(([0simperasmata].tip) = "z") Else End If End Sub but it doen't work any help please? thank's /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 12:03:17 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 10:03:17 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: <54F1F72E.10409@gmail.com> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC><729DC2EA304948A2A74E7E4986168B2D@kost36PC><1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><88C0C6D1A7B74C52A785BD36F532A970@kost36PC><97AC8AA30E8048F09EB189E426A2733C@HAL9007><10A90641FA1042F69CBD750CF43EE9A1@kost36PC><3F2C4F95376849BA855E21A60D865109@HAL9007> <5C062A723B964E8D8A8CAEE407280509@kost36PC><643BD0F6082A4A9EA6E9F037D9C14034@HAL9007> <54F1F72E.10409@gmail.com> Message-ID: <2B4F4B5E3E3C4BC18F146F29AB097B93@HAL9007> Google translate doesn't find it even after deleting the leading zero. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 28, 2015 9:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I am thinking that perhaps " 0simperasmata " is the local language equivalent of table/query? John W. Colby On 2/28/2015 12:09 PM, Rocky Smolin wrote: > Try commenting that line out and setting the RowSource Type property > of the combo box to Table/Query > > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > I have already done this... > Me.simperasma_1.RowSourceType = "0simperasmata" > > I can't imagine anything else > > > -----?????? ??????----- > From: Rocky Smolin > Sent: Saturday, February 28, 2015 6:55 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Then I think your Row Source type has to be Table/Query - no? Try > that and see if it will compile. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 8:27 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > 0simperasmata is a table on which combo simperasma_1 is based record > source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > column Count 3 > column widths 0cm > > /kostas > > -----?????? ??????----- > From: Rocky Smolin > Sent: Saturday, February 28, 2015 6:13 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > What is 0simperasmata? AFAIK, row Source types are limited to > Table/Query, Value List, and Field List. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 8:08 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Hi Suzan, > it breaks on line WHERE.... > with a compile error Sub or Function not defined > > /kostas > > -----?????? ??????----- > From: Susan Harkins > Sent: Saturday, February 28, 2015 5:35 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > When you say it doesn't work, do you mean the control isn't populating > at all or that it isn't populating as expected? > > Susan H. > > On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis > > wrote: > >> Hi, >> There are three fields into the same form >> >> [result_zscore_ostiki_piknotita]--> decimal >> [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo >> box with record source SELECT [0simperasmata].ID_symperasmata, >> [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata >> ORDER BY [0simperasmata].simperasma; >> >> into [0simperasmata].tip are saved three different values "z", "t" >> and "zt" >> >> what I need is to limit the drop down list the based on >> [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] >> values >> >> I tried: >> >> Private Sub result_zscore_ostiki_piknotita_AfterUpdate() >> If Not IsNull(result_zscore_ostiki_piknotita) Then >> Me.simperasma_1.RowSourceType = "0simperasmata" >> Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, >> tip FROM 0simperasmata " & _ >> WHERE(([0simperasmata].tip) = "z") Else End If End Sub >> >> but it doen't work >> >> any help please? >> thank's >> /kostas >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Sat Feb 28 12:08:07 2015 From: jwcolby at gmail.com (John W. Colby) Date: Sat, 28 Feb 2015 13:08:07 -0500 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> Message-ID: <54F20407.4060405@gmail.com> I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) > I renamed it but it also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked > and it > is possible to name a table in both Access and SQL Server with a leading > number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo box > with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY > [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip > FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Sat Feb 28 12:19:58 2015 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 28 Feb 2015 13:19:58 -0500 Subject: [AccessD] limit drop down from another field... In-Reply-To: <88C0C6D1A7B74C52A785BD36F532A970@kost36PC> References: <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg> <8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC> <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk> <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <88C0C6D1A7B74C52A785BD36F532A970@kost36PC> Message-ID: I think you're missing the closing parenthesis in the WHERE statement -- you suppose the opening one, but not the closing. FROM 0simperasmata " & _ WHERE(([0simperasmata].tip) = "z") On Sat, Feb 28, 2015 at 11:08 AM, Kostas Konstantinidis wrote: > Hi Suzan, > it breaks on line WHERE.... > with a compile error Sub or Function not defined > > /kostas > > -----?????? ??????----- From: Susan Harkins > Sent: Saturday, February 28, 2015 5:35 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > When you say it doesn't work, do you mean the control isn't populating at > all or that it isn't populating as expected? > > Susan H. > > On Sat, Feb 28, 2015 at 10:26 AM, Kostas Konstantinidis > wrote: > > Hi, >> There are three fields into the same form >> >> [result_zscore_ostiki_piknotita]--> decimal >> [result_tscore_ostiki_piknotita]--> decimal >> [simperasma_1] --> combo box with record source >> SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, >> [0simperasmata].tip FROM 0simperasmata ORDER BY >> [0simperasmata].simperasma; >> >> into [0simperasmata].tip are saved three different values "z", "t" and >> "zt" >> >> what I need is to limit the drop down list the based on >> [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] >> values >> >> I tried: >> >> Private Sub result_zscore_ostiki_piknotita_AfterUpdate() >> If Not IsNull(result_zscore_ostiki_piknotita) Then >> Me.simperasma_1.RowSourceType = "0simperasmata" >> Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip >> FROM 0simperasmata " & _ >> WHERE(([0simperasmata].tip) = "z") >> Else >> End If >> End Sub >> >> but it doen't work >> >> any help please? >> thank's >> /kostas >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 12:40:59 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 20:40:59 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <54F20407.4060405@gmail.com> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com> Message-ID: <85970A27BA5140B99A70E5B6A441D235@kost36PC> John I tried that too Suzan the parenthesis closes well because in other case the system would answer as expected end of statement or something any other way to do what I need? after a very hard deep dive in a 2nd War wreck and after five hours tries on that demon piece of code too I can think nothing else :-))) /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) > I renamed it but it also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked and > it > is possible to name a table in both Access and SQL Server with a leading > number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo box > with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata ORDER > BY > [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, tip > FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 12:45:57 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 10:45:57 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: <85970A27BA5140B99A70E5B6A441D235@kost36PC> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com> <85970A27BA5140B99A70E5B6A441D235@kost36PC> Message-ID: Kostas: Did you try to replacing the RowSourceType with 'Table/Query'? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... John I tried that too Suzan the parenthesis closes well because in other case the system would answer as expected end of statement or something any other way to do what I need? after a very hard deep dive in a 2nd War wreck and after five hours tries on that demon piece of code too I can think nothing else :-))) /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) I renamed it but it > also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked > and it is possible to name a table in both Access and SQL Server with > a leading number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 12:55:35 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 20:55:35 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC> Message-ID: Just let you know I just renamed the table from 0simperasmata to simperasmata deleting the first "0" Rocky you mean Me.simperasma_1.RowSourceType = "simperasmata" -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 8:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Kostas: Did you try to replacing the RowSourceType with 'Table/Query'? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... John I tried that too Suzan the parenthesis closes well because in other case the system would answer as expected end of statement or something any other way to do what I need? after a very hard deep dive in a 2nd War wreck and after five hours tries on that demon piece of code too I can think nothing else :-))) /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) I renamed it but it > also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked > and it is possible to name a table in both Access and SQL Server with > a leading number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at gmail.com Sat Feb 28 12:59:41 2015 From: jwcolby at gmail.com (John W. Colby) Date: Sat, 28 Feb 2015 13:59:41 -0500 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC> Message-ID: <54F2101D.4070503@gmail.com> No. Me.simperasma_1.RowSourceType = "Table/Query" The LITERAL string "Table/Query" John W. Colby On 2/28/2015 1:55 PM, Kostas Konstantinidis wrote: > Just let you know > I just renamed the table from 0simperasmata to simperasmata deleting > the first "0" > > Rocky you mean > Me.simperasma_1.RowSourceType = "simperasmata" > > > > -----?????? ??????----- From: Rocky Smolin > Sent: Saturday, February 28, 2015 8:45 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Kostas: > > Did you try to replacing the RowSourceType with 'Table/Query'? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 10:41 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > John I tried that too > Suzan the parenthesis closes well because in other case the system would > answer as expected end of statement or something > > any other way to do what I need? > > after a very hard deep dive in a 2nd War wreck and after five hours > tries on > that demon piece of code too I can think nothing else :-))) > > /kostas > > -----?????? ??????----- > From: John W. Colby > Sent: Saturday, February 28, 2015 8:08 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > I think one problem is that you do not put the NAME of the table in that > property but the STRING value 'Table/Query' > > John W. Colby > > On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: >> Hi Dan, >> the original table's name begins with 0 (zero) I renamed it but it >> also refuses to execute >> >> thank's >> >> /kostas >> >> -----?????? ??????----- From: Dan Waters >> Sent: Saturday, February 28, 2015 7:32 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] limit drop down from another field... >> >> Hi Kostas, >> >> >> Take a look at this in your text: >> >> '0simperasmata' is typed in your example with a leading zero. >> >> 'Osimperasmata' is typed with a leading 'O'. >> >> At least variables cannot be named with a leading number. I checked >> and it is possible to name a table in both Access and SQL Server with >> a leading number - I was surprised! >> >> Perhaps changing the leading zero to a leading O might help? >> >> Good Luck! >> Dan >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas >> Konstantinidis >> Sent: Saturday, February 28, 2015 9:27 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] limit drop down from another field... >> >> Hi, >> There are three fields into the same form >> >> [result_zscore_ostiki_piknotita]--> decimal >> [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo >> box with record source SELECT [0simperasmata].ID_symperasmata, >> [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata >> ORDER BY [0simperasmata].simperasma; >> >> into [0simperasmata].tip are saved three different values "z", "t" and >> "zt" >> >> what I need is to limit the drop down list the based on >> [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] >> values >> >> I tried: >> >> Private Sub result_zscore_ostiki_piknotita_AfterUpdate() >> If Not IsNull(result_zscore_ostiki_piknotita) Then >> Me.simperasma_1.RowSourceType = "0simperasmata" >> Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, >> tip FROM 0simperasmata " & _ >> WHERE(([0simperasmata].tip) = "z") >> Else >> End If >> End Sub >> >> but it doen't work >> >> any help please? >> thank's >> /kostas >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From kost36 at otenet.gr Sat Feb 28 13:05:27 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 21:05:27 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <54F2101D.4070503@gmail.com> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC> <54F2101D.4070503@gmail.com> Message-ID: did it... same error /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... No. Me.simperasma_1.RowSourceType = "Table/Query" The LITERAL string "Table/Query" John W. Colby On 2/28/2015 1:55 PM, Kostas Konstantinidis wrote: > Just let you know > I just renamed the table from 0simperasmata to simperasmata deleting the > first "0" > > Rocky you mean > Me.simperasma_1.RowSourceType = "simperasmata" > > > > -----?????? ??????----- From: Rocky Smolin > Sent: Saturday, February 28, 2015 8:45 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Kostas: > > Did you try to replacing the RowSourceType with 'Table/Query'? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 10:41 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > John I tried that too > Suzan the parenthesis closes well because in other case the system would > answer as expected end of statement or something > > any other way to do what I need? > > after a very hard deep dive in a 2nd War wreck and after five hours tries > on > that demon piece of code too I can think nothing else :-))) > > /kostas > > -----?????? ??????----- > From: John W. Colby > Sent: Saturday, February 28, 2015 8:08 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > I think one problem is that you do not put the NAME of the table in that > property but the STRING value 'Table/Query' > > John W. Colby > > On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: >> Hi Dan, >> the original table's name begins with 0 (zero) I renamed it but it >> also refuses to execute >> >> thank's >> >> /kostas >> >> -----?????? ??????----- From: Dan Waters >> Sent: Saturday, February 28, 2015 7:32 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] limit drop down from another field... >> >> Hi Kostas, >> >> >> Take a look at this in your text: >> >> '0simperasmata' is typed in your example with a leading zero. >> >> 'Osimperasmata' is typed with a leading 'O'. >> >> At least variables cannot be named with a leading number. I checked >> and it is possible to name a table in both Access and SQL Server with >> a leading number - I was surprised! >> >> Perhaps changing the leading zero to a leading O might help? >> >> Good Luck! >> Dan >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas >> Konstantinidis >> Sent: Saturday, February 28, 2015 9:27 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] limit drop down from another field... >> >> Hi, >> There are three fields into the same form >> >> [result_zscore_ostiki_piknotita]--> decimal >> [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo >> box with record source SELECT [0simperasmata].ID_symperasmata, >> [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata >> ORDER BY [0simperasmata].simperasma; >> >> into [0simperasmata].tip are saved three different values "z", "t" and >> "zt" >> >> what I need is to limit the drop down list the based on >> [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] >> values >> >> I tried: >> >> Private Sub result_zscore_ostiki_piknotita_AfterUpdate() >> If Not IsNull(result_zscore_ostiki_piknotita) Then >> Me.simperasma_1.RowSourceType = "0simperasmata" >> Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, >> tip FROM 0simperasmata " & _ >> WHERE(([0simperasmata].tip) = "z") >> Else >> End If >> End Sub >> >> but it doen't work >> >> any help please? >> thank's >> /kostas >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 13:30:12 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 11:30:12 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC> Message-ID: <5267BDDAC87C4F5CB6022377B8AC9B10@HAL9007> No - just remove lie line of code Me.simperasma_1.RowSourceType = "simperasmata" and in the design view of the form select the combo box and in the combo box property sheet select Table/Query from the RowSourceType dropdown list. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Just let you know I just renamed the table from 0simperasmata to simperasmata deleting the first "0" Rocky you mean Me.simperasma_1.RowSourceType = "simperasmata" -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 8:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Kostas: Did you try to replacing the RowSourceType with 'Table/Query'? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... John I tried that too Suzan the parenthesis closes well because in other case the system would answer as expected end of statement or something any other way to do what I need? after a very hard deep dive in a 2nd War wreck and after five hours tries on that demon piece of code too I can think nothing else :-))) /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) I renamed it but it > also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked > and it is possible to name a table in both Access and SQL Server with > a leading number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 13:34:10 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 21:34:10 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <5267BDDAC87C4F5CB6022377B8AC9B10@HAL9007> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC> <5267BDDAC87C4F5CB6022377B8AC9B10@HAL9007> Message-ID: <28292BE18E1C4232A0529C96A64F23FA@kost36PC> Rocky it's exactly as you describe -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... No - just remove lie line of code Me.simperasma_1.RowSourceType = "simperasmata" and in the design view of the form select the combo box and in the combo box property sheet select Table/Query from the RowSourceType dropdown list. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Just let you know I just renamed the table from 0simperasmata to simperasmata deleting the first "0" Rocky you mean Me.simperasma_1.RowSourceType = "simperasmata" -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 8:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Kostas: Did you try to replacing the RowSourceType with 'Table/Query'? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... John I tried that too Suzan the parenthesis closes well because in other case the system would answer as expected end of statement or something any other way to do what I need? after a very hard deep dive in a 2nd War wreck and after five hours tries on that demon piece of code too I can think nothing else :-))) /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) I renamed it but it > also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked > and it is possible to name a table in both Access and SQL Server with > a leading number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 13:40:13 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 11:40:13 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: <28292BE18E1C4232A0529C96A64F23FA@kost36PC> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC><5267BDDAC87C4F5CB6022377B8AC9B10@HAL9007> <28292BE18E1C4232A0529C96A64F23FA@kost36PC> Message-ID: <078569AF427A46EABBA1B166DE05E5CD@HAL9007> So does it compile now? And if so, what do you see when you drop down the list in that combo box? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Rocky it's exactly as you describe -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... No - just remove lie line of code Me.simperasma_1.RowSourceType = "simperasmata" and in the design view of the form select the combo box and in the combo box property sheet select Table/Query from the RowSourceType dropdown list. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Just let you know I just renamed the table from 0simperasmata to simperasmata deleting the first "0" Rocky you mean Me.simperasma_1.RowSourceType = "simperasmata" -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 8:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Kostas: Did you try to replacing the RowSourceType with 'Table/Query'? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... John I tried that too Suzan the parenthesis closes well because in other case the system would answer as expected end of statement or something any other way to do what I need? after a very hard deep dive in a 2nd War wreck and after five hours tries on that demon piece of code too I can think nothing else :-))) /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) I renamed it but it > also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked > and it is possible to name a table in both Access and SQL Server with > a leading number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 13:52:47 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 21:52:47 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <078569AF427A46EABBA1B166DE05E5CD@HAL9007> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC><5267BDDAC87C4F5CB6022377B8AC9B10@HAL9007><28292BE18E1C4232A0529C96A64F23FA@kost36PC> <078569AF427A46EABBA1B166DE05E5CD@HAL9007> Message-ID: <8215659A89B5473393D8CB250BAA6CE4@kost36PC> No it doesn't and while I stop the code running after the error I see the total of the data, unfiltered of coarse -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... So does it compile now? And if so, what do you see when you drop down the list in that combo box? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Rocky it's exactly as you describe -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... No - just remove lie line of code Me.simperasma_1.RowSourceType = "simperasmata" and in the design view of the form select the combo box and in the combo box property sheet select Table/Query from the RowSourceType dropdown list. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Just let you know I just renamed the table from 0simperasmata to simperasmata deleting the first "0" Rocky you mean Me.simperasma_1.RowSourceType = "simperasmata" -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 8:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Kostas: Did you try to replacing the RowSourceType with 'Table/Query'? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... John I tried that too Suzan the parenthesis closes well because in other case the system would answer as expected end of statement or something any other way to do what I need? after a very hard deep dive in a 2nd War wreck and after five hours tries on that demon piece of code too I can think nothing else :-))) /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) I renamed it but it > also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked > and it is possible to name a table in both Access and SQL Server with > a leading number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Feb 28 13:55:45 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 11:55:45 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: <8215659A89B5473393D8CB250BAA6CE4@kost36PC> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC><5267BDDAC87C4F5CB6022377B8AC9B10@HAL9007><28292BE18E1C4232A0529C96A64F23FA@kost36PC><078569AF427A46EABBA1B166DE05E5CD@HAL9007> <8215659A89B5473393D8CB250BAA6CE4@kost36PC> Message-ID: <02FC9EA1C2774FDEAEA999FBDE7D96DE@HAL9007> What line doesn't compile and what is the compile error? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 11:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... No it doesn't and while I stop the code running after the error I see the total of the data, unfiltered of coarse -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... So does it compile now? And if so, what do you see when you drop down the list in that combo box? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Rocky it's exactly as you describe -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... No - just remove lie line of code Me.simperasma_1.RowSourceType = "simperasmata" and in the design view of the form select the combo box and in the combo box property sheet select Table/Query from the RowSourceType dropdown list. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Just let you know I just renamed the table from 0simperasmata to simperasmata deleting the first "0" Rocky you mean Me.simperasma_1.RowSourceType = "simperasmata" -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 8:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Kostas: Did you try to replacing the RowSourceType with 'Table/Query'? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... John I tried that too Suzan the parenthesis closes well because in other case the system would answer as expected end of statement or something any other way to do what I need? after a very hard deep dive in a 2nd War wreck and after five hours tries on that demon piece of code too I can think nothing else :-))) /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) I renamed it but it > also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked > and it is possible to name a table in both Access and SQL Server with > a leading number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 14:10:45 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 22:10:45 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <02FC9EA1C2774FDEAEA999FBDE7D96DE@HAL9007> References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC><5267BDDAC87C4F5CB6022377B8AC9B10@HAL9007><28292BE18E1C4232A0529C96A64F23FA@kost36PC><078569AF427A46EABBA1B166DE05E5CD@HAL9007><8215659A89B5473393D8CB250BAA6CE4@kost36PC> <02FC9EA1C2774FDEAEA999FBDE7D96DE@HAL9007> Message-ID: it breaks on line WHERE.... with a compile error Sub or Function not defined -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... What line doesn't compile and what is the compile error? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 11:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... No it doesn't and while I stop the code running after the error I see the total of the data, unfiltered of coarse -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... So does it compile now? And if so, what do you see when you drop down the list in that combo box? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Rocky it's exactly as you describe -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... No - just remove lie line of code Me.simperasma_1.RowSourceType = "simperasmata" and in the design view of the form select the combo box and in the combo box property sheet select Table/Query from the RowSourceType dropdown list. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Just let you know I just renamed the table from 0simperasmata to simperasmata deleting the first "0" Rocky you mean Me.simperasma_1.RowSourceType = "simperasmata" -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 8:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Kostas: Did you try to replacing the RowSourceType with 'Table/Query'? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... John I tried that too Suzan the parenthesis closes well because in other case the system would answer as expected end of statement or something any other way to do what I need? after a very hard deep dive in a 2nd War wreck and after five hours tries on that demon piece of code too I can think nothing else :-))) /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) I renamed it but it > also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked > and it is possible to name a table in both Access and SQL Server with > a leading number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 stuart at lexacorp.com.pg Sat Feb 28 14:27:45 2015 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Mar 2015 07:27:45 +1100 Subject: [AccessD] limit drop down from another field... In-Reply-To: <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> References: , <1421580844680.67486@cactus.dk>, <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> Message-ID: <54F224C1.32159.48FC47E@stuart.lexacorp.com.pg> Come on people, it's simples :) Kostas, your line: WHERE(([0simperasmata].tip) = "z") should be: "WHERE(([0simperasmata].tip) = 'z')" (You forgot the quotes around that substring that you are building into your SQL string) On 28 Feb 2015 at 17:26, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal > [simperasma_1] --> combo box with record source > SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, > [0simperasmata].tip FROM 0simperasmata ORDER BY > [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip > FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tinanfields at torchlake.com Sat Feb 28 14:46:55 2015 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 28 Feb 2015 15:46:55 -0500 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC><5267BDDAC87C4F5CB6022377B8AC9B10@HAL9007><28292BE18E1C4232A0529C96A64F23FA@kost36PC><078569AF427A46EABBA1B166DE05E5CD@HAL9007><8215659A89B5473393D8CB250BAA6CE4@kost36PC> <02FC9EA1C2774FDEAEA999FBDE7D96DE@HAL9007> Message-ID: <54F2293F.9090008@torchlake.com> So, is it actually calling a function that hasn't been defined? TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/28/2015 3:10 PM, Kostas Konstantinidis wrote: > it breaks on line WHERE.... > with a compile error Sub or Function not defined > > -----?????? ??????----- From: Rocky Smolin > Sent: Saturday, February 28, 2015 9:55 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > What line doesn't compile and what is the compile error? > > r > From kost36 at otenet.gr Sat Feb 28 14:51:37 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 22:51:37 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <54F224C1.32159.48FC47E@stuart.lexacorp.com.pg> References: , <1421580844680.67486@cactus.dk>, <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F224C1.32159.48FC47E@stuart.lexacorp.com.pg> Message-ID: Hi Stuart, well this stops the error but the combo doesn't return any data it's just null /kostas -----?????? ??????----- From: Stuart McLachlan Sent: Saturday, February 28, 2015 10:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Come on people, it's simples :) Kostas, your line: WHERE(([0simperasmata].tip) = "z") should be: "WHERE(([0simperasmata].tip) = 'z')" (You forgot the quotes around that substring that you are building into your SQL string) On 28 Feb 2015 at 17:26, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal > [simperasma_1] --> combo box with record source > SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, > [0simperasmata].tip FROM 0simperasmata ORDER BY > [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip > FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 tinanfields at torchlake.com Sat Feb 28 14:55:44 2015 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 28 Feb 2015 15:55:44 -0500 Subject: [AccessD] limit drop down from another field... In-Reply-To: <54F224C1.32159.48FC47E@stuart.lexacorp.com.pg> References: , <1421580844680.67486@cactus.dk>, <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F224C1.32159.48FC47E@stuart.lexacorp.com.pg> Message-ID: <54F22B50.1070507@torchlake.com> Oh, my - went right by that one and never saw it. :-) TNF Tina Norris Fields tinanfields-at-torchlake-dot-com 231-322-2787 On 2/28/2015 3:27 PM, Stuart McLachlan wrote: > Come on people, it's simples :) > > Kostas, your line: > > WHERE(([0simperasmata].tip) = "z") > > should be: > > "WHERE(([0simperasmata].tip) = 'z')" > > (You forgot the quotes around that substring that you are building into your SQL string) > > > On 28 Feb 2015 at 17:26, Kostas Konstantinidis wrote: > >> Hi, >> There are three fields into the same form >> >> [result_zscore_ostiki_piknotita]--> decimal >> [result_tscore_ostiki_piknotita]--> decimal >> [simperasma_1] --> combo box with record source >> SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, >> [0simperasmata].tip FROM 0simperasmata ORDER BY >> [0simperasmata].simperasma; >> >> into [0simperasmata].tip are saved three different values "z", "t" and >> "zt" >> >> what I need is to limit the drop down list the based on >> [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] >> values >> >> I tried: >> >> Private Sub result_zscore_ostiki_piknotita_AfterUpdate() >> If Not IsNull(result_zscore_ostiki_piknotita) Then >> Me.simperasma_1.RowSourceType = "0simperasmata" >> Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, >> tip >> FROM 0simperasmata " & _ >> WHERE(([0simperasmata].tip) = "z") >> Else >> End If >> End Sub >> >> but it doen't work >> >> any help please? >> thank's >> /kostas >> >> -- >> 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 Feb 28 15:18:03 2015 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Mar 2015 08:18:03 +1100 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <54F224C1.32159.48FC47E@stuart.lexacorp.com.pg>, Message-ID: <54F2308B.5909.4BDD2C1@stuart.lexacorp.com.pg> Ok, looked at it again: Me.simperasma_1.RowSourceType = "0simperasmata" RowSourceType should be "Table/Query" -- Stuart On 28 Feb 2015 at 22:51, Kostas Konstantinidis wrote: > Hi Stuart, > well this stops the error but the combo doesn't return any data > it's just null > > /kostas > > ----- ----- > From: Stuart McLachlan > Sent: Saturday, February 28, 2015 10:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Come on people, it's simples :) > > Kostas, your line: > > WHERE(([0simperasmata].tip) = "z") > > should be: > > "WHERE(([0simperasmata].tip) = 'z')" > > (You forgot the quotes around that substring that you are building > into your SQL string) > > > On 28 Feb 2015 at 17:26, Kostas Konstantinidis wrote: > > > Hi, > > There are three fields into the same form > > > > [result_zscore_ostiki_piknotita]--> decimal > > [result_tscore_ostiki_piknotita]--> decimal > > [simperasma_1] --> combo box with record source > > SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, > > [0simperasmata].tip FROM 0simperasmata ORDER BY > > [0simperasmata].simperasma; > > > > into [0simperasmata].tip are saved three different values "z", "t" > > and "zt" > > > > what I need is to limit the drop down list the based on > > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > > values > > > > I tried: > > > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > > If Not IsNull(result_zscore_ostiki_piknotita) Then > > Me.simperasma_1.RowSourceType = "0simperasmata" > > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > > tip > > FROM 0simperasmata " & _ > > WHERE(([0simperasmata].tip) = "z") > > Else > > End If > > End Sub > > > > but it doen't work > > > > any help please? > > thank's > > /kostas > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 kost36 at otenet.gr Sat Feb 28 15:31:47 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 28 Feb 2015 23:31:47 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <54F2308B.5909.4BDD2C1@stuart.lexacorp.com.pg> References: , <54F224C1.32159.48FC47E@stuart.lexacorp.com.pg>, <54F2308B.5909.4BDD2C1@stuart.lexacorp.com.pg> Message-ID: <5B5C8F7AA5CC436DB10B0269DE6164C4@kost36PC> Stuart it's exactly so, if [result_zscore_ostiki_piknotita] is null the drop down list brings the total of the data but in any other value of [result_zscore_ostiki_piknotita] the drop list loses them -----?????? ??????----- From: Stuart McLachlan Sent: Saturday, February 28, 2015 11:18 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Ok, looked at it again: Me.simperasma_1.RowSourceType = "0simperasmata" RowSourceType should be "Table/Query" -- Stuart On 28 Feb 2015 at 22:51, Kostas Konstantinidis wrote: > Hi Stuart, > well this stops the error but the combo doesn't return any data > it's just null > > /kostas > > ----- ----- > From: Stuart McLachlan > Sent: Saturday, February 28, 2015 10:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Come on people, it's simples :) > > Kostas, your line: > > WHERE(([0simperasmata].tip) = "z") > > should be: > > "WHERE(([0simperasmata].tip) = 'z')" > > (You forgot the quotes around that substring that you are building > into your SQL string) > > > On 28 Feb 2015 at 17:26, Kostas Konstantinidis wrote: > > > Hi, > > There are three fields into the same form > > > > [result_zscore_ostiki_piknotita]--> decimal > > [result_tscore_ostiki_piknotita]--> decimal > > [simperasma_1] --> combo box with record source > > SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, > > [0simperasmata].tip FROM 0simperasmata ORDER BY > > [0simperasmata].simperasma; > > > > into [0simperasmata].tip are saved three different values "z", "t" > > and "zt" > > > > what I need is to limit the drop down list the based on > > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > > values > > > > I tried: > > > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > > If Not IsNull(result_zscore_ostiki_piknotita) Then > > Me.simperasma_1.RowSourceType = "0simperasmata" > > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > > tip > > FROM 0simperasmata " & _ > > WHERE(([0simperasmata].tip) = "z") > > Else > > End If > > End Sub > > > > but it doen't work > > > > any help please? > > thank's > > /kostas > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 16:15:28 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 14:15:28 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <54BB76BC.32301.FFAB53E@stuart.lexacorp.com.pg><8956B18B9BDE4A2A9C1A8F60C830C53A@kost36PC>, <729DC2EA304948A2A74E7E4986168B2D@kost36PC> <1421580844680.67486@cactus.dk><0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC> <54F20407.4060405@gmail.com><85970A27BA5140B99A70E5B6A441D235@kost36PC><5267BDDAC87C4F5CB6022377B8AC9B10@HAL9007><28292BE18E1C4232A0529C96A64F23FA@kost36PC><078569AF427A46EABBA1B166DE05E5CD@HAL9007><8215659A89B5473393D8CB250BAA6CE4@kost36PC><02FC9EA1C2774FDEAEA999FBDE7D96DE@HAL9007> Message-ID: <0A7AA70CF0DC4F1C861BDDCAA6B6DA73@HAL9007> No opening quotes on the WHERE. Try: "WHERE(([0simperasmata].tip) =""z"""") And quotes around the z. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... it breaks on line WHERE.... with a compile error Sub or Function not defined -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... What line doesn't compile and what is the compile error? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 11:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... No it doesn't and while I stop the code running after the error I see the total of the data, unfiltered of coarse -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... So does it compile now? And if so, what do you see when you drop down the list in that combo box? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Rocky it's exactly as you describe -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 9:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... No - just remove lie line of code Me.simperasma_1.RowSourceType = "simperasmata" and in the design view of the form select the combo box and in the combo box property sheet select Table/Query from the RowSourceType dropdown list. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Just let you know I just renamed the table from 0simperasmata to simperasmata deleting the first "0" Rocky you mean Me.simperasma_1.RowSourceType = "simperasmata" -----?????? ??????----- From: Rocky Smolin Sent: Saturday, February 28, 2015 8:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] limit drop down from another field... Kostas: Did you try to replacing the RowSourceType with 'Table/Query'? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... John I tried that too Suzan the parenthesis closes well because in other case the system would answer as expected end of statement or something any other way to do what I need? after a very hard deep dive in a 2nd War wreck and after five hours tries on that demon piece of code too I can think nothing else :-))) /kostas -----?????? ??????----- From: John W. Colby Sent: Saturday, February 28, 2015 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... I think one problem is that you do not put the NAME of the table in that property but the STRING value 'Table/Query' John W. Colby On 2/28/2015 1:00 PM, Kostas Konstantinidis wrote: > Hi Dan, > the original table's name begins with 0 (zero) I renamed it but it > also refuses to execute > > thank's > > /kostas > > -----?????? ??????----- From: Dan Waters > Sent: Saturday, February 28, 2015 7:32 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] limit drop down from another field... > > Hi Kostas, > > > Take a look at this in your text: > > '0simperasmata' is typed in your example with a leading zero. > > 'Osimperasmata' is typed with a leading 'O'. > > At least variables cannot be named with a leading number. I checked > and it is possible to name a table in both Access and SQL Server with > a leading number - I was surprised! > > Perhaps changing the leading zero to a leading O might help? > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 9:27 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] limit drop down from another field... > > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal [simperasma_1] --> combo > box with record source SELECT [0simperasmata].ID_symperasmata, > [0simperasmata].simperasma, [0simperasmata].tip FROM 0simperasmata > ORDER BY [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 16:18:09 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 14:18:09 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: References: , <1421580844680.67486@cactus.dk>, <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><54F224C1.32159.48FC47E@stuart.lexacorp.com.pg> Message-ID: <59157172FB2F4A0BA651FD3020D53F0A@HAL9007> Are you still trying to make the row source type something other than 'Table/Query'? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 12:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Hi Stuart, well this stops the error but the combo doesn't return any data it's just null /kostas -----?????? ??????----- From: Stuart McLachlan Sent: Saturday, February 28, 2015 10:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... Come on people, it's simples :) Kostas, your line: WHERE(([0simperasmata].tip) = "z") should be: "WHERE(([0simperasmata].tip) = 'z')" (You forgot the quotes around that substring that you are building into your SQL string) On 28 Feb 2015 at 17:26, Kostas Konstantinidis wrote: > Hi, > There are three fields into the same form > > [result_zscore_ostiki_piknotita]--> decimal > [result_tscore_ostiki_piknotita]--> decimal > [simperasma_1] --> combo box with record source > SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, > [0simperasmata].tip FROM 0simperasmata ORDER BY > [0simperasmata].simperasma; > > into [0simperasmata].tip are saved three different values "z", "t" and > "zt" > > what I need is to limit the drop down list the based on > [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] > values > > I tried: > > Private Sub result_zscore_ostiki_piknotita_AfterUpdate() > If Not IsNull(result_zscore_ostiki_piknotita) Then > Me.simperasma_1.RowSourceType = "0simperasmata" > Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, > tip > FROM 0simperasmata " & _ > WHERE(([0simperasmata].tip) = "z") > Else > End If > End Sub > > but it doen't work > > any help please? > thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at gmail.com Sat Feb 28 16:34:17 2015 From: jwcolby at gmail.com (John W. Colby) Date: Sat, 28 Feb 2015 17:34:17 -0500 Subject: [AccessD] limit drop down from another field... In-Reply-To: <59157172FB2F4A0BA651FD3020D53F0A@HAL9007> References: , <1421580844680.67486@cactus.dk>, <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><54F224C1.32159.48FC47E@stuart.lexacorp.com.pg> <59157172FB2F4A0BA651FD3020D53F0A@HAL9007> Message-ID: <54F24269.9000700@gmail.com> The other thing is that "table/query" might be something else if the Office was another language. John W. Colby On 2/28/2015 5:18 PM, Rocky Smolin wrote: > Are you still trying to make the row source type something other than > 'Table/Query'? > > r > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 12:52 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Hi Stuart, > well this stops the error but the combo doesn't return any data it's just > null > > /kostas > > -----?????? ??????----- > From: Stuart McLachlan > Sent: Saturday, February 28, 2015 10:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Come on people, it's simples :) > > Kostas, your line: > > WHERE(([0simperasmata].tip) = "z") > > should be: > > "WHERE(([0simperasmata].tip) = 'z')" > > (You forgot the quotes around that substring that you are building into your > SQL string) > > > On 28 Feb 2015 at 17:26, Kostas Konstantinidis wrote: > >> Hi, >> There are three fields into the same form >> >> [result_zscore_ostiki_piknotita]--> decimal >> [result_tscore_ostiki_piknotita]--> decimal >> [simperasma_1] --> combo box with record source >> SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, >> [0simperasmata].tip FROM 0simperasmata ORDER BY >> [0simperasmata].simperasma; >> >> into [0simperasmata].tip are saved three different values "z", "t" and >> "zt" >> >> what I need is to limit the drop down list the based on >> [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] >> values >> >> I tried: >> >> Private Sub result_zscore_ostiki_piknotita_AfterUpdate() >> If Not IsNull(result_zscore_ostiki_piknotita) Then >> Me.simperasma_1.RowSourceType = "0simperasmata" >> Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, >> tip >> FROM 0simperasmata " & _ >> WHERE(([0simperasmata].tip) = "z") >> Else >> End If >> End Sub >> >> but it doen't work >> >> any help please? >> thank's >> /kostas >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From kost36 at otenet.gr Sat Feb 28 16:56:26 2015 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sun, 1 Mar 2015 00:56:26 +0200 Subject: [AccessD] limit drop down from another field... In-Reply-To: <54F24269.9000700@gmail.com> References: , <1421580844680.67486@cactus.dk>, <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><54F224C1.32159.48FC47E@stuart.lexacorp.com.pg> <59157172FB2F4A0BA651FD3020D53F0A@HAL9007> <54F24269.9000700@gmail.com> Message-ID: <35BB2755EECD40BFB7B32AF0AA33E376@kost36PC> no, it's not a good day today... it doen't want to work... it's really "table/query" my office is an English version... -----?????? ??????----- From: John W. Colby Sent: Sunday, March 01, 2015 12:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... The other thing is that "table/query" might be something else if the Office was another language. John W. Colby On 2/28/2015 5:18 PM, Rocky Smolin wrote: > Are you still trying to make the row source type something other than > 'Table/Query'? > > r > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 12:52 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Hi Stuart, > well this stops the error but the combo doesn't return any data it's just > null > > /kostas > > -----?????? ??????----- > From: Stuart McLachlan > Sent: Saturday, February 28, 2015 10:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Come on people, it's simples :) > > Kostas, your line: > > WHERE(([0simperasmata].tip) = "z") > > should be: > > "WHERE(([0simperasmata].tip) = 'z')" > > (You forgot the quotes around that substring that you are building into > your > SQL string) > > > On 28 Feb 2015 at 17:26, Kostas Konstantinidis wrote: > >> Hi, >> There are three fields into the same form >> >> [result_zscore_ostiki_piknotita]--> decimal >> [result_tscore_ostiki_piknotita]--> decimal >> [simperasma_1] --> combo box with record source >> SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, >> [0simperasmata].tip FROM 0simperasmata ORDER BY >> [0simperasmata].simperasma; >> >> into [0simperasmata].tip are saved three different values "z", "t" and >> "zt" >> >> what I need is to limit the drop down list the based on >> [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] >> values >> >> I tried: >> >> Private Sub result_zscore_ostiki_piknotita_AfterUpdate() >> If Not IsNull(result_zscore_ostiki_piknotita) Then >> Me.simperasma_1.RowSourceType = "0simperasmata" >> Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, >> tip >> FROM 0simperasmata " & _ >> WHERE(([0simperasmata].tip) = "z") >> Else >> End If >> End Sub >> >> but it doen't work >> >> any help please? >> thank's >> /kostas >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Sat Feb 28 17:03:44 2015 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Feb 2015 15:03:44 -0800 Subject: [AccessD] limit drop down from another field... In-Reply-To: <35BB2755EECD40BFB7B32AF0AA33E376@kost36PC> References: , <1421580844680.67486@cactus.dk>, <0E808DB35E8C4331BDD7FA49F161AEF3@kost36PC><54F224C1.32159.48FC47E@stuart.lexacorp.com.pg> <59157172FB2F4A0BA651FD3020D53F0A@HAL9007><54F24269.9000700@gmail.com> <35BB2755EECD40BFB7B32AF0AA33E376@kost36PC> Message-ID: So you 1. took out the line of code setting the RowSourceType 2. Changed the RowSourceType in the property sheet to Table/Query 3. Fixed the Where clause So, now it compiles, yes? And what do you see when you run the program and drop the combo box list? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Saturday, February 28, 2015 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... no, it's not a good day today... it doen't want to work... it's really "table/query" my office is an English version... -----?????? ??????----- From: John W. Colby Sent: Sunday, March 01, 2015 12:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] limit drop down from another field... The other thing is that "table/query" might be something else if the Office was another language. John W. Colby On 2/28/2015 5:18 PM, Rocky Smolin wrote: > Are you still trying to make the row source type something other than > 'Table/Query'? > > r > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Saturday, February 28, 2015 12:52 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Hi Stuart, > well this stops the error but the combo doesn't return any data it's > just null > > /kostas > > -----?????? ??????----- > From: Stuart McLachlan > Sent: Saturday, February 28, 2015 10:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] limit drop down from another field... > > Come on people, it's simples :) > > Kostas, your line: > > WHERE(([0simperasmata].tip) = "z") > > should be: > > "WHERE(([0simperasmata].tip) = 'z')" > > (You forgot the quotes around that substring that you are building > into your SQL string) > > > On 28 Feb 2015 at 17:26, Kostas Konstantinidis wrote: > >> Hi, >> There are three fields into the same form >> >> [result_zscore_ostiki_piknotita]--> decimal >> [result_tscore_ostiki_piknotita]--> decimal >> [simperasma_1] --> combo box with record source >> SELECT [0simperasmata].ID_symperasmata, [0simperasmata].simperasma, >> [0simperasmata].tip FROM 0simperasmata ORDER BY >> [0simperasmata].simperasma; >> >> into [0simperasmata].tip are saved three different values "z", "t" and >> "zt" >> >> what I need is to limit the drop down list the based on >> [result_zscore_ostiki_piknotita] or [result_tscore_ostiki_piknotita] >> values >> >> I tried: >> >> Private Sub result_zscore_ostiki_piknotita_AfterUpdate() >> If Not IsNull(result_zscore_ostiki_piknotita) Then >> Me.simperasma_1.RowSourceType = "0simperasmata" >> Me.simperasma_1.RowSource = "SELECT ID_symperasmata, simperasma, >> tip >> FROM 0simperasmata " & _ >> WHERE(([0simperasmata].tip) = "z") >> Else >> End If >> End Sub >> >> but it doen't work >> >> any help please? >> thank's >> /kostas >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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